Creating Registry Keys

InstallShield 2015

Project: This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module
MSI Database
MSM Database
Transform
QuickPatch

To specify a registry key to be created on the target system when a component is installed:

1. In the View List under System Configuration, click Registry.
2. In Basic MSI, DIM, InstallScript MSI, Merge Module, MSI Database, MSM Database, Transform, and QuickPatch projects—In the View Filter list, click the component with which you want to associate the registry data.

Note: If All Application Data is selected, the Registry view is read-only.

In InstallScript and InstallScript Object projects—In the Destination computer’s Registry view pane, open an existing registry set or create one by right-clicking the Destination Computer folder. Associate the registry set with one or more components by clicking the registry set and selecting the desired components in the Registry Set Install Conditions pane.

3. In the Destination computer’s Registry view pane, right-click a registry hive or key, point to New, and then click Key. InstallShield adds a new key with the name New Key-n (where n is a successive number).
4. Enter a meaningful name to rename the key, or right-click the key and click Rename to give it a new name later.

InstallShield adds your new key with an empty default string value.

By default, all keys that you create are set for automatic installation and uninstallation. This means that they are installed if the component they belong to is installed, and they are uninstalled when that component in uninstalled. For more information on registry key flags, see Registry Flags.

Tip: You can create multiple nested keys at one time by creating a new key and typing, for example, Key 1\Key 2\Key 3 in the key’s name. InstallShield creates a nested key structure where Key 3 is a subkey of Key 2, which is a subkey of Key 1.

See Also