jasbirbrar
asked on
Automatically starting application after installation using Innosetup
I am using innosetup to write Installation script.
On the last page of the wizard, I have shown a checkbox. On click of "Finish" button i need to check the
status of the check box. If this checkbox is unchecked I need to automatically start the installaed application.
Thanks
On the last page of the wizard, I have shown a checkbox. On click of "Finish" button i need to check the
status of the check box. If this checkbox is unchecked I need to automatically start the installaed application.
Thanks
ASKER
In my case I have a checkbox on the "Finished" page. When this checkbox is checked an EXE is started
(say a.exe). But when this checkbox is left unchecked I want to run the application's exe.
(say a.exe). But when this checkbox is left unchecked I want to run the application's exe.
Why? That seems opposite of what the user would expect.
ASKER
From a.exe, some settings are made(depending upon User's inputs) and then actual application is launched.
For some reasons if the user does not check the a.exe checkbox then my application won't be started.
Another solution for this could be that I somehow make mandatory to open a.exe from Innosetup script.
Can you help here?
For some reasons if the user does not check the a.exe checkbox then my application won't be started.
Another solution for this could be that I somehow make mandatory to open a.exe from Innosetup script.
Can you help here?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I removed the POSTInstall flag and instead put in the WAITUNTILIDLE
Thank you, I removed the check box and application run directly
[Run]
Filename: "{app}\{#SettingsAppName}" ; Description: "{cm:LaunchProgram,{#Strin gChange(Se ttingsAppN ame, '&', '&&')}}"; Flags: shellexec skipifsilent;
[Run]
Filename: "{app}\{#SettingsAppName}"
postinstall
Valid only in a [Run] section. Instructs Setup to create a checkbox on the Setup Completed wizard page. The user can uncheck or check this checkbox and thereby choose whether this entry should be processed or not. Previously this flag was called showcheckbox
Open in new window