Specifying a Primary Key for the Registry Table
InstallShield 2020 Express Edition
Windows Installer requires a unique primary key for each registry key and value you add to the Registry table. To allow you to create registry entries in a completely visual environment, InstallShield assigns a unique name to every entry in the database’s Registry table at build time.
You may need to know the entry’s primary key when authoring a custom action. InstallShield supports specifying a primary key on a registry key or value in the Registry view.
To specify a primary key for a registry key or value:
1. | In the View List under Configure the Target System, click Registry. |
2. | In the Feature list, select the feature that should contain the registry value that you want to add. |
3. | In the Destination computer’s Registry view pane, right-click the registry key associated with the primary key that you want to specify, and then click MSI Value. The MSI Value dialog box opens. |
4. | Type the name of the key. Since the primary key must be a Windows Installer identifier, the name should contain only letters, numbers, underscores (_), and periods (.), and it must begin with a letter or underscore. |
If you do not specify a value, InstallShield generates a unique primary key for this entry in the Registry table.