Skip to content
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 by ID fails with incorrect message when multiple versions are present #2476

Open
sba923 opened this issue Aug 28, 2022 · 2 comments
Labels
Area-Matching Issue related to correlation between installed package and manifest Command-Uninstall Issue related to WinGet Uninstall Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@sba923
Copy link

sba923 commented Aug 28, 2022

Brief description of your issue

One one of my machines a number of different versions of some apps are installed:

image

image

I thought I would be able to uninstall all versions by ID and then uninstall only the most recent, but uninstalling fails in that case:

image

My analysis is that winget cannot determine which of the installed versions to uninstall, but the message is obviously incorrect.

Uninstalling by name works, albeit with somewhat confusing output:

image

Steps to reproduce

Attempt winget uninstall --id with multiple copies of the same app (with the same ID) are present.

Expected behavior

The operation should fail with a message similar to 'Multiple packages with ID xxx are present'.

Actual behavior

winget uninstall incorrectly states that no installed package matches the specified ID.

Environment

Windows Package Manager v1.3.2091
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.1889
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
@ghost ghost added the Needs-Triage Issue need to be triaged label Aug 28, 2022
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Aug 28, 2022
@hisuwh
Copy link

hisuwh commented Nov 21, 2022

Is there a solution to this? I have multiple versions of the same application installed:

$ winget list -q pulumi
Name   Id            Version Available Source
---------------------------------------------
Pulumi Pulumi.Pulumi 3.39.3  3.47.1    winget
Pulumi Pulumi.Pulumi 3.40.2  3.47.1    winget

Trying to upgrade, or uninstall I get Multiple installed packages found matching input criteria. Even trying to target a specific version:
image

@denelon denelon added this to WinGet Feb 14, 2023
@denelon denelon added this to the v1.5-Client milestone Feb 14, 2023
@denelon denelon added Command-Uninstall Issue related to WinGet Uninstall Area-Matching Issue related to correlation between installed package and manifest labels Feb 18, 2023
@denelon
Copy link
Contributor

denelon commented Feb 22, 2023

.NET Core SDK 2 shouldn't be matching with 3_1

@denelon denelon modified the milestones: v1.5-Client, v.Next-Client Apr 19, 2023
@denelon denelon removed this from WinGet Jun 13, 2023
@denelon denelon removed this from the v.Next-Client milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Command-Uninstall Issue related to WinGet Uninstall Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants