Windows Installer Editor Reference
422
Setup Editor
3. Specify the following:
Existing File
Specify the path for the file to be duplicated.
Dest. Directory
Specify the directory on the destination computer in which the duplicate file
should be installed. To add a subdirectory to the directory you selected, click
New Folder and enter a folder name.
Long File Name
Enter a name for the duplicate file.
Short File Name
(Optional.) Enter a short file name in 8.3 format to accommodate systems that
don’t support long file names.
4. Click OK.
The duplicate file entry appears in the upper-right pane.
If you added the duplicate file to a different feature and a different directory than the
original file, then a new component is created for the duplicate file.
You cannot have two components install the same file to the same destination directory.
If the file is already set to be installed to the same directory by a component assigned to
another feature, you are prompted to create a component assignment to the current
feature. If you do this, then any future changes to the component will affect all features
to which it is assigned.
To edit a duplicate file entry, double-click its name. To delete it, right-click its name and
select Delete.
See also:
Features Tab
on page 417
How to ensure the installation of a duplicate file
on page 422
How to ensure the installation of a duplicate file
If a duplicate file is in more than one feature, the file is installed only if the feature that
was originally assigned the file is installed. If an end user does not install the feature
that has the original file, then the file is not installed with any other features.
See
Creating Duplicate File Entries
on page 421.
To ensure that a file is installed when it is included in multiple features, do one of the
following:
z
Put the file in the Complete feature or in a Hidden feature that is always installed.
z
Add the file to the different components from the Components tab in Setup Editor.
The file in each component must be installed to a different directory. When you add
the same file to multiple components on the Components tab, an entry is not
created in the DuplicateFile table for the duplicates files.
See
Adding Files to an Installation
on page 130.