AppInstallManager.CanInstallForAllUsers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the calling app has elevated administrative privileges to ensure installing an app for all users will succeed.
public:
property bool CanInstallForAllUsers { bool get(); };
bool CanInstallForAllUsers();
public bool CanInstallForAllUsers { get; }
var boolean = appInstallManager.canInstallForAllUsers;
Public ReadOnly Property CanInstallForAllUsers As Boolean
Property Value
bool
True indicates the calling app has elevated administrative privileges; otherwise, false.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
The calling app must have elevated admin privileges when installing an app for all users otherwise an Access Denied error will be thrown when attempted.