-
Notifications
You must be signed in to change notification settings - Fork 512
Description
The PackageManager functions to StageInPlace will all fail with an AccessDenied exception, if made by a process that is itself running in a container. The same code run unpackaged will succeed, but hey - we all want us writing modern code, right??? It took 3 weeks to figure out that this was the cause.
To be clear, this is code in a package that is trying to add a different package using AppAttach style attachment of a CIMfs package (not a package trying to update itself).
At a minimum the documentation on the following items should reflect this restriction (but it sure would be nice if the code just handled it).
StagePackageAsync(all flavors)
StagePackageByUriAsync()
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 4ca6c93f-e575-bde9-510b-26afa5e76aa1
- Version Independent ID: 9d47a522-61ca-66fd-c2b8-a35200ae84f9
- Content: PackageManager.StagePackageByUriAsync(Uri, StagePackageOptions) Method (Windows.Management.Deployment) - Windows UWP applications
- Content Source: winrt-api-build/xml/Windows.Management.Deployment/PackageManager.xml
- Product: uwp
- Technology: winrt-reference
- GitHub Login: @QuinnRadich
- Microsoft Alias: quradic