PreviousNext
Macrovision

Specifying Whether a Product Should Be Advertised If Its Prerequisites Are Run with Elevated Privileges

InstallShield 2008

Project-Specific

Project

This information applies to the following project types:

If an installation and its setup prerequisites require elevated privileges, Windows Vista displays a User Account Control (UAC) prompt for the setup prerequisites, and another one for the .msi file. If this common scenario applies to your installation, you may want to specify that your installation should advertise and then run your .msi file to help end users avoid the second UAC prompt. If this scenario does not apply to you, Macrovision recommends that you avoid advertising the .msi file because it would not avoid a second UAC prompt.

Tip

Tip

The Require Administrative Privileges setting in the Summary Information Stream area of the General Information view is where you specify whether the .msi file requires administrative privileges. The Behavior tab in the Setup Prerequisite Editor is where you specify whether a prerequisite requires administrative privileges. For more information about other InstallShield settings that may affect whether Windows Vista displays UAC prompts, see Minimizing the Number of User Account Control Prompts During Installation.

Task

Task

To specify whether your .msi package should be advertised:

  1. In the View List under Media, click Releases.
  2. In the Releases explorer, click the release that you would like to configure.
  3. Click the Setup.exe tab.
  4. For the Advertise If Prerequisites Are Elevated setting, select the appropriate option.

The available options are:

Important Note

Important

The package must support advertisement in order for either of the advertise options to work. Advertisement is not instantaneous, and it adds extra delays to the installation. In addition, unexpected behavior may occur if the end user clicks Cancel after advertisement but before the main part of the installation has finished. For example, advertised shortcuts for your product may appear on the desktop before the main installation begins, and a confused user canceling the main installation may leave your package advertised but not fully installed. Therefore, in some cases, it may be better to leave this setting as No to allow the second UAC prompt and avoid product advertisement.

A common goal is for an installation to display only one UAC prompt. The advertise options for the Advertise If Prerequisites Are Elevated setting facilitate this but do not guarantee it in all situations. For example, any time that an installation causes a restart, the installation process returns to limited privileges after the restart. The subsequent privilege elevation may display an additional UAC prompt, whether the elevation is required for a prerequisite or for the .msi file. When the restart comes between the last prerequisite and the .msi file, the .msi file is not advertised. Following are some examples of different outcomes that may occur when you select one of the advertise options for this setting:

See Also




Copyright Information | Contact Macrovision