Windows Installer Editor Reference
166
Assembling an Installation
To add a remove registry operation in Setup Editor
1. Do one of the following in Setup Editor:
On the Features tab, expand a feature and then expand its Combined folder.
If the Combined folder does not appear, right-click and select Hide Empty
Folders/Items.
On the Components tab, expand a component.
2. Expand the Remove Registry icon.
3. Right-click a folder and select New > Remove Registry.
The Remove Registry Details dialog box appears.
4. Complete the dialog box:
Root
The top-level key from which the key will be removed. Example:
HKEY_CURRENT_USER.
Key
The name of the key to remove. To create an entire key path, separate key
names with backslashes (\). Example: NewDocument\Protocol\StdFileEditing.
Value Name
The value to remove. You can enter a formatted text string. For information
about formatted text strings, see Formatted and Registry Table in the Windows
Installer SDK Help.
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 163.
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.