-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uninstall fails when two versions have the same name, and different ID. #1619
Comments
I have also run into this issue. Caused for me by having the package installed at the machine level via executable installer, then upgrading the package with winget, which defaulted to installing the new package at the user level. I would have expected winget to check what level the package was installed at and match that when doing the upgrade. Uninstall FailureI tried using the WorkaroundThe workaround for the issue was to go to Apps and Features in Windows and uninstall the older version there. Possible UI improvementIt might be a good idea to show in a separate column in the output how the package was installed, at the machine or user level. Then at least it would be more immediately obvious to the user where the problem lies before doing a web search about the issue. This column would also be good to have with |
I have a similar (probably the same) problem.
So, I call it again with |
Oh, by the way, if you have already the newest version of dotnet installed (or any other program of course) and also a specific version, winget should not show the specific version as being able to be upgraded. It would probably be useful to hide certain installation from upgrade completely. Just a thought. |
We've been working on the side-by-side scenarios. You could try the latest release and enable the experimental feature on: Please provide feedback at: |
@denelon I'm experiencing this issue when trying to uninstall a package.
One of those packages (the new one) was installed via an .exe downloaded from the internet, the other one was installed via winget (at least that's how I remember it, don't count on it though).
So I wanted to remove one of the packages:
I totally understand why the command would fail, so I found out about the "exact" flag and tried that:
The ids are clearly not the same, why is this failing? I'm also confused as to why the
winget list
also returns two packages, but both have the same id.I also reported the issue here: #282 (comment), but I assume it's the wrong issue as that is specifically about installing powershell.
In case you are wondering about the version:
Originally posted by @Elias-Graf in #1083 (comment)
The text was updated successfully, but these errors were encountered: