cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Determine Which Features Were Selected by the User

How to Determine Which Features Were Selected by the User

Summary

How to obtain a list of chosen features and execute actions based on what features were chosen.

Synopsis

With a Choose Install Sets panel, the end user is able to select which Product Features they want to install. It can be useful to know what features the end user chose and execute certain actions only when a certain feature is chosen.

Discussion

The $CHOSEN_FEATURE_LIST$ variable is a comma-separated list of the short names of all the end user?selected features. To utilize this variable in a Rule, add a "Compare InstallAnywhere Variables" rule to an action, file, or folder to check if $CHOSEN_FEATURE_LIST$ contains or does not contain the short name of the feature in question.

For example, say you have included a folder to $USER_MAGIC_FOLDER_1$, and the folder only contains files that are associated with Feature1. During installation, the user opts to only install Feature2. Completing the installation would create an empty folder at $USER_MAGIC_FOLDER_1$. To avoid this, you would add a "Compare InstallAnywhere Variables" rule to the $USER_MAGIC_FOLDER_1$ Create Folder action with the following settings:
$CHOSEN_FEATURE_LIST$ contains Feature1
This will prevent an empty folder from getting created at $USER_MAGIC_FOLDER_1$ when Feature1 is not selected to be installed.

Additional Information

Additional InstallAnywhere variables exist that pertain to the Feature List, such as: $CHOSEN_FEATURE_n$, $CHOSEN_FEATURE_NUM$, $CHOSEN_INSTALL_FEATURE_LIST$, $CHOSEN_INSTALL_FEATURE_NUM$, $CHOSEN_INSTALL_FEATURE_n$, and $FEATURE_UNINSTALL_LIST$. Please refer to the HelpNet article on Standard InstallAnywhere Variables for further details.
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 12, 2018 06:44 PM
Updated by: