Customizing a Check Running Mode Rule

InstallAnywhere 2020

When you enable maintenance mode in a project, InstallAnywhere automatically adds Check Running Mode rules to the action groups that are in the Pre-Install and Pre-Uninstall sequences.

In addition, you can also manually apply a Check Running Mode rule to action groups, actions, or panels in your installation project to specify whether that element should be executed during install mode, upgrade mode, or maintenance mode. This enables you to customize the events that occur when an end user launches various modes.

Important • When a Check Running Mode rule is assigned to an action group, it is applied to all panels and actions in that action group.

To add a Check Running Mode rule to an action group, action, or panel:

1. In the Advanced Designer, on the Sequence page, click the appropriate sequence.
2. Select the action group, action, or panel to which you would like to add a Check Running Mode rule.
3. Select the Rules tab.
4. Click the Add Rule button. The Choose a rule dialog box opens.
5. Select the Check Running Mode action and then click the Add button. The rule is now listed in the Rules List.
6. In the Check Running Mode customizer, select the appropriate option to associate the selected element with one of the maintenance mode options. The list of options varies, depending on which sequence contains the action.

For example, when an end user chooses to run maintenance mode to add features, only those actions and panels with a Check Running Mode rule set to Add Features are executed.

Important • You should always add a Check Running Mode rule to the Uninstaller action for your product, and you should set that Check Running Mode rule to Installation so that it executes only once.

See Also