Installer Rules View

InstallAnywhere 2018 » Advanced Designer » Project

Use the Installer Rules view on the Project page to add logic that executes prior to items in the pre-install sequence. Use this option to check if the target system is the right platform for this installation, if the end user is logged in to the root, or if the end user has the necessary permissions to perform the installation.

The following settings are available in this view:

Installer Rules View Settings

Setting

Description

Rule Expression

When you click Add Rule to add a rule to your installation project, the unique rule ID of each rule is listed in the Rule Expression field.

If you want to write complex rule expressions, you can edit the expression in this field to use multiple operators to express the relationship between two or more rules, such as:

&& (and)—Means that both rules must evaluate true for the installer to continue. If any rule fails to pass, the installer stops and issues the failure message.
|| (or)—Implies that at least one of the rules must evaluate to true. If none of the rules pass, the installer stops and issues the failure message.
! (not)—Implies that at least one of the rules must evaluate to false. If all of the rules pass, the installer stops and issues the failure message.

You can also use precedence operators, such as parentheses—( ), to compose rule expressions.

Note • For more information, see Building Complex Rule Expressions.

Note • You can also write complex rule expressions in the Rules customizers on individual actions, panels or consoles.

Rules List

Shows all rules currently defined for your project.

Note • New projects have no rules set; thus, the Rules List is initially empty.

Add Rule

Opens the Choose a rule dialog box. Available options are:

Check File/Folder Attributes
Check Platform
Check System Architecture
Check User-Chosen Language
Compare InstallAnywhere Variables
Compare InstallAnywhere Variables Numerically
Compare Versions
Evaluate Custom Rule
Match Regular Expression
System i (i5/OS) Licensed Program Exists Condition
System i (i5/OS) Primary Language Install Condition
System i (i5/OS) Program Temporary Fix (PTF) Condition

When you choose a rule, InstallAnywhere shows the controls for providing settings specific to that rule type in the area below the Rules table.

Remove Rule

Deletes the currently selected rule from the Rules List.

Validate Rule Expression

Click to validate the rule expression listed in the Rule Expression field. If expression is invalid, an error message will be displayed.

Clear Rule Expression

Click to clear the expression in the Rule Expression field.

No Rule

This area shows the controls for providing settings specific to the currently selected rule. When no rules are selected, this area is labeled No Rule. When a Check Platform rule is selected, for example, this area is labeled Check Platform and shows platform selection controls.

Message to Display if Installer Rules Fail

The message your installers display if the expression in the Rule Expression field does not collectively evaluate to TRUE.

See Also