IsElevated Property

Microsoft Deployment Tools

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++
public bool IsElevated { get; }
Public ReadOnly Property IsElevated As Boolean
public:
property bool IsElevated {
	bool get ();
}
Return Value
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) Version: 3.0.0.0 (3.5.1623.0)