DEP0700 – Another user has already installed a packaged version of this app

I was struggling with a problem during development of an app. I’ve had this before – build failed with the message:

“DEP0700 Another user has already installed a packaged version of this app”.

Because there are more than one user on my PC I most of the times could fix this by logging in to the other accounts to remove the app and then it would work. But not this time. No other installations that I could find, but the error remains. Also after reboot.

I searched the internet and found some solutions, but I couldn’t get them to work for me. Then I found this one below. This one, but also other articles on this topic, explained that it has to do with staged packages. These are updates through the Windows Store. As this staged package is installed by a user that can’t login (something like S-1-5-18), you have to use a trick to remove it.  To help me remember the next time this occurs and for everyone facing this problem … here it is:

  1. Launch PowerShell as administrator and type: get-appxpackage -all
  2. Look for the “staged” entry for your app. It should contain a line like this: PackageUserInformation : {S-1-5-18 [Unknown user]: Staged}
  3. Note the PackageFullName and copy it. It should be something like ABCDEF01.YourAppName_1.0.0.0_neutral__xyz0123456789
  4. Download the PSExec tool from the site: technet.microsoft.com/en-us/sysinternals/bb897553
  5. Launch a Command Prompt as administrator and type: psexec -i -s -d powershell
  6. In the PowerShell window that was launched, type: remove-appxpackage PackageFullName (where PackageFullName is the name you copied in step 3)
    For example: remove-appxpackage ABCDEF01.YourAppName_1.0.0.0_neutral__xyz0123456789

Now you should be able to launch your app again from Visual Studio.

 
Comments

No comments yet.