Conditionally Selecting Features
InstallShield 2016
Project • This information applies to the following project types:
The procedure for conditionally selecting features at run time depends on the project type that you are using.
Basic MSI, MSI Database, and Transform Projects
The Condition setting for a feature enables you to specify a non-default Install Level value if the condition that you specify succeeds. If a feature’s Install Level value is less than or equal to the project’s INSTALLLEVEL property, the feature will be selected to be installed.
For example, to deselect a feature if the end user does not have administrator privileges:
|
1.
|
In the View List under Organization, click Setup Design or Features. |
|
2.
|
Select the feature that you want to configure. |
|
3.
|
Click the Condition setting and then click the ellipsis button (...). The Feature Condition Builder dialog box opens. |
|
4.
|
Click the New Condition button. InstallShield adds a new condition row to the Conditions box. |
|
5.
|
In the Level column, type 200. |
|
6.
|
In the Condition column, type Not AdminUser. |
At run time, if the end user does not have administrator privileges (that is, if the condition succeeds), the Install Level property for the feature is set to 200. Because the default INSTALLLEVEL property for a project is 100, the feature is deselected.
You can change the INSTALLLEVEL property in the Property Manager.
InstallScript and InstallScript MSI Projects
The FeatureSelectItem function enables you to select or deselect a feature displayed in a feature-selection dialog such as SdFeatureTree.
See Also
Property Manager View
FeatureSelectItem
Open topic with navigation