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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 05/01/2009 by: jcarri06
Senior Purple Belt

Please log in to comment
0
Jcarri06

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

Thanks
Answered 05/01/2009 by: unreal2me
Orange Senior Belt

Please log in to comment
0
Thanks for the reply after it worked! Always glad to hear I make *some* sense every once in a while :P.
Answered 05/01/2009 by: jcarri06
Senior Purple Belt

Please log in to comment
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,
Answered 05/01/2009 by: unreal2me
Orange Senior Belt

Please log in to comment
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
Answered 05/01/2009 by: jcarri06
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity