PackageManager.RegisterPackageByFullNameAsync | registerPackageByFullNameAsync method

Applies to Windows only

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

Syntax


packageManager.registerPackageByFullNameAsync(mainPackageFullName, dependencyPackageFullNames, deploymentOptions).done( /* Your success and error handlers */ );

Parameters

mainPackageFullName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string that specifies the full name of the main package to be registered.

dependencyPackageFullNames

Type: IIterable<String> [JavaScript/C++] | System.Collections.Generic.IEnumerable<String> [.NET]

Strings that specify the full names of the dependency packages to be registered.

deploymentOptions

Type: DeploymentOptions

A DeploymentOptions-typed value that specifies the package deployment option.

Return value

Type: IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress>

The status of the deployment request. The DeploymentResult contains the final returned value of the deployment operation, once it is completed. The DeploymentProgress can be used to obtain the percentage of completion over the entire course of the deployment operation.

Remarks

To hide specifics about the manifest of a bundle package, instead of calling RegisterPackageAsync, you can call RegisterPackageByFullNameAsync to register a package by its full name. Bundle packages and regular packages are both referenced by the common package full name and thus registration by full name reduces the amount of domain knowledge required by the caller.

RegisterPackageByFullNameAsync can't install a package for any user other than the caller. The dependencyPackageFullNames can contain 0 elements if there aren't any dependency packages.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Management.Deployment
Windows::Management::Deployment [C++]

Metadata

Windows.winmd

See also

PackageManager

 

 

Show:
© 2014 Microsoft