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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 9-4: Registry Flags (cont.)<br />

Icon Command Description<br />

Setting Install/Uninstall Behavior for Registry Keys<br />

Chapter 9: Configuring the Target System<br />

Editing the Registry<br />

Install if absent,<br />

Uninstall if present<br />

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

This option is similar to the default behavior (the Automatic registry flag), with one<br />

exception. For the Automatic registry flag, if the key is not empty during<br />

uninstallation, it is not removed. For the Install if absent, Uninstall if present (*)<br />

flag, if the registry key is present during uninstallation, the key is removed,<br />

regardless of whether its subkeys or values remain.<br />

In <strong>InstallShield</strong>, installation and uninstallation behavior for registry entries is set at the subkey level.<br />

Task To set the install/uninstall behavior for a registry key:<br />

1. In the View List under Configure the Target System, click Registry.<br />

2. In the Feature list, select the feature that corresponds to the registry key whose behavior you are<br />

setting.<br />

3. In the Destination computer’s Registry view pane, right-click the registry key and then click<br />

the appropriate behavior.<br />

Install/Uninstall Behavior Options<br />

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

key must have the same installation and uninstallation behavior. For a list of available options, see<br />

Registry Flags.<br />

Handling Registry Entries for a Per-<strong>User</strong> Installation<br />

Since the current user may not have sufficient privileges for modifying keys under<br />

HKEY_LOCAL_MACHINE, you may need to write the entries under HKEY_CURRENT_USER.<br />

When you select HKEY_USER_SELECTABLE in the Registry view, the entries are created under the<br />

appropriate registry hive, according to the type of installation and the user’s access rights:<br />

• In a per-user installation, meaning that the installation is being run by someone with user-level<br />

access privileges, these entries would be made under HKEY_CURRENT_USER.<br />

• In a per-machine installation, meaning that ALLUSERS is not null and that the user is an<br />

administrator, the entries would be written under HKEY_LOCAL_MACHINE.<br />

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

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

Saved successfully!

Ooh no, something went wrong!