Windows Installer Editor Reference
61
Setting Up
See Organizing Applications into Components and Changing the Component Code in the
Windows Installer SDK Help.
To add a new component rule set
1. Select Component Rules menu > Customize.
In Visual Studio: Project menu > Component Rules > Customize.
The Component Rules Manager dialog box appears, listing the predefined rule sets
and custom rule sets you have created.
2. Click New.
The Enter Rule Set Name dialog box appears.
3. Enter a unique Rule Set Name to identify this rule set and click OK.
The new rule set name appears and is selected in the Component Rules Manager
dialog box.
4. Click Modify.
The Customize Component Rules dialog box appears.
5. On the Customize Component Rules dialog box, click Add to add the first rule for
this rule set.
This starts the Component Rule Wizard, which you step through to add the
conditions and actions that comprise the rule.
See
Adding and Editing Component Rules
on page 62.
6. When you finish adding rules to the rule set, click OK on the Customize Component
Rules dialog box and then click OK on the Component Rules Manager dialog box.
The new rule set is added to the list of available rule sets. To use the new rule set for the
current installation or to make it the default for all future installations, you must select
it.
See
Selecting a Component Rule Set
on page 58.
To customize an existing component rule set
1. Select Component Rules menu > Customize.
In Visual Studio: Project menu > Component Rules > Customize.
The Component Rules Manager dialog box appears, listing the predefined rule sets
and any custom rule sets you have created.
2. Click a rule set.
To copy the rule set, click Copy, type the new name on the Enter Rule Set Name
dialog box, and click OK.
To modify the rule set, click Modify. The Customize Component Rules dialog box
appears, where you can add, edit, and delete rules.
See
Adding and Editing Component Rules
on page 62.