PackageManager PackageManager PackageManager PackageManager Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Manages the software available to a user.

public : sealed class PackageManager : IPackageManager, IPackageManager2, IPackageManager3, IPackageManager4, IPackageManager5
struct winrt::Windows::Management::Deployment::PackageManager : IPackageManager, IPackageManager2, IPackageManager3, IPackageManager4, IPackageManager5
public sealed class PackageManager : IPackageManager, IPackageManager2, IPackageManager3, IPackageManager4, IPackageManager5
Public NotInheritable Class PackageManager Implements IPackageManager, IPackageManager2, IPackageManager3, IPackageManager4, IPackageManager5
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

PackageManager() PackageManager() PackageManager() PackageManager()

Creates and initializes a new instance of the object.

Properties

DebugSettings DebugSettings DebugSettings DebugSettings

Get the debugging settings for package deployment.

Methods

AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

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

AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)

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

AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>)

Adds a package and its dependency packages to the specified volume for the current user, using the specified deployment options.

AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) AddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>)

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

AddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) AddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) AddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) AddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume)

Allows single or multiple app packages to be installed with an .appinstaller file.

AddPackageVolumeAsync(String) AddPackageVolumeAsync(String) AddPackageVolumeAsync(String) AddPackageVolumeAsync(String)

Creates a new volume. The caller must be a member of the administrators group.

CleanupPackageForUserAsync(String, String) CleanupPackageForUserAsync(String, String) CleanupPackageForUserAsync(String, String) CleanupPackageForUserAsync(String, String)

Cleans up a specified package for a specified user. Used to cleanup packages installed for a user after their user profile is deleted.

ClearPackageStatus(String, PackageStatus) ClearPackageStatus(String, PackageStatus) ClearPackageStatus(String, PackageStatus) ClearPackageStatus(String, PackageStatus)

Clears the status of a package.

FindPackage(String) FindPackage(String) FindPackage(String) FindPackage(String)

Retrieves information about the specified package installed for any user.

FindPackageForUser(String, String) FindPackageForUser(String, String) FindPackageForUser(String, String) FindPackageForUser(String, String)

Retrieves information about a specific package installed for a specific user or for all users.

FindPackages() FindPackages() FindPackages() FindPackages()

Retrieves information about a specified family of packages installed across all users.

FindPackages(String) FindPackages(String) FindPackages(String) FindPackages(String)

Retrieves information about a specified family of packages installed across all users.

FindPackages(String, String) FindPackages(String, String) FindPackages(String, String) FindPackages(String, String)

Finds all installed packages with the specified name and publisher.

FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String) FindPackagesForUser(String)

Finds all packages installed for the specified user.

FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String) FindPackagesForUser(String, String)

Retrieves information about a specified family of packages installed for a specific user.

FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String) FindPackagesForUser(String, String, String)

Retrieves information about all packages with the specified package name and publisher name, installed for a specific user.

FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, String, PackageTypes)

Retrieves information about packages of specific types with the specified package name and publisher name, installed for a specific user.

FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes) FindPackagesForUserWithPackageTypes(String, String, PackageTypes)

Retrieves information about a specified family of packages and of specific types that are installed for the specified user.

FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes) FindPackagesForUserWithPackageTypes(String, PackageTypes)

Finds packages of specific types that are installed for the specified user.

FindPackagesWithPackageTypes(String, String, PackageTypes) FindPackagesWithPackageTypes(String, String, PackageTypes) FindPackagesWithPackageTypes(String, String, PackageTypes) FindPackagesWithPackageTypes(String, String, PackageTypes)

Finds all installed packages of specific types with the specified name and publisher.

FindPackagesWithPackageTypes(String, PackageTypes) FindPackagesWithPackageTypes(String, PackageTypes) FindPackagesWithPackageTypes(String, PackageTypes) FindPackagesWithPackageTypes(String, PackageTypes)

Retrieves information about a specified family of packages and specific package types that are installed across all users.

FindPackagesWithPackageTypes(PackageTypes) FindPackagesWithPackageTypes(PackageTypes) FindPackagesWithPackageTypes(PackageTypes) FindPackagesWithPackageTypes(PackageTypes)

Retrieves information about specific package types that are installed across all users.

FindPackageVolume(String) FindPackageVolume(String) FindPackageVolume(String) FindPackageVolume(String)

Gets the specified volume.

FindPackageVolumes() FindPackageVolumes() FindPackageVolumes() FindPackageVolumes()

Gets all the known volumes, regardless of their current state.

FindUsers(String) FindUsers(String) FindUsers(String) FindUsers(String)

Finds the users who have installed the specified package.

GetDefaultPackageVolume() GetDefaultPackageVolume() GetDefaultPackageVolume() GetDefaultPackageVolume()

Gets the default package volume, which is the target of deployment operations such as the AddPackageAsync method.

GetPackageVolumesAsync() GetPackageVolumesAsync() GetPackageVolumesAsync() GetPackageVolumesAsync()

Gets the package volumes on the device.

