This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Knowledge Base
- :
- How to Determine Which Features Were Selected by the User
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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 Feature1This 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.
No ratings