Share via


GenerateBootstrapper.ApplicationRequiresElevation Property

Definition

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

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

public:
 property bool ApplicationRequiresElevation { bool get(); void set(bool value); };
public bool ApplicationRequiresElevation { get; set; }
public bool ApplicationRequiresElevation { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.ApplicationRequiresElevation : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ApplicationRequiresElevation : bool with get, set
Public Property ApplicationRequiresElevation As Boolean

Property Value

true if the installed component runs with elevated permissions; otherwise false.

Attributes

Remarks

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 RequiresElevation Property to True.

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.

Applies to

See also