Multiple apps found matching input criteria when trying to install PowerShell 7.0.1
Brief description of your issue
When I try to install PowerShell 7.0.1, winget cannot seem to locate the correct one
Steps to reproduce
None of these work winget install PowerShell winget install Powershell winget install Microsoft.Powershell winget install --id Microsoft.Powershell --version 7.0.1
Expected behavior
It should pick up Powershell 7.0.1 (btw, that should have been named PowerShell not Powershell)
Actual behavior
I get the following:
Multiple apps found matching input criteria. Please refine the input.
Name Id Version
---------------------------------------------------------------
Powershell Microsoft.Powershell 7.0.1
PowerShell-Preview Microsoft.PowerShell-Preview 7.1.0-preview.3
Environment
PS C:\Users\adil> winget --info
Windows Package Manager v0.1.41331 Preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.18363.836
Package: Microsoft.DesktopAppInstaller v1.0.41331.0
Links:
Privacy Statement: https://aka.ms/winget-privacy
License agreement: https://aka.ms/winget-license
3rd Party Notices: https://aka.ms/winget-3rdPartyNotice
Homepage: https://aka.ms/winget
Windows Package Manager v1.0.11451
@pressRtowin can you share output like I did from the same two commands? I'd like to see what might be different.
I have no issues installing powershell...
@pressRtowin it looks like two instances of Plexamp were installed on your system. That's the same as the "Cura" example I have above. I don't know if the Plexamp installer actually recognizes the earlier version and upgrades it or if it is designed to support "side by side" installation. Some packages are designed with this intentional behaviors. For packages that aren't, you might need to have the manifest modified for the "UpgradeBehavior" to specify uninstall to remove the "older" version before installing the "newer" version.
@denelon Doesn't really explain why winget is giving a "Please refine the input." error and not some type of installation error, especially when I'm specifying an exact match using the ID fields which are clearly different in the two matches that it finds. The duplicate IDs in winget list plexamp would've only been a thing after I ran the install command but I was having the same error before that.
Generally, the "Please refine the input" error happens when the client needs the user to disambiguate between multiple options. This happens several places in the code. If the -id is not distinctly identifying the package manifest or a "single" entry in "Add / Remove Programs" this happens. I believe what is happening is either the two entries in "Add / Remove Programs" aren't unique enough (I think there is work here in the client), or for some reason more than one manifest matched some set of criteria. This may be similar to https://github.com/microsoft/winget-pkgs/discussions/16038
@pressRtowin can you re-create the conditions in a virtual machine and share the logs? You may very well have encountered a bug, or something changed with the manifests, and the problem was corrected. I would be more than happy to take a look at how we could fix the problem if this is a reproduceable bug.
Getting a similar situation trying to upgrade the .NET 5.0 SDK. Because I also have the 6.0 preview, it picks that up too, and returns "refine the input" even if I specify the ID of the 5.0 package:
`C:> winget upgrade --id Microsoft.dotnet Multiple installed packages found matching input criteria. Please refine the input. Name Id
Microsoft .NET SDK Microsoft.dotnet Microsoft .NET SDK 6.0.100-preview.4.21255.9 (x64) {e0100246-937c-4ed6-b71f-2e37cf75fe43}`
This issue still exists:
PS C:\WINDOWS\system32> winget upgrade Name Id Version Available Source
TeamViewer TeamViewer.TeamViewer 15.21.5 15.21.6 winget TeraCopy CodeSector.TeraCopy 3.8.2 3.8.5 winget Plexamp plex.Plexamp 3.4.0 3.5.0 winget Python 3 Python.Python.3 3.9.5150.0 3.9.6150.0 winget
PS C:\WINDOWS\system32> winget upgrade codesector.teracopy Multiple installed packages found matching input criteria. Please refine the input. Name Id
TeraCopy CodeSector.TeraCopy TeraCopy version 3.8.2 TeraCopy_is1
PS C:\WINDOWS\system32> winget upgrade python.python.3 Multiple installed packages found matching input criteria. Please refine the input. Name Id
Python 3 Python.Python.3 Python 3.9.5 (32-bit) {708847ae-c2de-49fb-9b85-8d2e9c991358}
PS C:\WINDOWS\system32> winget upgrade plex.plexamp Multiple installed packages found matching input criteria. Please refine the input. Name Id
Plexamp plex.Plexamp Plexamp 3.4.0 {46418f0f-cea3-5740-a7e9-a0166db1e7c4}
Any news on this - it's rendering winget basically unusable for alot of packages, in part because "exact" doesn't seem to mean exact at all. For example:
winget upgrade -e "Microsoft Visual C++ 2013 Redistributable (x86)" Multiple installed packages found matching input criteria. Please refine the input. Name Id
Microsoft Visual C++ 2013 Redistributable (x86) Microsoft.VC++2013Redist-x86 Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.40664 {042d26ef-3dbe-4c25-95d3-4c1b11b235a7}
I've include "x86" in my name parameter, so why is it "exactly" matching the x64 version?
Matching is looking at the values in the manifest and the values in Apps & Features. The runtimes are a bit of a challenge based on how versioning was implemented. We're still working on finding the best solution.
This is still not working for upgrade command:
C:\Users\me>winget upgrade -e Python.Python.3
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-------------------------------------------------------------
Python 3 Python.Python.3
Python 2.7.18 (64-bit) {A5F504DF-2ED9-4A2D-A2F3-9D2750DD42D6}
C:\Users\me>winget show -e Python.Python.3
Found Python 3 [Python.Python.3]
Version: 3.9.7150.0
Publisher: Python Software Foundation
Author: Python Software Foundation
Moniker: python3
Description: Python is a programming language that lets you work more quickly and integrate your systems more effectively.
Homepage: https://www.python.org
License: PSF LICENSE AGREEMENT FOR PYTHON
License Url: https://docs.python.org/3/license.html
Installer:
Type: Burn
Locale: en-US
Download Url: https://www.python.org/ftp/python/3.9.7/python-3.9.7-amd64.exe
SHA256: 3f63f4c77a6da13f9bae715eb6644a48bd5f900601e0f1f233862e8ca1a96dd8
C:\Users\me>winget upgrade --id Python.Python.3 -e
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-------------------------------------------------------------
Python 3 Python.Python.3
Python 2.7.18 (64-bit) {A5F504DF-2ED9-4A2D-A2F3-9D2750DD42D6}
Why on Earth is it even matching "Python 2" with "Python 3"?!
Stumbled upon this issue when trying to perform winget upgrade Microsoft.Teams.
It is giving me the following output:
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-------------------------------
Microsoft Teams Microsoft.Teams
Microsoft Teams Teams
I did see in this discussion issue that people are mentioning to use the -e flag (or --exact), but when doing so I still get the same output as mentioned above.
I also looked at the casing as this seems to be case sensitive, but no luck there either.
C:\Users\Elias> winget uninstall 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}
C:\Users\Elias> winget uninstall -e --id 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}
Can we re-open this issue? :)
I too want this issue reopened, I have installed a number of packages, some of which refuse to install without the -e flag.
Better behavior should be to try with exact match first and should that fail offer the interactive prompt @marvinpuethe proposed.
This issue was related to PowerShell and the "install" command.
There are various reasons why the winget client is having trouble with disambiguation. I've created a couple of new issues for specific impacted scenarios so we can isolate and resolve them. In some cases, the problem needs to be fixed in the manifest, or the package installer itself rather than the winget client.
We need specific actionable issues so we can isolate the cause(s), and resolve them. Some of the Issues are too broad and generic to be confident they have been resolved. Sadly when those are encountered, we end up with multiple reports of something that isn't quite the same. In those cases, I have been trying to create discrete Issues to identify the specific scenario impacted.
There are a few exceptions, and in those cases, I close the original as a duplicate, and refer to another issue we're working on. Sometimes one fix impacts multiple different scenarios.
I blogged about some tips with using multiple sources.
I was able to install or upgrade PowerShell using the exact match parameter
winget install -e Microsoft.Powershell
What worked for me was using capital 's' in 'shell', so using this line instead: winget install -e Microsoft.PowerShell
Stumbled upon this issue when trying to perform
winget upgrade Microsoft.Teams. It is giving me the following output:Multiple installed packages found matching input criteria. Please refine the input. Name Id ------------------------------- Microsoft Teams Microsoft.Teams Microsoft Teams TeamsI did see in this discussion issue that people are mentioning to use the -e flag (or --exact), but when doing so I still get the same output as mentioned above.
I also looked at the casing as this seems to be case sensitive, but no luck there either.
I fixed this by replacing upgrade with install, winget install Microsoft.Teams -e upgraded the package either way
Stumbled upon this issue when trying to perform
winget upgrade Microsoft.Teams. It is giving me the following output:Multiple installed packages found matching input criteria. Please refine the input. Name Id ------------------------------- Microsoft Teams Microsoft.Teams Microsoft Teams Teams
Can confirm.
Microsoft Teams is currently impossible to upgrade using the upgrade command, regardless of whether or not you use the -e flag, correct capitalization, --id params, etc.
Replacing upgrade with install does work, though.
The -e flag seems to work but I had to reach this page via a Google search to figure that out.
I was trying to winget install vlc and no matter how specific I was with my query (e.g. winget install VideoLAN.VLC) it kept telling me I should be more specific.