winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Multiple apps found matching input criteria when trying to install PowerShell 7.0.1

Open AdilHindistan opened this issue 6 years ago • 66 comments

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


AdilHindistan avatar May 22 '20 01:05 AdilHindistan

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 avatar Jun 03 '20 12:06 SubhamK108

@SubhamK108 Thanks for the short solution.

#292 is part of the fix for this issue.

denelon avatar Jun 04 '20 16:06 denelon

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.

TravisLRiffle avatar Jun 11 '20 08:06 TravisLRiffle

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

amos-ortal avatar Jun 16 '20 17:06 amos-ortal

winget install -e Microsoft.PowerShell doesn't work.

winget install -e Microsoft.Powershell does 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 avatar Jun 18 '20 04:06 Sciroccogti

@Sciroccogti The same for me. However at the end of installation I received a message "Installation abandoned". Nevertheless the installation completed successfully.

plipowczan avatar Jun 23 '20 08:06 plipowczan

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

Sciroccogti avatar Jun 23 '20 10:06 Sciroccogti

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.

robinwilson16 avatar Jul 01 '20 20:07 robinwilson16

winget install --id<appID> -e

ghost avatar Jul 18 '20 13:07 ghost

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?

mattlab7 avatar Jul 20 '20 16:07 mattlab7

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.

denelon avatar Jul 20 '20 16:07 denelon

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?

robinwilson16 avatar Jul 21 '20 07:07 robinwilson16

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

denelon avatar Aug 11 '20 18:08 denelon

Fixed in https://github.com/microsoft/winget-cli/releases/tag/v0.1.42101-preview

denelon avatar Aug 11 '20 18:08 denelon

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 avatar Jun 02 '21 19:06 pressRtowin

@pressRtowin what is the output for winget list plexamp and winget upgrade?

denelon avatar Jun 02 '21 19:06 denelon

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

pressRtowin avatar Jun 02 '21 20:06 pressRtowin

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

denelon avatar Jun 02 '21 23:06 denelon

Nothing has changed.

pressRtowin avatar Jun 03 '21 20:06 pressRtowin

@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?

denelon avatar Jun 03 '21 20:06 denelon