Issue: Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version.

VS UWP app issue, Another user has already installed an unpackaged version of this app. The current user cannot replace this with a packaged version.

Run PS as administrator:

  • get the appx information by name.
  • remove the package by fullname.
get-appxpackage -name <AppName_From_Error_Message> -AllUsers
remove-appxpackage -package <Package_FullName> -AllUsers

Tips:

e.g. Search packages which PackageFullName likes Microsoft.VCLibs.*

get-appxpackage | { $_.PackageFullName -like 'Microsoft.VCLibs.*' }

e.g. Search packages which have Dependencies like *Libs.14.0*

get-appxpackage | {. $_.Dependencies -like '*Libs.14.0*' }
e.g. Uninstall a package with FullName is Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe
remove-appxpackage -package Microsoft.VCLibs.140.00.UWPDesktop_14.0.30704.0_x64__8wekyb3d8bbwe

refer:

https://developercommunity.visualstudio.com/t/another-user-has-already-installed-an-unpackaged-v/198610

Leave a Comment