Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.85 KB

registerpackageoptions_externallocationuri.md

File metadata and controls

27 lines (15 loc) · 1.85 KB
-api-id -api-type
P:Windows.Management.Deployment.RegisterPackageOptions.ExternalLocationUri
winrt property

-description

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

-property-value

The URI of an external disk location outside of the MSIX package where the package manifest can reference application content.

-remarks

This property can be used when you are granting identity to an unpackaged desktop application by using a sparse MSIX package. A sparse package contains only a package manifest (not an executable or other application content). The package manifest references application content in an external disk location outside of the package.

In this scenario, you can use the ExternalLocationUri property to specify the location where your application's executable and other content are installed to. In code that is run by your installer or your application, create a RegisterPackageOptions object and assign this property to the external location. Then, call the RegisterPackageByUriAsync method and pass the RegisterPackageOptions object to options parameter.

In most cases, we recommend that you use the ExternalLocationUri property of an AddPackageOptions object in conjunction with the AddPackageByUriAsync method instead of this property and the RegisterPackageByUriAsync method.

-see-also

Package, RegisterPackageOptions

-examples