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
At the moment, when installing apps with multiple search results, the following nomenclature is working perfectly:
winget install --name <appName> -e
Note that the appName is Case Sensitive !
@SubhamK108 Thanks for the short solution.
#292 is part of the fix for this issue.
I was able to install or upgrade PowerShell using the exact match parameter
winget install -e Microsoft.Powershell
This also worked for me, although I did get an error with Google Chrome about the "installer hash verification failed." Everything else worked great.
I was able to install or upgrade PowerShell using the exact match parameter
winget install -e Microsoft.Powershell
The documentation/help is not clear about -e which is too bad and easy to fix
winget install -e Microsoft.PowerShelldoesn't work.
winget install -e Microsoft.Powershelldoes work.The search is case sensitive! (microsoft/winget-pkgs#884)
However, now things have changed:
winget install -e Microsoft.PowerShell does work while winget install -e Microsoft.Powershell doesn't work.
@Sciroccogti The same for me. However at the end of installation I received a message "Installation abandoned". Nevertheless the installation completed successfully.
@Sciroccogti The same for me. However at the end of installation I received a message "Installation abandoned". Nevertheless the installation completed successfully.
Oh yes I received that message as well, but I was running the powershell installation in powershell itself, so I think it's normal for it to be 'abandoned'.
Same issue trying to install Terminal as others have stated:
winget install Microsoft.WindowsTerminal
Fails with:
Multiple apps found matching input criteria. Please refine the input.
Name Id Version
--------------------------------------------------------------------
Windows Terminal Microsoft.WindowsTerminal 1.0.1401.0
Windows Terminal Preview Microsoft.WindowsTerminalPreview 1.1.1671.0
Workaround confirmed working using the -e:
winget install -e Microsoft.WindowsTerminal
Using this as install button is broken in Microsoft Store again and re-registering app-x packages is failing this time.
winget install --id<appID> -e
Like the others, I'm having the same sort of issue
winget install Google.Chrome
outputs this
Multiple apps found matching input criteria. Please refine the input.
Name Id Version
------------------------------------------
Chrome Google.Chrome 84.0.4147.89
Chrome Beta Google.ChromeBeta 84.0.4147.38
Only was able to work with the -e flag
winget install -e Google.Chrome
If package IDs were unique, shouldn't the install command default to ID for seamless usage?
There were a few steps involved in getting a solution to this Issue. We are using some of the same codebase on the server to build the database of apps. The issue is that a substring wasn't being treated as an "exact" match for show or install. We're testing a version of the client that will hopefully provide a resolution.
Also in the screenshot above is it a bit strange that Chrome Beta is actually an older version than Chrome non-beta. Does this mean repos are not yet kept up to date?
@AdilHindistan this Issue should be resolved with the current release of the client (v0.1.42101 Preview). The matching criteria for show and install are identical and will lock on an "exact" string match. The matching criteria for search is still more broad to help locate packages with matching substrings.
Fixed in https://github.com/microsoft/winget-cli/releases/tag/v0.1.42101-preview
I have a similar issue trying to upgrade Plexamp. I'm not sure why but it detects multiple instances on my system.
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
----------------------------------------------------
Plexamp Plex.Plexamp
Plexamp 3.4.4 {46418f0f-cea3-5740-a7e9-a0166db1e7c4}
You'd think winget upgrade Plex.Plexamp -e or winget upgrade -e Plex.Plexamp (both similar to suggestions listed above) would work, but they don't. Neither do winget upgrade --id Plex.Plexamp -e nor winget upgrade --name Plexamp -e. Driving me crazy honestly.
@pressRtowin what is the output for winget list plexamp and winget upgrade?
@denelon
Name Id Version Available Source
---------------------------------------------
Plexamp Plex.Plexamp 3.4.6
Plexamp Plex.Plexamp 3.4.4 3.4.6 winget
The second line is from running winget install --id Plex.Plexamp -e just today which worked, unlike upgrade. winget upgrade only shows Plexamp Plex.Plexamp 3.4.4 3.4.6 winget now since running that, but before it showed something similar (without winget as the source). It never displayed the {windowsappIDnonsense} version in the upgrade list.
Is it working correctly now?
I've run into cases where a package installed two instances in Add/Remove Programs. The Cura program is an .exe installer that doesn't "upgrade" it just installs the new version beside the old one. I had 4.8.0 on my machine, and I ran winget upgrade. It then installed the 4.9.1 version, and now when I run winget list cura you see the old one looks like an upgrade is available, and the new one is current.
winget list cura
Name Id Version Available Source
------------------------------------------------------
Ultimaker Cura Ultimaker.Cura 4.8.0 4.9.1 winget
Ultimaker Cura Ultimaker.Cura 4.9.1
Nothing has changed.
@pressRtowin I just tested:
PS C:\Users\denelon> winget search PowerShell
Name Id Version Match Source
----------------------------------------------------------------------------------------------------
PowerShell Microsoft.PowerShell 7.1.3 winget
Windows Terminal Preview Microsoft.WindowsTerminalPreview 1.9.1445.0 Tag: PowerShell winget
Windows Terminal Microsoft.WindowsTerminal 1.8.1444.0 Tag: powershell winget
PowerShell-Preview Microsoft.PowerShell-Preview 7.2.0-preview.6 Tag: powershell winget
EasyConnect lstratman.easyconnect 3.1.0.105 Tag: powershell winget
Oh My Posh JanDeDobbeleer.OhMyPosh 3.160.1 Tag: PowerShell winget
PowerShell Preview (MSIX) Microsoft.PowerShell-Preview-MSIX 7.0.2 winget
PowerShell Universal IronmanSoftware.PowerShellUniversal 1.4.0 winget
PS C:\Users\denelon> winget install PowerShell
Found PowerShell [Microsoft.PowerShell]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x64.msi
██████████████████████████████ 95.0 MB / 95.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\denelon>
What version of the Windows Package Manager are you running?