Share via


RegisterPackageOptions Class

Definition

Specifies the deployment options that you can configure when you use the RegisterPackageByUriAsync method to register a Package.

public ref class RegisterPackageOptions sealed
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.Management.Deployment.PackageDeploymentContract")]
/// [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 RegisterPackageOptions final
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.Management.Deployment.PackageDeploymentContract")]
[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 RegisterPackageOptions
function RegisterPackageOptions()
Public NotInheritable Class RegisterPackageOptions
Inheritance
Object Platform::Object IInspectable RegisterPackageOptions
Attributes

Remarks

RegisterPackageOptions is available on Windows 10, version 2004 (10.0; Build 19041) and later.

Constructors

RegisterPackageOptions()

Creates a new instance of the RegisterPackageOptions class.

Properties

AllowUnsigned

Gets or sets a value that indicates whether to allow an unsigned Package to be registered.

AppDataVolume

Gets or sets the target volume on which to store app data.

DeferRegistrationWhenPackagesAreInUse

Gets or sets a value that indicates whether to delay registration of the main Package or dependency packages if the packages are currently in use.

DependencyPackageFamilyNames
DependencyPackageUris

Gets the list of URIs of the dependency Packages to add.

DeveloperMode
ExpectedDigests

Gets a dictionary that maps the URIs associated with a RegisterPackageOptions with the corresponding digest string.

ExternalLocationUri

Gets or sets the URI of an external disk location outside of the MSIX Package where the package manifest can reference application content.

ForceAppShutdown

Gets or sets a value that indicates whether the processes associated with the Package will be shut down forcibly so that registration can continue if the package, or any package that depends on the package, is currently in use.

ForceTargetAppShutdown

Gets or sets a value that indicates whether the processes associated with the Package will be shut down forcibly so that registration can continue if the package is currently in use.

ForceUpdateFromAnyVersion

Gets or sets a value that indicates whether to force a specific version of a Package to be staged/registered, regardless of if a higher version is already staged/registered.

InstallAllResources

Gets or sets a value that indicates whether the app skips resource applicability checks. This effectively stages or registers all resource Packages that a user passes in to the command, which forces applicability for all packages contained in a bundle. If a user passes in a bundle, all contained resource packages will be registered.

IsExpectedDigestsSupported
OptionalPackageFamilyNames

Gets the list of Package family names from the main bundle to be registered.

StageInPlace

Gets or sets a value that indicates whether to stage the Package in place.

Applies to

See also