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 />

Per-<strong>User</strong> vs. Per-Machine Installations<br />

During a per-machine installation, the Windows Installer requires elevated privileges, and it directs files<br />

and registry entries to per-machine locations. If <strong>User</strong> Account Control (UAC) is available on the target<br />

system, a per-machine installation typically prompts for consent or credentials, depending on the access<br />

level of the user. During a per-user installation, the Windows Installer does not prompt for credentials,<br />

and it redirects files and registry entries to per-user locations.<br />

For more information, see Single Package Authoring on the MSDN Web site.<br />

Effects of ALLUSERS on Windows Vista and Later<br />

Custom actions that have an in-script execution setting of deferred in system context are used to<br />

perform an action with the rights granted to the LocalSystem account on Windows, since the Windows<br />

Installer service runs in the system context. Actions not marked as deferred in system context run with<br />

user impersonation and have the rights that the user who launches the installation has.<br />

When a per-user installation (that is, one where ALLUSERS is not set) is run, deferred-in-systemcontext<br />

actions run in the same context in which normal deferred or immediate custom actions run,<br />

which is with user impersonation. This can potentially cause a run-time issue with the custom action in<br />

the following circumstances:<br />

• The user who launches the Windows Installer installation is not an administrator; or the user is<br />

running the installation on Windows Vista or later, the user is part of the Administrators group, and<br />

the user does not have administrator privileges by default.<br />

• The custom action attempts to modify a resource in a per-machine location on the machine, such as<br />

a file in the Program Files folder, or a registry key or value in HKEY_LOCAL_MACHINE.<br />

While this may not be an issue with Windows XP or earlier versions of Windows, Windows Vista and<br />

later do not give users full administrator privileges by default. Therefore, since a deferred-in-systemcontext<br />

action runs with user impersonation when ALLUSERS is not set, the custom action could fail.<br />

The recommended method for preventing this behavior is to ensure that a per-machine installation is<br />

always performed by setting ALLUSERS. Per-machine installations are generally easier to manage<br />

than per-user installations.<br />

Default Value of ALLUSERS<br />

The ALLUSERS property is set to 1 by default. If you configure your installation so that it can be<br />

installed per user without administrative privileges, you may want to consider changing the value of the<br />

ALLUSERS property.<br />

Task To configure the value of ALLUSERS:<br />

1. In the View List under Organize Your Setup, click General Information.<br />

2. For the ALLUSERS setting, select the appropriate value.<br />

For information about the available options, see General Information Settings.<br />

Default Controls on the Ready to Install and Customer Information Dialogs<br />

Use the Show All <strong>User</strong>s Option setting to specify whether you want to give end users the option of<br />

installing your product for all users or for only the current user. This setting is displayed when you click<br />

the Dialogs explorer in the Dialogs view. Available options for the Show Per-<strong>User</strong> Option setting are:<br />

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

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

Saved successfully!

Ooh no, something went wrong!