Avatar of rolandkg1001
rolandkg1001Flag for Austria asked on

How can I prove if some applications are running with inno setup and if they are running tell the user to stop them

Hi,

I have programmed a VBA Application in Microsoft Word and Microsoft Excel. I use the script below in Inno Setup to install the application.

Problem:
1. How can I check if an Microsoft Office Application is running. If this is the case, I want to innterrupt the installation process with a message: "Please close all Office Applications"
2. I need to check if the Certificate SYSDES_Zertifikat has been installed correctly. This is the first line in the script under [Run]. If the certificate has not been installed correctly I need to tell this the user and to let him try again before the installation process continues.

Please help - Many thanks in advance
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
 
#define MyAppName "Checkit"
#define MyAppVerName "Checkit"
#define MyAppPublisher "SYSDES"
#define MyAppURL "http://www.sysdes.at/"
#define MyAppExeName "Checkit.xla"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{645D947E-1A2B-469D-81DE-DD968760D9AB}
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=true
LicenseFile=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Lizenz.txt
InfoBeforeFile=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Installationshinweis1.rtf
InfoAfterFile=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\InfoAfter.rtf
OutputDir=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\
OutputBaseFilename=Checkit_Setup
SetupIconFile=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\images\ChechIt.ico
Compression=lzma
SolidCompression=true
SourceDir=E:\Eigene Dateien\Sysdes\Checkit\Checkit CD
VersionInfoVersion=1.3.2
VersionInfoCompany=SYSDES
VersionInfoCopyright=SYSDES
SetupLogging=true
 
[Languages]
Name: german; MessagesFile: compiler:Languages\German.isl
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
 
[Files]
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Install.xls; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Checkit.dot; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Lizenz.txt; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Checkit_Uninstall.xls; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Checkit.xla; DestDir: {app}; Flags: ignoreversion
 
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe.htm; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Sysdes_Zertifikat.cer; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Start.doc; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Begrüßung.doc; DestDir: {app}; Flags: ignoreversion
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Template.xls; DestDir: {app}; Flags: ignoreversion
 
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image022.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\filelist.xml; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\header.htm; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image001.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image002.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image003.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image004.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image005.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image006.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image007.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image008.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image009.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image010.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image011.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image012.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image013.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image014.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image015.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image016.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image017.jpg; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image018.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image019.png; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image020.gif; DestDir: {app}
Source: E:\Eigene Dateien\Sysdes\Checkit\Checkit CD\Hilfe-Dateien\image021.png; DestDir: {app}
 
[Icons]
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}
Name: {group}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}
 
 
 
[Registry]
Root: HKCU; Subkey: Software\SYSCM; Flags: uninsdeletekey; ValueType: string; ValueName: InstallDir; ValueData: {app}; Tasks: ; Languages: 
Root: HKCU; Subkey: Software\SYSCM; ValueType: string; ValueName: FirstRunWord; ValueData: 1; Flags: deletevalue uninsdeletekey
Root: HKCU; Subkey: Software\SYSCM; ValueType: string; ValueName: FirstRunExcel; ValueData: 1; Flags: deletevalue uninsdeletekey
Root: HKCU; Subkey: Software\SYSCM; ValueType: string; ValueName: HilfeAssistent; ValueData: 1; Flags: deletevalue uninsdeletekey
Root: HKCU; Subkey: Software\SYSCM; ValueType: string; ValueName: Begruessung; ValueData: 1; Flags: deletevalue uninsdeletekey
 
[Run]
Filename: {app}\Sysdes_Zertifikat.cer; Flags: shellexec waituntilterminated
Filename: {app}\Start.doc; Flags: shellexec waituntilterminated
Filename: {app}\Install.xls; Flags: shellexec waituntilterminated
Filename: {app}\{#MyAppExeName}; Description: Checkit fertig installieren; Flags: shellexec postinstall
Filename: {app}\Begrüßung.doc; Description: Hilfe-Assistent; Flags: shellexec postinstall
[UninstallRun]
Filename: {app}\Checkit_Uninstall.xls; Flags: shellexec

Open in new window

InstallationVisual Basic ClassicMicrosoft Excel

Avatar of undefined
Last Comment
rolandkg1001

8/22/2022 - Mon
SOLUTION
wobbled

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER CERTIFIED SOLUTION
rolandkg1001

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23