GenerateBootstrapper.ApplicationRequiresElevation Property


This API supports the product infrastructure and is not intended to be used directly from your code.

Gets or sets whether a component runs with elevated permissions when it is installed on a target computer.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

public bool ApplicationRequiresElevation { get; set; }

Property Value

Type: System.Boolean

Returns True if the installed component runs with elevated permissions; otherwise False.

This property can be set in the project file, but it is not exposed in the MSBuild schema. In the project file's MsiBootstrapper section, set the to True.6f449071-9caf-46e7-b7d4-7bbc21cf9aa7

A component runs with elevated permissions when it writes a registry key or is being installed to the GAC. For example, if you are installing assemblies to the GAC, you need to set this property to True.

Return to top