You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uninstall fails when two versions have the same name, and different ID. #1619
> winget list --name Colorpicker
Name Id Version Available Source
--------------------------------------------------------
Colorpicker Toinane.Colorpicker 2.0.0 2.0.3 winget
Colorpicker Toinane.Colorpicker 2.0.3 winget
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:
> winget uninstall Colorpicker
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
--------------------------------------------------------
Colorpicker Toinane.Colorpicker
Colorpicker 2.0.3 {2fa01720-ea93-5692-9697-66fad2caf3bf}
I totally understand why the command would fail, so I found out about the "exact" flag and tried that:
winget uninstall -e Toinane.Colorpicker
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
--------------------------------------------------------
Colorpicker Toinane.Colorpicker
Colorpicker 2.0.3 {2fa01720-ea93-5692-9697-66fad2caf3bf}
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.
winget upgrade shows me an upgdare for Microsoft .NET SDK, When I call winget upgrade "Microsoft .NET SDK" I see the following result:
PS C:\Windows\system32> winget upgrade -q "Microsoft .NET SDK"
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-----------------------------------------------------------------------
Microsoft .NET SDK Microsoft.dotnet
Microsoft .NET SDK 5.0.403 (x64) {81aba691-7919-4e81-9d4a-e5df954b0b1d}
Microsoft .NET SDK 5.0.303 (x64) {b447173e-28f0-40ae-b0c8-15b9c0a1ad4b}
PS C:\Windows\system32>
So, I call it again with winget upgrade -e "Microsoft .NET SDK" but get the same result. Although all 3 installations have different names and also different ids. The test with --id also didn't work, with or without -e.
Reacted by gentaro, Charles Godwin, Haoran Ni and Eric Stringham
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.
Activity
DrPepperBianco commentedon Nov 24, 2021
I have a similar (probably the same) problem.
winget upgradeshows me an upgdare for Microsoft .NET SDK, When I callwinget upgrade "Microsoft .NET SDK"I see the following result:So, I call it again with
winget upgrade -e "Microsoft .NET SDK"but get the same result. Although all 3 installations have different names and also different ids. The test with--idalso didn't work, with or without-e.DrPepperBianco commentedon Nov 24, 2021
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.
denelon commentedon Apr 2, 2024
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: