Uninstall by ID fails with incorrect message when multiple versions are present #2476
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.
Brief description of your issue
One one of my machines a number of different versions of some apps are installed:
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:
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:
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
The text was updated successfully, but these errors were encountered: