09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 9: Configuring the Target System<br />

Editing the Registry<br />

4. Type the name of the key. Since the primary key must be a Windows Installer identifier, the name<br />

should contain only letters, numbers, underscores (_), and periods (.), and it must begin with a<br />

letter or underscore.<br />

If you do not specify a value, <strong>InstallShield</strong> generates a unique primary key for this entry in the Registry<br />

table.<br />

Registry Flags<br />

Registry flags enable you to control the installation and uninstallation of your registry entries. By<br />

default, your registry entries are installed if the feature to which they belong is installed. They are then<br />

removed from the target system when that feature is removed. If you would like your registry entries to<br />

remain on the target system even after the product has been uninstalled, or if you want to create registry<br />

entries only if they do not already exist, you need to set the installation flag for that key.<br />

In <strong>InstallShield</strong>, installation behavior is set at the subkey level. All values beneath the key must have the<br />

same installation and uninstallation behavior.<br />

To change the registry flag of a key, right-click one of your project’s keys in the Registry view, and then<br />

click any of the commands that are listed in the following table.<br />

Table 9-4: Registry Flags<br />

Icon Command Description<br />

Automatic This is the default option for all registry keys. If the key is not already present, the<br />

installation creates it. During an uninstallation, if the key is empty, it is removed.<br />

Install only (+)<br />

Uninstall entire key<br />

(-)<br />

Project: This registry flag type is available in <strong>Express</strong> projects.<br />

If the key does not already exist, it is created. The key is left on the target system<br />

when the feature to which this key belongs is uninstalled.<br />

This option is available only for keys that do not contain subkeys or values.<br />

Project: This registry flag type is available in <strong>Express</strong> projects.<br />

If this flag applies to an empty key, the key is not created at installation. If this flag<br />

applies to a key that contains values and the key does not exist on the target system,<br />

the key and values are created at installation. In both cases, the key, all subkeys, and<br />

values are removed at uninstallation—even if the subkeys and values were added<br />

after the installation.<br />

210 ISE-1800-UG01 <strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!