Windows Installer Editor Reference
421
Setup Editor
Creating a Folder in Setup Editor
The Create Folder icon in Setup Editor lets you add a new empty directory under an
existing directory.
You also can create directories on the Files, Web Files, or Visual Studio Solution pages in
Installation Expert, where you can also use wildcards to add files to directories
automatically.
See
Editing Settings for Automatic Updating
on page 140.
To create a new folder
1. In Setup Editor, on the Components or Features tab, right-click a component or
feature and select New > Create Folder.
The Create Folder Details dialog box appears.
2. From Directory, select a parent directory.
3. At the end of the existing path, type \ (backslash) followed by the name of the new
directory. Example: To create a folder named Sample in the Program Files directory,
the Directory field should contain Program Files\Sample.
4. Click OK.
The Create Folder entry appears in the upper-right pane.
5. You can add permissions to the new folder.
See
Setting Permissions for Files and Directories
on page 147.
See also:
Installation Directories
on page 128
Features Tab
on page 417
Creating Duplicate File Entries
Duplicate files are files that must be copied to more than one location during installation.
According to Windows Installer rules, you cannot install the same file multiple times. The
Duplicate File icon in Setup Editor lets you:
z
Place the same file in different directories.
z
Place a file in the same directory with a different name.
See DuplicateFile Table in the Windows Installer SDK Help.
You can create a duplicate file entry only for files that are already in the installation.
Note
Duplicate files are not created for .NET assemblies added to both the application
directory and the Global Assembly Cache. Instead, they are treated as separate
components.
To add a duplicate file entry
1. In Setup Editor, on the Components or Features tab, right-click a component or
feature and select New > Duplicate File.
2. The Duplicate File Details
dialog box appears.