Windows Installer Editor Reference
442
Using Conditions and Properties
z
Use the () buttons to enclose parts of the condition, which changes the order of
precedence.
z
Use the " button to enclose literal text.
Lists
z
Fields
Select the kind of item the condition checks. You can check the installed state for
features and components, and you can check the value of properties and
environment variables.
z
Values
If you selected Environment Variable or Property in the Fields list, double-click the
name of an environment variable or a property to insert it into a condition.
See
Checking the Value of a Property
on page 442 or
Checking the Value of an
Environment Variable
on page 443.
Note
The following two lists let you check the current or future installed state of a feature
or component.
See
Checking If and How a Feature or Component is Currently Installed
on page 444
and
Checking If and How a Feature or Component Will Be Installed by This
Installation
on page 444.
z
State
Use this list only to check the installed state of a component or feature. Action
refers to what occurs during installation, and Installed refers to the current state of
the destination computer.
z
Install/Action state
Use this list only to check the installed state of a component or feature. Absent
means the feature or component is not installed, Advertised means it is
advertised, Local means it is installed on the local hard drive, and Source means it
is installed to run from the installation source.
See also:
Condition Guidelines
on page 439
Examples of Conditions
on page 440
Checking the Value of a Property
To check whether a property evaluates to true
You do not need to use the Condition Builder. Enter the name of the property in the
Condition field, wherever it appears. Example: To create a condition that checks
whether a Windows NT operating system is running, you enter the condition, VersionNT,
which evaluates to true when VersionNT is set.
For examples of where the Conditions field appears, see
Where Can You Use
Conditions?
on page 437.
To check whether the property equals a certain value
1. Open the Condition Builder.