Hello,
Let us assume you have three features: Feature1, Feature2 and Feature3, and your executable's name is "my.exe"
In order to implement this behaviour, you need to follow these steps:
- in the Install Parameters page, add three new properties: SELECTED1 SELECTED2 and SELECTED3, each with the value 0 (note that the properties must be written in uppercase)
- in the Dialogs page add the SetupTypeDlg in order to enable feature selection
- on the VerifyReadyDlg, on the Install button, Published Events tab, add a three new SetProperty events
- set the properties to SELECTED1 SELECTED2 and SELECTED3 respectively, the values to 1. For the conditions, press the "..." button, and select Feature State
- select the feature that corresponds to the property you are setting
- from the published events list, select each event you created and push it upwards as much as possible using the Up button
- in the Custom Actions page, under Install, create a new "EXE with working directory" custom action
- in this custom action's "Full Path" field input this:
Code: Select all
"[APPDIR]my.exe" [SELECTED1] [SELECTED2] [SELECTED3]
- note that my.exe must be in the installation folder when the custom action is run. You can add it as a temporary file in "Files and Folders" page if you do not need it after install, otherwise make sure the custom action runs after everything is installed.
Regards,
Gabriel
FOLLOW US
Get the latest news in Application Packaging