MicrosoftDocs / winrt-api

WinRT reference content for developing Microsoft Universal Windows Platform (UWP) apps
Creative Commons Attribution 4.0 International
227 stars 493 forks source link

Missing information about capability 'packageManagement' #1492

Open Felix-Dev opened 4 years ago

Felix-Dev commented 4 years ago

If you just use RemovePackageAsync() to remove apps installed via the store, you will get a 'System.UnauthorizedAccessException: Access is denied' exception. In order to uninstall store apps, you also need to add the restricted capability 'packageManagement' to your app. This should be pointed out in the documentation here.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

alvinhu29 commented 2 months ago

I get into the same issue. Is there any solution on it ?