How to show a custom feature selection dialog
The following article uses options that are available starting with the Enterprise edition and project type.
The following sections demonstrate how to configure two UI scenarios: select which features will be installed using checkboxes or radio buttons.
Use checkboxes to select which features will be installed
- first, go to the Dialog Editor Page and create a new dialog
- select the custom dialog and set the "Dialog Name" field in the Properties pane to "FeatureSelectionDlg"
- create three checkboxes on the "FeatureSelectionDlg" dialog
- for each checkbox set the "Text" field in the "Properties" pane to an explanatory text (for example: "Install feature 1", "Install feature 2" and "Install feature 3")
- set the properties associated with the checkboxes to CHECK1, CHECK2 and CHECK3 (you can set the property of a checkbox in the "Property Name" field)
- for each checkbox set the “Value” field to install
- in the end you'll need to define the features for your
project in the Organization Page:
- "Feature 1" with the Identifier Feature1 and condition CHECK1
- "Feature 2" with the Identifier Feature2 and condition CHECK2
- "Feature 3" with the Identifier Feature3 and condition CHECK3
Use radio buttons to select which features will be installed
- first, go to the Dialog Editor Page and create a new dialog
- select the custom dialog and set the "Dialog Name" field in the Properties pane to "FeatureSelectionDlg"
- add a radio button group on the "FeatureSelectionDlg" dialog and three radio buttons in it
- select the radio button group
- in the "Properties" pane set the "Property Name" field to RADIO
- select the first radio button and set the "Text" field in the "Properties" pane to "Install Feature A"
- set the "Value" field to RadioFeatureA
- set the "Selected" combo to True
- select the second radio button and set the "Text" field in the "Properties" pane to "Install Feature B"
- set the "Value" field to RadioFeatureB
- select the third radio button and set the "Text" field in the "Properties" pane to "Install Feature C"
- set the "Value" field to RadioFeatureC
- in the end you'll need to define the features for your
project in the Organization Page:
- "Feature A" with the Identifier FeatureA and condition RADIO = "RadioFeatureA"
- "Feature B" with the Identifier FeatureB and condition RADIO = "RadioFeatureB"
- "Feature C" with the Identifier FeatureC and condition RADIO = "RadioFeatureC"
If you have Advanced Installer 9.3 you'll also need to add the Update Features Install States predefined custom action with sequence from the Custom Actions Page.
This article cannot be implemented in any project built with an Advanced Installer version lower than 9.3. You'll need to develop your own custom action that sets the feature states using properties set in the installation's User Interface.