Detecting If the End User Has Selected a Specific Feature

InstallShield 2022

Your installation can determine whether the end user has selected to install a specific feature. The method depends on which project type you are using.

Basic MSI Projects

Windows Installer defines conditions of the form &FeatureName=n to detect a feature’s action state. For example, to determine if a feature called ProgramFiles is selected to be installed locally, and it was not already installed, use the condition &ProgramFiles=3.

InstallScript and InstallScript MSI Projects

The InstallScript function FeatureIsItemSelected returns TRUE if a feature is currently selected in one the feature-selection dialogs (such as SdFeatureTree).

See Also