Windows Installer Editor Reference
101
Defining an Installation Project
See also:
WiseFixConditions
on page 390
Features Page
on page 91
Adding and Deleting Feature Conditions
on page 101
Adding and Deleting Feature Conditions
To add a new condition to a feature
1. Select Installation Expert > Features page.
2. Click a feature name.
3. Click Add Condition at the right of the Features page.
The Feature Condition dialog box appears.
4. Click Build, and create your condition on the Condition Builder dialog box.
The Condition Builder dialog box lets you construct a conditional expression and
check its syntax.
See
Creating Conditions With Condition Builder
on page 391.
Note
If you add a component condition that checks the installed state of a component or
feature, add the merge module CondFix.msm to the installation. This merge module
fixes a Windows Installer limitation.
See
WiseFixConditions
on page 390.
5. Click OK on the Feature Condition dialog box.
The condition appears in the Current Feature drop-down list. If you want to make file
changes or other system changes on the destination computer only if this condition is
true, you first select this condition from the Current Feature drop-down list.
To delete a condition
1. Select Installation Expert > Features page
2. Select a condition.
3. Click Delete at the right of the Features page.
You are prompted to choose what to do with the components that are associated
with the condition. Conditions can contain files, registry entries, and so on, all of
which make up components. When you delete a condition, one of two things can
happen:
You can delete all the components that have been added to the condition.
You can move all the components associated with the condition to the
condition’s parent feature. If you choose to move the components, they are
placed under the parent feature, and are installed unconditionally.
See also:
Features Page
on page 91