PackageStatus
PackageStatus
PackageStatus
PackageStatus
Class
Definition
Provides the status of the package.
public : sealed class PackageStatus : IPackageStatus, IPackageStatus2public sealed class PackageStatus : IPackageStatus, IPackageStatus2Public NotInheritable Class PackageStatus Implements IPackageStatus, IPackageStatus2// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Use the Package.Status property to get the PackageStatus. The Package.Status and all of the properties of the PackageStatus class are read-only, so you cannot change their values. To get updated information about the status of the package, access the Package.Status property again to get a new instance of the PackageStatus class.
Properties
DataOffline DataOffline DataOffline DataOffline
Indicates whether the data for the package is offline.
public : PlatForm::Boolean DataOffline { get; }public bool DataOffline { get; }Public ReadOnly Property DataOffline As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the data for the package is installed on a volume which is currently offline or cannot be accessed; otherwise FALSE.
Remarks
One reason that the data could be offline is that it is stored on removable media that has been removed.
DependencyIssue DependencyIssue DependencyIssue DependencyIssue
Indicates whether this package depends on a package that can't be used.
public : PlatForm::Boolean DependencyIssue { get; }public bool DependencyIssue { get; }Public ReadOnly Property DependencyIssue As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that there is a problem with a package that this package depends on; otherwise FALSE.
Remarks
The issue with the package that this package depends on must be resolved before this package can be used.
DeploymentInProgress DeploymentInProgress DeploymentInProgress DeploymentInProgress
Indicates whether the package is being serviced.
public : PlatForm::Boolean DeploymentInProgress { get; }public bool DeploymentInProgress { get; }Public ReadOnly Property DeploymentInProgress As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package is being serviced and consequently cannot be used; otherwise FALSE.
Remarks
A package that is in the process of being updated is an example of a package being serviced.
Disabled Disabled Disabled Disabled
Indicates whether the package has been disabled.
public : PlatForm::Boolean Disabled { get; }public bool Disabled { get; }Public ReadOnly Property Disabled As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package is disabled; otherwise FALSE.
Remarks
Disabled packages must be enabled before they can be used.
Packages are disabled by using PackageManager.SetPackageStatus and enabled by using PackageManager.ClearPackageStatus.
IsPartiallyStaged IsPartiallyStaged IsPartiallyStaged IsPartiallyStaged
Indicates whether the package is partially staged.
public : PlatForm::Boolean IsPartiallyStaged { get; }public bool IsPartiallyStaged { get; }Public ReadOnly Property IsPartiallyStaged As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True means that the package is partially staged; false, otherwise.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
LicenseIssue LicenseIssue LicenseIssue LicenseIssue
Indicates whether there is a problem with the license for this package.
public : PlatForm::Boolean LicenseIssue { get; }public bool LicenseIssue { get; }Public ReadOnly Property LicenseIssue As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that there is a problem with the license for this package; otherwise FALSE.
Remarks
Examples of license problems include missing and expired licenses. License problems must be resolved before the package can be used.
Modified Modified Modified Modified
Indicates whether the package is missing files, system information, etc.
public : PlatForm::Boolean Modified { get; }public bool Modified { get; }Public ReadOnly Property Modified As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that there is a problem with the package such as missing files; otherwise FALSE.
NeedsRemediation NeedsRemediation NeedsRemediation NeedsRemediation
Indicates whether the package is unusable.
public : PlatForm::Boolean NeedsRemediation { get; }public bool NeedsRemediation { get; }Public ReadOnly Property NeedsRemediation As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
FALSE indicates that the package is in a usable state; otherwise TRUE.
Remarks
This property reflects a set of properties that you would otherwise have to query individually to determine if the package is usable. For example this property reflects whether one or more of NotAvailable, LicenseIssue, Modified, or Tampered are set.
NotAvailable NotAvailable NotAvailable NotAvailable
Indicates whether the package is available.
public : PlatForm::Boolean NotAvailable { get; }public bool NotAvailable { get; }Public ReadOnly Property NotAvailable As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package is not available; otherwise FALSE.
Remarks
A package may be unavailable for multiple reasons. This property reflects a set of properties that you would otherwise have to query individually to determine if the package is unavailable. For example this property reflects whether one or more of DataOffline, Disabled, or PackageOffline is set.
PackageOffline PackageOffline PackageOffline PackageOffline
Indicates whether the package is offline and cannot be used.
public : PlatForm::Boolean PackageOffline { get; }public bool PackageOffline { get; }Public ReadOnly Property PackageOffline As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package is offline; otherwise FALSE.
Remarks
A package is offline if any of the package's files are installed on a volume that is currently offline or cannot be accessed. For example, the package's files may have been installed on removable media that is no longer online.
Servicing Servicing Servicing Servicing
Indicates whether the package is being serviced.
public : PlatForm::Boolean Servicing { get; }public bool Servicing { get; }Public ReadOnly Property Servicing As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package is being serviced; otherwise FALSE.
Remarks
This property reflects whether any of the reasons that a package may be serviced are currently true such as DeploymentInProgress.
Tampered Tampered Tampered Tampered
Indicates whether the package may have been tampered with.
public : PlatForm::Boolean Tampered { get; }public bool Tampered { get; }Public ReadOnly Property Tampered As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
TRUE indicates that the package has been tampered with; otherwise FALSE.
Remarks
One reason a package may return TRUE for this property is if 3rd party anti-malware software flags the package as malware.
Methods
VerifyIsOK() VerifyIsOK() VerifyIsOK() VerifyIsOK()
Indicates whether the package is in good condition and may be used.
public : PlatForm::Boolean VerifyIsOK()public bool VerifyIsOK()Public Function VerifyIsOK() As bool// You can use this method in JavaScript.
TRUE indicates that the package is in good condition; otherwise FALSE.
Remarks
This property reflects a set of properties that you would otherwise have to query individually to determine if the package is in good condition and is usable. For example this property reflects whether NotAvailable, LicenseIssue, Modified, Tampered are not set.