Deployment Tools Foundation
IsElevated Property
Checks whether the product is installed with elevated privileges. An application is called
a "managed application" if elevated (system) privileges are used to install the application.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public bool IsElevated { get; }
Public ReadOnly Property IsElevated As Boolean Get
public: property bool IsElevated { bool get (); }
member IsElevated : bool with get
Return Value
Boolean
True if the product is elevated; false otherwise
True if the product is elevated; false otherwise
Remarks
Note that this property does not take into account policies such as AlwaysInstallElevated, but verifies that the local system owns the product's registry data.
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)