Check Running Mode Rule

InstallAnywhere 2018

When you enable maintenance mode, InstallAnywhere automatically adds Check Running Mode rules to the action groups that are created 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 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.

The Check Running Mode rule customizer includes the following options:

Check Running Mode Rule Customizer

Option

Description

Installation

Select this option to associate the selected element with the Installation phase of maintenance mode. This option is available in the following sequences:

Pre-Install
Install
Post-Install

For example, when an end user chooses to run maintenance mode to install an application, only those actions and panels with a Check Running Mode rule set to Installation are executed.

Add Features

Select this option to associate the selected element with the Add Features phase of maintenance mode. This option is available in the following sequences:

Pre-Install
Install
Post-Install

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.

Repair Installation

Select this option to associate the selected element with the Repair Installation phase of maintenance mode. This option is available in the following sequences:

Pre-Install
Install
Post-Install

For example, when an end user chooses to run maintenance mode to repair an installation, only those actions and panels with a Check Running Mode rule set to Repair Installation are executed.

Uninstallation

Select this option to associate the selected element with the Uninstallation phase of maintenance mode. This option is available in the following sequences:

Pre-Uninstall
Uninstall
Post-Uninstall

For example, when an end user chooses to run maintenance mode to uninstall an application, only those actions and panels with a Check Running Mode rule set to Uninstallation are executed.

Remove Features

Select this option to associate the selected element with the Remove Features phase of maintenance mode. This option is available in the following sequences:

Pre-Uninstall
Uninstall
Post-Uninstall

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

Upgrade

Select this option to associate the selected element with upgrade mode. This option is available in the following sequences:

Pre-Install
Install
Post-Install

For example, when an end user launches an upgrade to uninstall an earlier version of the product and then install the new version, only those actions and panels with a Check Running Mode rule set to Upgrade 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.

Note • If a panel in the Pre-Install sequence does not have a Check Running Mode rule assigned either to itself or any of its parents, this panel is run during Install, Maintenance Mode/Add Features, and Maintenance Mode/Repair Installation.

If a panel in the Pre-Uninstall sequence does not have a Check Running Mode rule assigned either to itself or any of its parents, then this panel will be run during Uninstall and Maintenance Mode/Remove Features.

See Also