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
PS C:\> winget upgrade -e --id 'Microsoft.VC++2015-2022Redist-x86'
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
---------------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2015-2022 Redistributable (x86) Microsoft.VC++2015-2022Redist-x86
Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.29.30135 {fa7f6d52-f85e-48ef-8f56-a37268aa5772}
PS C:\>
Regardless whether it's even worth updating this package, how does one get more specific than this?
@FLevent29 this is a bug. We're working on additional schema changes to better match what we see in Apps & Features. This is one of our prime test cases for ensuring the matching logic is improved. The schema has been updated, now we need to do the work in the client to leverage the fields. Please add your 👍 to #980.
I will also leave this here in the hope that it will get fixed
Microsoft Visual C++ 2008 Redistributable - x64 Microsoft.VC++2008Redist-x64 9.0.30729.4148 9.0.30729.6161 winget
2 upgrades available.
winget upgrade Microsoft.VC++2008Redist-x86
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-----------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2008 Redistributable - x86 Microsoft.VC++2008Redist-x86
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161 {9BE518E6-ECC6-35A9-88E4-87755C07200F}
Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.4148 {4B6C7001-C7D6-3710-913E-5BC23FCE91E6}
Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.6161 {5FCE6D76-F5DC-37AB-B2B8-22AB8CEDB1D4}
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 {9A25302D-30C0-39D9-BD6F-21E6EC160475}
Facing same with Python 2 & .NET SDK
👽 winget upgrade -e Python.Python.2
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-------------------------------------------------------------
Python 2 Python.Python.2
Python 2.7.18 (64-bit) {A5F504DF-2ED9-4A2D-A2F3-9D2750DD42D6}
👽 winget upgrade -e Microsoft.dotnet
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
-----------------------------------------------------------------------
Microsoft .NET SDK Microsoft.dotnet
Microsoft .NET SDK 5.0.405 (x64) {343a89ec-9510-4063-9421-b0767cc25d40}
amazing tool btw, thanks
People just follow the recommendation! Example:
winget install --name PowerShell --exact --source winget
Multiple packages found matching input criteria. **Please refine the input.**
Name Id Source
------------------------------------------------------
PowerShell Preview Microsoft.PowerShell.Preview winget
PowerShell Microsoft.PowerShell winget
REFINE THE INPUT! Use Id, version, or anything that distinguishes the package.
Example:
winget install --name PowerShell --exact --Id Microsoft.PowerShell --source winget
I'm seeing this as well:
winget upgrade --include-unknown
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------------------
Google Chrome Google.Chrome 117.0.5938.150 118.0.5993.71 winget
Windows Terminal Microsoft.WindowsTerminal 1.18.2681.0 1.18.2822.0 winget
OBS Studio OBSProject.OBSStudio 29.0.2 29.1.3 winget
Google Chrome Google.Chrome 117.0.5938.150 118.0.5993.71 winget
Microsoft ASP.NET Core 3.1.32 - Shared Framework (x64) Microsoft.DotNet.AspNetCore.6 < 6.0.5 6.0.23 winget
5 upgrades available.
I then perform:
Winget upgrade --disable-interactivity --force --id google.chrome
Found Google Chrome [Google.Chrome] Version 118.0.5993.71
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://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi
██████████████████████████████ 103 MB / 103 MB
Successfully verified installer hash
Starting package install...
Successfully installed
and then going back to:
winget upgrade --include-unknown
Name Id Version Available Source
------------------------------------------------------------------------------------------------------------------------
Google Chrome Google.Chrome 117.0.5938.150 118.0.5993.71 winget
Windows Terminal Microsoft.WindowsTerminal 1.18.2681.0 1.18.2822.0 winget
OBS Studio OBSProject.OBSStudio 29.0.2 29.1.3 winget
Microsoft ASP.NET Core 3.1.32 - Shared Framework (x64) Microsoft.DotNet.AspNetCore.6 < 6.0.5 6.0.23 winget
4 upgrades available.
You can see it upgraded one of them. If I do the the upgrade command again, I get this:
Winget upgrade --disable-interactivity --force --id Google.Chrome
No available upgrade found.
No newer package versions are available from the configured sources.
And if I issue this command, this is the result:
Winget upgrade --disable-interactivity --force --name "Google Chrome"
Multiple installed packages found matching input criteria. Please refine the input.
Name Id
---------------------------
Google Chrome Google.Chrome
Google Chrome Google.Chrome
... you can see the IDs are identical.
Using the --exact flag doesn't help.
I'm also experiencing this issue with Microsoft.DotNet.AspNetCore.6