User Guide

412
Conditions
2. In the Fields list, click the Environment Variable folder.
The Values list displays the environment variables that currently exist on your
computer. If the environment variable you want is not in the list, enter its name in
the condition list box at the top of the Condition Builder dialog. For information on
available environment variables, consult Microsoft Windows developer
documentation.
3. In the Values list, double-click the name of the environment variable.
4. Click the = button.
5. Click in the condition list box after the equals sign and enter a value.
6. Click OK.
Checking If and How a Feature or Component is
Currently Installed
A feature or component might be installed to run locally, from the source, or advertised,
which are all options you can set when installing a component or feature.
Note
You cannot add this type of condition to the Launch Conditions icon in Setup Editor > Product
tab. Also, when you add this type of condition, add the merge module CondFix.msm to the
installation. This merge module fixes a Windows Installer limitation. For details, see
WiseFixConditions on page 409.
1. Access the Condition Builder dialog. See Creating Conditions With Condition Builder
on page 409.
2. In the Fields list, click the Feature or Component folder.
3. In the Values list, click the name of the feature or component.
4. In the State list, double-click Installed.
5. Click the = button.
6. In the Install/Action state list, double-click one of the following to check the
current installation state of the feature or condition:
•Absent
Not installed.
Advertised
Installed in an advertised state.
•Local
Installed locally.
•Source
Installed to run from installation source.
When you finish, a condition appears in the condition list box. Based on the choices
you make, the appropriate Windows Installer codes are inserted. Example:
!Complete = 3
7. Click OK.
Checking If and How a Feature or Component Will Be
Installed by This Installation
A feature or component might be installed to run locally, from the source, or advertised,
which are all options you can set when installing a component or feature.