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.

Chapter 6: Creating Installations<br />

Before You Begin<br />

• If Required Execution Level is set to Invoker, your installation includes setup prerequisites that<br />

require administrative privileges, and Require Administrative Privileges in the General Information<br />

view is set to No, end users should see one UAC prompt—plus up to one additional UAC prompt for<br />

each reboot—during installation.<br />

• If the full user interface of the setup launcher is displayed and the installation includes setup<br />

prerequisites that need to be installed, the setup launcher typically displays the setup prerequisite<br />

dialog before the main installation starts. If one or more of the setup prerequisites that need to be<br />

installed require administrative privileges, the Install button on the message box has the shield icon<br />

to alert the end user that elevated privileges are required.<br />

• If the installation is continuing after a reboot and privileges must be elevated, the OK button of the<br />

continuation message box has the shield icon. If privileges do not need to be elevated, the shield<br />

button is not displayed.<br />

• If your installation includes more than one setup prerequisite that must be installed on a target<br />

machine and one or more of those setup prerequisites requires administrative privileges, the UAC<br />

prompt is displayed before the first setup prerequisite is installed. This may allow elevated privileges<br />

to be used for all prerequisites without requiring separate UAC prompts for each prerequisite<br />

installation. Note, however, that if a setup prerequisite installation causes a reboot, administrative<br />

privileges are lost, and a UAC prompt may be displayed if any of the remaining prerequisites require<br />

administrative privileges.<br />

• If your installation includes more than one setup prerequisite that must be installed on a target<br />

machine and one or more of those setup prerequisites requires administrative privileges, the UAC<br />

prompt is displayed before the first setup prerequisite is installed. This may allow elevated privileges<br />

to be used for all prerequisites without requiring separate UAC prompts for each prerequisite<br />

installation. Note, however, that if a setup prerequisite installation causes a reboot, administrative<br />

privileges are lost, and a UAC prompt may be displayed if any of the remaining prerequisites require<br />

administrative privileges.<br />

A slightly different behavior applies to feature prerequisites. If your installation is going to install<br />

any features that are associated with prerequisites, the UAC prompt is displayed when the<br />

ISInstallPrerequisites custom action relaunches Setup.exe in feature prerequisite installation mode.<br />

This occurs regardless of whether any of the feature prerequisites require elevated privileges. It also<br />

occurs before any of the feature prerequisites’ conditions are evaluated to determine whether the<br />

feature prerequisites need to be installed. Note that if a feature prerequisite installation causes a<br />

reboot, administrative privileges are lost. After the reboot, the ReadyToInstall dialog is displayed<br />

again, and the end user needs to click the Install button to proceed with the rest of the installation.<br />

In this case, the UAC prompt is displayed again when the ISInstallPrerequisites custom action<br />

relaunches Setup.exe in feature prerequisite installation mode.<br />

• Note that if Require Administrative Privileges in the General Information view is set to No but your<br />

.msi package tries to perform a task for which it does not have adequate privileges, Windows<br />

Installer may display a run-time error.<br />

• If privileges are elevated at the end of an installation and the Setup Complete Success dialog<br />

launches the product, elevated privileges are carried over to your product. In most cases, running an<br />

application with elevated privileges is discouraged.<br />

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

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

Saved successfully!

Ooh no, something went wrong!