Windows Installer Editor Reference
50
Setting Up
and
One File Per Component Rule Set
on page 57. For instructions on creating new rule
sets, see
Customizing Component Rules
on page 53.
You can share component rules with others in your organization through a share point
directory. Sharing component rules ensures that you always use the most current set of
rules and that your installations always adhere to company standards for creating
components. To share component rules, in Workbench, select Edit menu > Preferences,
click the Repository tab, and click the Advanced button. Make sure a shared directory is
specified for the Component Rules path.
See Setting Repository Preferences in the Wise Package Studio Help.
See also:
About Component Rules
on page 50
Selecting a Component Rule Set
on page 51
Using Component Rules to Align GUIDs in an Upgrade
on page 52
About Component Rules
A component rule set manages components that are added to installations.
z
A rule set is a collection of rules.
z
A rule consists of one or more conditions and one or more actions.
z
A condition determines the criteria that a resource must meet in order for an action
to be performed. Example: If you select the condition Added resource is a Shortcut,
the action is only performed for shortcut resources.
z
An action determines how a resource will be assigned to a component.
Rule sets are stored in an .INI file located in the share point directory. You can change
the location.
See Setting Repository Preferences in the Wise Package Studio Help.
Do not try to edit the .INI file other than through the Component Rules dialog boxes.
Warning
If you are sharing component rules, when you edit existing rule sets your changes will
overwrite rule sets used by other members of the team.
How Component Rules Are Applied
Component rules are applied in the order they appear from top to bottom in the list of
rules on the Customize Component Rules dialog box. When a rule has multiple
conditions, only resources that meet all the conditions have the rule applied to them.
Once an added resource matches the conditions in a rule, the action is applied and no
subsequent rules are evaluated for that resource. If you add a resource that does not
meet any of the conditions in the rule set, then the Microsoft Best Practices rule set is
used for that resource.
See also:
Component Rules
on page 49
Microsoft Best Practices Component Rule Set
on page 56