Windows Installer Editor Reference
55
Setting Up
To edit a rule, click the rule in the rules list and click Details. This starts the
Component Rule Wizard, which you can step through to change the rule name
or change any of the conditions or actions. For details, see the procedure below.
3. When you finish, click OK on the Customize Component Rules dialog box.
The Component Rules Manager dialog box reappears.
4. Click OK.
To add or edit a component rule
1. On the Name page of the Component Rule Wizard, enter a name for the new rule
and click Next. If this is an existing rule, the name is already entered and you can
accept or change it.
The Conditions page appears.
2. In the Which condition(s) do you want to check? list, mark the check box next
to each condition to check.
When there are no conditions for performing the action(s) in this rule, select the
condition Always perform associated action.
As you mark check boxes, the conditions appear in the Rule description list. If you
select a condition that is incompatible with a condition you have already selected,
the first condition you selected is removed from the list.
3. If a condition contains underlined text, click the underlined text to open a Rule
Details dialog box. There you can select a value for the underlined text.
Example: If you selected the condition Added resource is a file with name any,
you would click the word any and enter a specific file name. Wildcards are allowed.
4. When you have added all conditions that comprise the rule, click Next on the
Conditions page.
The Actions page appears.
5. In the Which action(s) do you want to perform? list, mark the check box next
to the action or actions to perform.
The actions you mark appear in the Rule description list. If you select an action
that is incompatible with an action you have already selected, the first action you
selected is removed from the list.
6. If an action contains underlined text, click the underlined text to open a Rule Details
dialog box. There you can specify a value for the underlined text.
Example: If you selected the action Set component key to Component, you
would click the word Component and enter specific text.
7. When you have added all actions to the rule, click Finish on the Actions page.
The Customize Component Rules dialog box reappears. The rule is displayed in the
upper list box and its details are displayed in the Rule description list.
8. You can continue to add and edit rules. When you finish, click OK on the Customize
Component Rules dialog box.
The new rules are added to the rule set and the Component Rules Manager dialog
box reappears.
9. Click OK.