How to launch a file after an installation
The following article uses options that are available starting with the Professional edition and project type.
For some installation packages you may want to launch a file after the install process is finished.
Launch the file in a mixed package type
The user can decide if the file will be launched
On the exit dialog, the user will have the option through a checkbox to decide if the file should be launched or not. For this, you can follow these steps:
This approach can be used in a mixed package type when the application is conditionally installed, based on the machine architecture. Instead of launching the application at the end of the installation, a property will be set with the path of the installed file.
To use this approach, you can follow the steps below:
- Go to the Install Parameters page and create a new property:
- Property: FILE_TO_LAUNCH
- Value: C:\
- Add a Set
Installer property custom action as a custom action with sequence
scheduled after the "Paths Resolution" stage, in the Wizard Dialogs
Stage section. Edit the custom action properties as follow:
- Property: FILE_TO_LAUNCH
- Value: [#myFile32bit.exe]
Condition the custom action execution through its "Condition" field. For this, we can take advantage of the VersionNT64 property. Since the 32-bit executable will be installed, we can add the NOT VersionNT64 as a condition.
- Add another Set
Installer property custom action as a custom action with sequence. Edit
the custom action properties as follow:
- Property: FILE_TO_LAUNCH
- Value: [#myFile64bit.exe]
Condition the custom action execution through its "Condition" field. Add the VersionNT64 as a condition.
- Go to the Dialogs page and select "ExitDialog"
- Select the [ Finish ] button and select the Finish Actions tab in the "Control" section
- enable the "Launch application at the end of the installation" option
- Select any file
The view does not support to select a property, but you can delete the current content and add the [FILE_TO_LAUNCH] in the Application field.