Share via


PackageDeploymentManager Class

Definition

Manages the software available to a user.

public ref class PackageDeploymentManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Management.Deployment.PackageDeploymentContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PackageDeploymentManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Management.Deployment.PackageDeploymentContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PackageDeploymentManager
Public NotInheritable Class PackageDeploymentManager
Inheritance
Object Platform::Object IInspectable PackageDeploymentManager
Attributes

Methods

AddPackageAsync(String, AddPackageOptions)

Adds a Package (the main package) and its dependency packages for the current user, using the specified deployment options.

AddPackageByUriAsync(Uri, AddPackageOptions)

Adds a Package (the main package) and any additional dependency packages, for the current user, using the specified deployment options.

AddPackageSetAsync(PackageSet, AddPackageOptions)
DeprovisionPackageAsync(String)
DeprovisionPackageByUriAsync(Uri)
DeprovisionPackageSetAsync(PackageSet)
EnsurePackageReadyAsync(String, EnsureReadyOptions)

Asynchronously determines whether the target package(s) is/are present (installed, registered) and ready for use; and, if not, puts them in that state. That can involve downloading the target, registering it for the user, and remediating a package in an unhealthy state.

EnsurePackageReadyByUriAsync(Uri, EnsureReadyOptions)

Asynchronously determines, for a uri, whether the target package(s) is/are present (installed, registered) and ready for use; and, if not, puts them in that state. That can involve downloading the target, registering it for the user, and remediating a package in an unhealthy state.

EnsurePackageSetReadyAsync(PackageSet, EnsureReadyOptions)

Asynchronously determines whether the target package set is present (installed, registered) and ready for use; and, if not, puts it in that state. That can involve downloading the target, registering it for the user, and remediating a package in an unhealthy state.

GetDefault()

Rerieves an instance of the manager.

IsPackageDeploymentFeatureSupported(PackageDeploymentFeature)
IsPackageProvisioned(String)

Determines whether the target package(s) is/are provisioned.

IsPackageProvisionedByUri(Uri)

Determines, for a uri, whether the target package(s) is/are provisioned.

IsPackageReady(String)

Determines whether the target package(s) is/are present (installed, registered) and ready for use. This method is a quick test to determine whether more (costly) work is needed before the target can be used.

IsPackageReadyByUri(Uri)

Determines, for a uri, whether the target package(s) is/are present (installed, registered) and ready for use. This method is a quick test to determine whether more (costly) work is needed before the target can be used.

IsPackageReadyOrNewerAvailable(String)

Determines whether the target package(s) is/are present (installed, registered) and ready for use.

IsPackageReadyOrNewerAvailableByUri(Uri)

Determines, for a uri, whether the target package(s) is/are present (installed, registered) and ready for use.

IsPackageRegistrationPending(String)

Detects whether package registration is pending for the specified target.

If a package is in use, and you call AddPackageAsync with a newer version and with the option DeferRegistrationWhenPackagesAreInUse set to true, then the registration is delayed until the package is no longer in use. When it's no longer in use, then it can be updated. In cases like that, IsPackageRegistrationPending returns true.

IsPackageRegistrationPendingForUser(String, String)

Detects whether package registration is pending for the specified target and user.

If a package is in use, and you call AddPackageAsync with a newer version and with the option DeferRegistrationWhenPackagesAreInUse set to true, then the registration is delayed until the package is no longer in use. When it's no longer in use, then it can be updated. In cases like that, IsPackageRegistrationPending returns true.

IsPackageSetProvisioned(PackageSet)

Determines whether the target package set is provisioned.

IsPackageSetReady(PackageSet)

Determines whether the target package set is present (installed, registered) and ready for use. This method is a quick test to determine whether more (costly) work is needed before the target can be used.

IsPackageSetReadyOrNewerAvailable(PackageSet)

Determines whether the target package set is present (installed, registered) and ready for use. This method is a quick test to determine whether more (costly) work is needed before the target can be used.

ProvisionPackageAsync(String, ProvisionPackageOptions)
ProvisionPackageByUriAsync(Uri, ProvisionPackageOptions)
ProvisionPackageSetAsync(PackageSet, ProvisionPackageOptions)
RegisterPackageAsync(String, RegisterPackageOptions)
RegisterPackageByUriAsync(Uri, RegisterPackageOptions)
RegisterPackageSetAsync(PackageSet, RegisterPackageOptions)
RemovePackageAsync(String, RemovePackageOptions)
RemovePackageByFamilyNameAsync(String, RemovePackageOptions)
RemovePackageByFullNameAsync(String, RemovePackageOptions)
RemovePackageByUriAsync(Uri, RemovePackageOptions)
RemovePackageSetAsync(PackageSet, RemovePackageOptions)
RepairPackageAsync(String)

Asynchronously provides the same functionality as is available interactively via Windows Settings' Repair button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Repair).

If this app isn't working right, we can try to repair it. The app's data won't be affected.

RepairPackageByUriAsync(Uri)

Provides the same functionality as is available interactively via Windows Settings' Repair button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Repair).

If this app isn't working right, we can try to repair it. The app's data won't be affected.

RepairPackageSetAsync(PackageSet)

Provides the same functionality as is available interactively via Windows Settings' Repair button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Repair).

If this app isn't working right, we can try to repair it. The app's data won't be affected.

ResetPackageAsync(String)

Asynchronously provides the same functionality as is available interactively via Windows Settings' Reset button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Reset).

If this app still isn't working right, reset it. The app's data will be deleted.

ResetPackageByUriAsync(Uri)

Asynchronously provides the same functionality as is available interactively via Windows Settings' Reset button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Reset).

If this app still isn't working right, reset it. The app's data will be deleted.

ResetPackageSetAsync(PackageSet)

Asynchronously provides the same functionality as is available interactively via Windows Settings' Reset button on the detail page for an app (Apps > Installed apps > ... > Advanced options > Reset).

If this app still isn't working right, reset it. The app's data will be deleted.

StagePackageAsync(String, StagePackageOptions)
StagePackageByUriAsync(Uri, StagePackageOptions)

Stages a Package to the system without registering it.

StagePackageSetAsync(PackageSet, StagePackageOptions)

Applies to

See also