launch application on exit - 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!

m309810
Posts: 4
Joined: Thu Sep 11, 2008 8:27 pm

launch application on exit

In our installation, we are placing an Access mde in a particular directory. We then install one of two shortcuts on the desktop, dependent upon the Windows version. This is working fine.

When we launch the application, we need to use the shortcut that was installed. Is there a way to launch one of two possible shortcuts dependent upon the Windows version? Would I use a custom action/script? Can the action or script be made conditional? And can it be somehow tied to the "launch application" checkbox on the install finish dialog?

Thanks,

Wayne
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: launch application on exit

Hi Wayne,
Is there a way to launch one of two possible shortcuts dependent upon the Windows version?
This can be done by using two "Launch file or open URL" custom actions. These custom action can be created under "UI Custom Actions" in order to use them in a dialog.
And can it be somehow tied to the "launch application" checkbox on the install finish dialog?
A custom action cannot be used for the "Launch application" checkbox on Exit Dialog. However, you can create your own checkbox which handles the two custom actions:
- in the Dialogs page select "ExitDialog"
- on it create a new checkbox
- in the Properties pane of the checkbox make sure that the "Text" field is empty
- create a new static text control and place it next to the checkbox, where its text was supposed to be
- for this static text set the "Transparent" flag to "True" in the "Properties" pane
- select the checkbox and in the "Properties" pane set the "Property Name" field to LAUNCH_MY_APP
- select the "Finish" button and go to the "Published Events" tab
- create "DoAction" control events which launch your custom actions
- use the VersionNT and "LAUNCH_MY_APP" properties to condition the DoAction control events

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”