Launch different applications - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Mardull
Posts: 18
Joined: Mon Aug 24, 2009 2:26 pm

Launch different applications

Hi,

I'm creating an installer with the 7.2 version.
In my install process, the user can chose to install two different features, corresponding to two executable files (at minimum one will be installed).

I'm now trying to launch one of this files at the end of the install process.
But the "Launch application at the end of installation" option is only working with one executable file.

Is there any way to modifiy the executable file to launch, depending on a condition (checking a checkbox fox example) ?

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Launch different applications

Hi,

This needs a little more tweaking for different scenarios:
- both features are installed
in which case do you want both executables to be launched? or should the user choose which one to be started(in which case you will have to create another checkbox of your own and launch the second executable depending on its state)?
- one of them is installed
in which case you will have to hide the corresponding checkbox and static text of the other one from ExitDlg
- none are installed
hide both checkboxes

The thread here discusses how to conditionally show/hide one of the checkboxes on the ExitDlg
In order to launch your executables, you will need to place two DoAction Published Events on the "Finish" button in ExitDlg. These DoActions will initiate custom actions of your own that will launch your executables. Just make sure you properly condition your DoActions so they do not launch your executables if their corresponding features are not installed or their checkboxes are not ticked.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Mardull
Posts: 18
Joined: Mon Aug 24, 2009 2:26 pm

Re: Launch different applications

Thanks for your reply. The DoAction is working as needed.

But I have another question :
The two features can be installed, but only one can be launched at a time. So, at the end of the install process, the user can choose to launch one of the features, but not both.
Is there any way to make my two checkboxes exclusives ?

(I can not use radio buttons here because it seems to be imposible to enable/disable the radios buttons individually.)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Launch different applications

Hi,

If the choices are mutually exclusive, then the functionality you seek is that of a radio button. Place them in a group box, and display them only if both features are installed.
Otherwise simply display the corresponding checkbox for the feature that is installed and hide the radio button group.
(I can not use radio buttons here because it seems to be imposible to enable/disable the radios buttons individually.)
You only need to toggle the visibility of the radio button group instead of individually setting each visibility.


Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
Mardull
Posts: 18
Joined: Mon Aug 24, 2009 2:26 pm

Re: Launch different applications

It's working.

Thanks for your help.

Regard

Return to “Common Problems”