Skip to content

Uninstall fails when two versions have the same name, and different ID. #1619

Closed

Description

Demitrius Nelon (@denelon) I'm experiencing this issue when trying to uninstall a package.

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

In case you are wondering about the version:

> winget -v
v1.1.12663

Originally posted by Elias (@Elias-Graf) in #1083 (comment)

Activity

  1. ghost added
    Needs-Triage
    on Oct 21, 2021
  2. added
    Issue-Bug
    and removed
    Needs-Triage
    on Oct 21, 2021
  3. DrPepperBianco commented on Nov 24, 2021

    @DrPepperBianco

    I have a similar (probably the same) problem.

    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.

  4. DrPepperBianco commented on Nov 24, 2021

    @DrPepperBianco

    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.

  5. added
    Side-by-Side
    on Feb 22, 2023
  6. modified the milestones: v1.5-Client, on Apr 18, 2023
  7. denelon commented on Apr 2, 2024

    @denelon
    CollaboratorAuthor

    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:

  8. modified the milestones: , 1.9 Client on Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSide-by-Side

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions