Windows Installer Editor Reference
144
Assembling an Installation
5. Click OK.
The remove registry operation appears in the upper-right pane. To edit it, double-click
its name. To delete it, use the right-click menu.
To remove multiple registry keys from the destination computer
1. Select Installation Expert > Registry page.
2. From Current Feature, select a feature or condition. (Because any item you add
must be assigned to a specific feature, you cannot add an item when All Features
is selected.)
3. Add the registry keys and values to the installation.
See
Adding Registry Keys
on page 141.
4. In the lower-left list box, right-click the key that contains the subkeys and values to
remove, and select Remove all subkeys and values on install.
A red exclamation point appears over the folder icon of the registry key you selected to
indicate that all the subkeys and values of this registry key will be removed during
installation.
Importing and Exporting Registry Entries
You can import registry files (.REG) into an installation. You also can export registry key
settings from an installation to a .REG file. RegEdit 4.0 and 5.0 formats are supported
for importing; RegEdit 4.0 formats are supported for exporting.
To import a registry file
1. Do one of the following:
Select Installation Expert > Registry page.
a. From Current Feature, select a feature or condition. (Because any item
you add must be assigned to a specific feature, you cannot add an item
when All Features is selected.)
Items that you add to a feature are installed on the destination computer
only if the feature is installed. Items that you add to a condition are installed
only if the feature is installed and the condition is true.
b. In a 64-bit installation, right-click in the lower-left list box and select 32-bit
View or 64-bit View.
c. Click Add at the lower left of the Registry page and select Import.
In Setup Editor, on the Components or Features tab, right-click the Registry
icon or a registry folder and select Import from .REG File.
2. On the dialog box that appears, specify a .REG file and click Open.
The contents of the selected registry file, along with all corresponding folders, are placed
in the appropriate root folder.
To export to a registry file
1. Do one of the following:
Select Installation Expert > Registry page.