Product Condition Builder Dialog Box

InstallShield 2019

Project • This information applies to the following project types:

Basic MSI
InstallScript MSI
MSI Database
Transform

The Product Condition Builder dialog box simplifies the process of creating install conditions by providing a selection of valid Windows Installer properties and conditional expression operators.

For example, if your product requires 64 MB of RAM in order to run properly, you can use the Product Condition Builder dialog box to create a condition. At run time, the Windows Installer checks the target system to determine how much RAM is installed. If it is less than 64 MB, the Windows Installer displays an error message and exits the installation.

Product Condition Builder Dialog Box Settings

Setting

Description

Conditions

This box displays a grid with the following columns:

Condition—This column is where you define the conditions. You can type a condition directly in this column, or you can use the Properties list, the Operators list, and the Add buttons to build a condition statement.
Message—This column is where you specify the error message that should be displayed if the condition evaluates to false.

When you type a value for this column, you are creating a string entry and setting its initial value for all of the languages that are currently in the project. As an alternative to typing a new value, you can click the ellipsis button (...) in this setting to select an existing string. For more information, see Using String Entries in InstallShield.

To add a new condition to this box, click the New Condition button, and then enter the appropriate information in the Condition and Message columns.

To delete a condition in this box, select the condition, and then click the Delete Conditions button.

Important • When you click the OK button on this dialog box, InstallShield performs basic condition validation; however, you should still double-check that your condition statements evaluate to the expected outcome. For more information and example conditions, see Building Conditional Statements.

Windows Installer dialogs, which display the text that you specify in the Message column, do not recognize the escape sequences \r (carriage return), \n (new line), or \t (tab).

Properties

This list contains common Windows Installer properties, as well as any properties that have been added in the Property Manager view. Select the property that you want to evaluate, and then click the Add button next to this list.

If the list does not contain the property that you want to evaluate, you can type the appropriate property name in the Condition column.

Operators

This list contains all of the valid operators that are recognized by the Windows Installer. Select the operator that you want to use and then click the Add button next to this list. InstallShield appends the operator to the conditional statement in the Conditions box.

See Also