Windows Installer Editor Reference
375
Setup Editor
Installation Expert automatically creates the appropriate components for each item you
add to an installation. However, you can add and edit components yourself in Setup
Editor > Components tab.
z
To edit a component, double-click its name.
z
To edit multiple components, first select the Components icon in the upper-left
pane. In the upper-right pane, select components, right-click, and select Details. On
the Multi-Component Details dialog box, you can edit a subset of the fields found in
the Component Details dialog box.
z
To delete or rename a component, use the right-click menu.
To add a new component
1. In Setup Editor > Components tab, right-click and select New > Component.
The Component Details dialog box appears.
2. Complete the dialog box:
Component
Enter a name for the new component. Components generated by Installation
Expert have automatically generated names that usually reflect the first file
added to a particular directory.
Directory
Enter the directory on the destination computer where the files in this
component will be installed. To create a new folder, click New.
GUID
(Optional.) To replace the automatically-generated GUID (globally unique
identifier) for this component with a new one, click Generate.
Condition
Enter the condition required to install this component. To always have the
component installed, leave this blank. To enter a condition that must evaluate to
true before the component can be installed, click Build. The Condition Builder
appears.
See
Creating Conditions With Condition Builder
on page 391.
For some conditions, you might need to add a special merge module that
addresses a limitation of Windows Installer.
See
Using Conditions With Features
on page 100.
When you add a 64-bit component to the installation, the 64-bit component
check box below is marked automatically and the condition (VersionNT64) is
added to this field. This must be the first condition in the condition string. If you
add conditions, add them after the (VersionNT64) and enclose them in
parentheses. Example:
(VersionNT64) AND (TEST = 1)
As long as the 64-bit check box is marked, you cannot delete the
(VersionNT64) condition. This ensures that the component is installed only on a
64-bit platform.
Run Location
Select the location from which the component should run: