Privileged Property

Windows Installer

Privileged Property

The Privileged property indicates whether the installation is performed in the context of elevated privileges. The installer sets this property if the user has administrator privileges, if the application has been assigned by a system administrator, or if both the user and machine policies AlwaysInstallElevated are set to true.

Default Value

The installer does not set this property if the user is not allowed to install with elevated privileges.

Remarks

Developers of installer packages can use the Privileged property to make the installation conditional upon system policy, the user being an administrator, or assignment by an administrator.

When running on Windows Vista, the Privileged and AdminUser are the same.

Requirements

VersionWindows Installer 5.0 on Windows Server 2008 R2 or Windows 7. Windows Installer 4.0 or Windows Installer 4.5 on Windows Server 2008 or Windows Vista. Windows Installer on Windows Server 2003, Windows XP, and Windows 2000. See the Windows Installer Run-Time Requirements for information about the minimum Windows service pack that is required by a Windows Installer version.

See Also

Properties

Send comments about this topic to Microsoft

Build date: 8/13/2009

© 2009 Microsoft Corporation. All rights reserved.