cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jrahma
Level 6

InstallShield force applicatio launch

Hi,

Is there any way to force application launch when the setup finish without giving the user the choice?
Labels (1)
0 Kudos
(4) Replies
Cygnusx1
Level 8

CustomAction 18 (Execute program from installed files)
Place it add the end of the InstallExecute sequence or give it a value of -1 to only install after a successful installation.
0 Kudos
DemonPiggies
Level 7

If you are using script to do this you can use the 'LaunchApp' method...


/*--- code used in the OnEnd() method ---*/

//--- hh.exe is the microsoft help html file viewer...
if (LaunchApp( "hh.exe", strPathToLaunch) < 0) then

//--- Pop up error message if unable to launch application
MessageBox( @IDS_ERROR_UNABLE_TO_OPEN_HELP_FILE, WARNING);

endif;


... figured I'd add that in case someone using InstallScript or using script for a custom action read this post. For a more detailed description see this article.
0 Kudos
GetExp
Level 6

Also, at the click of the Finish button in the Final dialog, you can launch the application.
0 Kudos
DemonPiggies
Level 7

True but that would launch the app before setup was complete. In my application I ask if they want to launch the app in the Finish dialog and then in OnEnd() I check to see if they chose to or not and launch it if they chose to.
0 Kudos