Sounds like an unclean install. Besides removing files and folders, you might want to check an registry key associations with the application.
Add-AppxProvisionedPackage command error
Hello
Please someone can help me ? When I try to execute this command in PowerShell as administrator ,
Add-AppxProvisionedPackage -Online -PackagePath c:\AppxPackage\50ea4d02e68f4217869d054e06374b74.appxbundle -LicensePath c:\AppxPackage\50ea4d02e68f4217869d054e06374b74_License1.xml
then I get this error :
Add-AppxProvisionedPackage : Unspecified error At line:1 char:1
- Add-AppxProvisionedPackage -Online -PackagePath c:\Appx ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: :)) [Add-AppxProvisionedPackage], COMException
- FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand
Note : 2 weeks ago I did run the command without error. Then I uninstalled the application (not by command) but by the uninstall button in Apps. Now when I want to install it again by executing the command I get this error. Can someone help me?
Thank you so much
3 answers
Sort by: Most helpful
-
-
Greg Lindsay 11 Reputation points Microsoft Employee
2020-04-03T20:45:00.957+00:00 Please also check the following registry keys:
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Appx\AllowDevelopmentWithoutDevLicense = 1
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Appx\AllowAllTrustedApps = 1These keys are mentioned in this thread:
-
Raja Shanmugam 21 Reputation points
2021-08-09T12:14:53.633+00:00 you can try to Remove existing provisioned package
Remove-AppxProvisionedPackage -PackageName "Name of Package" -Online -AllUsers
Basically, Add-AppxProvisionedPackage will install the app for all the users in the machine. when you uninstall for current user (from menu), this issue will occur.
So use Remove-AppxProvisionedPackage to remove from all users.