MovePackageToVolumeAsync(String, DeploymentOptions, PackageVolume) MovePackageToVolumeAsync(String, DeploymentOptions, PackageVolume) MovePackageToVolumeAsync(String, DeploymentOptions, PackageVolume) MovePackageToVolumeAsync(String, DeploymentOptions, PackageVolume)

Moves the specified package to the specified volume using the specified deployment options.

ProvisionPackageForAllUsersAsync(String) ProvisionPackageForAllUsersAsync(String) ProvisionPackageForAllUsersAsync(String) ProvisionPackageForAllUsersAsync(String)

Enables an app package to be installed for all users on a device.

RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

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

RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) RegisterPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)

Registers a package (the main package) and its dependency packages on the specified volume for the current user, using the specified deployment options.

RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>) RegisterPackageByFamilyNameAsync(String, IIterable<String>, DeploymentOptions, PackageVolume, IIterable<String>)

Registers a package (the main package) by its family name and its dependency packages for the current user.

RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions) RegisterPackageByFullNameAsync(String, IIterable<String>, DeploymentOptions)

Registers a package (the main package) by its full name and its dependency packages for the current user.

RemovePackageAsync(String) RemovePackageAsync(String) RemovePackageAsync(String) RemovePackageAsync(String)

Removes a package for the current user asynchronously and receives progress and status messages on the removal operation. Dependency packages are also removed for the user if no other packages installed for the user depend on them.

RemovePackageAsync(String, RemovalOptions) RemovePackageAsync(String, RemovalOptions) RemovePackageAsync(String, RemovalOptions) RemovePackageAsync(String, RemovalOptions)

Removes a package for the current user asynchronously and receives progress and status messages on the removal operation. Dependency packages are also removed for the user if no other packages installed for the user depend on them.

RemovePackageVolumeAsync(PackageVolume) RemovePackageVolumeAsync(PackageVolume) RemovePackageVolumeAsync(PackageVolume) RemovePackageVolumeAsync(PackageVolume)

Removes the specified volume.

RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>)

Requests a SmartScreen check and user verification before installing the app package(s).

RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) RequestAddPackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>)

Requests a SmartScreen check and user verification before installing the app package(s). This method provides a packageUrisToInstall overload to specify external packages to be staged and registered.

RequestAddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) RequestAddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) RequestAddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume) RequestAddPackageByAppInstallerFileAsync(Uri, AddPackageByAppInstallerOptions, PackageVolume)

Allows single or multiple app packages to be installed with an .appinstaller file. This will perform a SmartScreen filter and user verification before installing the app package(s).

SetDefaultPackageVolume(PackageVolume) SetDefaultPackageVolume(PackageVolume) SetDefaultPackageVolume(PackageVolume) SetDefaultPackageVolume(PackageVolume)

Sets the default package volume, which is the target of deployment operations such as the AddPackageAsync method.

SetPackageState(String, PackageState) SetPackageState(String, PackageState) SetPackageState(String, PackageState) SetPackageState(String, PackageState)

Sets the state of a package, for example, to usable, tampered with, and so on.

SetPackageStatus(String, PackageStatus) SetPackageStatus(String, PackageStatus) SetPackageStatus(String, PackageStatus) SetPackageStatus(String, PackageStatus)

Sets the status of the specified package.

SetPackageVolumeOfflineAsync(PackageVolume) SetPackageVolumeOfflineAsync(PackageVolume) SetPackageVolumeOfflineAsync(PackageVolume) SetPackageVolumeOfflineAsync(PackageVolume)

Sets the specified volume to an offline state. The caller must be a member of the administrators group.

SetPackageVolumeOnlineAsync(PackageVolume) SetPackageVolumeOnlineAsync(PackageVolume) SetPackageVolumeOnlineAsync(PackageVolume) SetPackageVolumeOnlineAsync(PackageVolume)

Sets the specified volume to an online state. The caller must be a member of the administrators group.

StagePackageAsync(Uri, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>)

Stages a package to the system without registering it.

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

Stages a package to the system without registering it.

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume)

Stages a package to the system without registering it.

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>)

Stages a package to the system without registering it.

StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>) StagePackageAsync(Uri, IIterable<Uri>, DeploymentOptions, PackageVolume, IIterable<String>, IIterable<Uri>, IIterable<Uri>)

Stages a package to the system without registering it.

StageUserDataAsync(String) StageUserDataAsync(String) StageUserDataAsync(String) StageUserDataAsync(String)

Stages a package's roaming data to the system without registering the package. Call this method after staging the package but before registering the package for a particular user.

StageUserDataAsync(String, DeploymentOptions) StageUserDataAsync(String, DeploymentOptions) StageUserDataAsync(String, DeploymentOptions) StageUserDataAsync(String, DeploymentOptions)

Stages a package's roaming data to the system without registering the package. Call this method after staging the package but before registering the package for a particular user.

UpdatePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) UpdatePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) UpdatePackageAsync(Uri, IIterable<Uri>, DeploymentOptions) UpdatePackageAsync(Uri, IIterable<Uri>, DeploymentOptions)

Updates an installed package or its dependency packages for the current user.

See Also