/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (5)

Posted by: jcarri06 14 years ago
Senior Purple Belt
0
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
Posted by: unreal2me 14 years ago
Orange Senior Belt
0
Jcarri06

Thanks a lot, that worked perfectly, exactly what I wanted.

Thanks
Posted by: jcarri06 14 years ago
Senior Purple Belt
0
Thanks for the reply after it worked! Always glad to hear I make *some* sense every once in a while :P.
Posted by: unreal2me 14 years ago
Orange Senior Belt
0
Just out of curiosity, how would you do the same thing without using the finish button, for example, if you run the installer completely silent? I still require the program to run after the installer is completed.

Thks,
Posted by: jcarri06 14 years ago
Senior Purple Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