AppInstallManager.CanInstallForAllUsers Property

Definition

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

Boolean

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.

Applies to