Launch the installed program after installation
Hi,
Probably very easy question but your input is welcome.
I install a very simple MSI and want to launch the newly installed program after the MSI installation is complete. The way I do it now, it gets this behavior: GUI is still open in the background and the app launches. This means that the user still have to click finish on the MSI installation windows which is behind the running program.
Way I did it is a CA Execute instyalledprogram in the InstallFinalize section.
What should I do if I want the program to appear once the user click finish?
Thanks
Probably very easy question but your input is welcome.
I install a very simple MSI and want to launch the newly installed program after the MSI installation is complete. The way I do it now, it gets this behavior: GUI is still open in the background and the app launches. This means that the user still have to click finish on the MSI installation windows which is behind the running program.
Way I did it is a CA Execute instyalledprogram in the InstallFinalize section.
What should I do if I want the program to appear once the user click finish?
Thanks
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
jcarri06
13 years ago
Unreal,
You could call the custom action you created to be triggered by the Finish button instead. Add a conditional statement to your custom action so it doesn't run automatically during installation, go into your dialog manager and into the properties of Finish. Add a new event "DoAction" the argument is your CA name and the condition would be Not Installed.
This will trigger it after the user clicks Finish. Also, make sure your CA is set as Asynch so the installer just launches it and releases (finishes installation).
Hope this helps,
J
You could call the custom action you created to be triggered by the Finish button instead. Add a conditional statement to your custom action so it doesn't run automatically during installation, go into your dialog manager and into the properties of Finish. Add a new event "DoAction" the argument is your CA name and the condition would be Not Installed.
This will trigger it after the user clicks Finish. Also, make sure your CA is set as Asynch so the installer just launches it and releases (finishes installation).
Hope this helps,
J
Posted by:
unreal2me
13 years ago
Posted by:
jcarri06
13 years ago
Posted by:
unreal2me
13 years ago
Posted by:
jcarri06
13 years ago
You could simply create a Property like..."LAUNCHME" and set it to 0 as the default. Then, make your custom action with the following property:
If Not Installed AND LAUNCHME = 1
do whatever
End
This means that if you run the msi as you normally would, users click Finish and it launches the app. It won't launch it automatically because LAUNCHME is 0 by default. If instead you want to install it silently or unattended, send LAUNCHME=1 parameter and it'll launch it automatically as part of the custom action condition.
There may be an easier way about it, but this it the first thing that came to mind :)
- J
If Not Installed AND LAUNCHME = 1
do whatever
End
This means that if you run the msi as you normally would, users click Finish and it launches the app. It won't launch it automatically because LAUNCHME is 0 by default. If instead you want to install it silently or unattended, send LAUNCHME=1 parameter and it'll launch it automatically as part of the custom action condition.
There may be an easier way about it, but this it the first thing that came to mind :)
- J

so that the conversation will remain readable.