Windows Installer Editor Reference
379
Setup Editor
z
Select the item as key path on the Component Details dialog box.
See
Adding and Editing a Component
on page 374.
See also:
Components Tab
on page 372
Isolating a .DLL With an .EXE
To prevent .DLL conflicts, you can associate a .DLL file in the installation with a specific
.EXE file in the installation. Then Windows Installer automatically associates the .DLL
with the .EXE, even if the destination computer already has a .DLL with the same name
installed. See Isolated Components in the Windows Installer SDK Help.
Add the .DLL to the System32 directory, as you normally would, and then create an
isolated component that moves the .DLL to your application’s directory.
Note
Before you isolate a .DLL with an executable, make sure that you have added all files to
the installation, especially .EXE and .DLL files.
To isolate a .DLL with an .EXE
1. In Setup Editor > Components tab, right-click a .DLL and select New > Isolated
Component.
The Isolated Component Details dialog box appears, where you select a file for
isolation from the feature that contains the component.
If the key path for the current component is not an .EXE, the drop-down list
shows all .EXEs in the containing feature that are key paths of .DLL files.
If the key path for the current component is an .EXE, the drop-down list shows
all files from the containing feature that are key paths other than the current
component.
2. From Associated File, select the .EXE to assign to this .DLL.
3. Click OK.
The isolated component entry appears in the upper-right pane. To edit it, double-click its
name. To delete it, right-click its name and select Delete.
See also:
Components Tab
on page 372
Adding Published Components
Published components let applications written specifically for Windows Installer refer to
one or more components by a single identifier. Example: Do this to add the same
published component to each component in a feature. At run time, the installation only
needs to check for one published component to determine if the feature is installed. See
PublishComponent Table and Qualified Components in the Windows Installer SDK Help.