PackageInstallReason Enum
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.
public enum PackageInstallReason
type PackageInstallReason =
- Inheritance
-
PackageInstallReason
Fields
| Name | Value | Description |
|---|---|---|
| Unknown | 0 | Code indicating that the reason for installing this package is unknown. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| Policy | 1 | Code indicating that this package was installed due to enterprise policy. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| DeviceRestore | 2 | Code indicating that this package was installed as part of restoring from another device. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| DeviceSetup | 3 | Code indicating that this package was installed as part of device setup. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
| User | 4 | Code indicating that the package installation was initiated by the user. Android reference for Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. |
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.