Add-AppxProvisionedPackage command error

MSH™ ® 1 Reputation point
2020-03-22T08:16:17.84+00:00

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

Universal Windows Platform (UWP)
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,908 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sean Liming 4,511 Reputation points
    2020-04-03T14:21:39.12+00:00

    Sounds like an unclean install. Besides removing files and folders, you might want to check an registry key associations with the application.

    https://learn.microsoft.com/en-us/windows/application-management/remove-provisioned-apps-during-update

    1 person found this answer helpful.

  2. 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 = 1

    These keys are mentioned in this thread:

    https://social.technet.microsoft.com/Forums/en-US/d4e7e3f2-6757-420d-988a-509bb1e723d1/issue-provisioning-a-windows-app-notspecified-com-exception?forum=win10itprosetup


  3. 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.

    0 comments No comments