Repository navigation
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
No response
Brief description of your issue
I upgraded powershell to latest version, then run below to confirm no more updates were needed:
PS> winget list --id Microsoft.PowerShell --upgrade-available
No installed package found matching input criteria.
This is confusing/bad message.
Without --upgrade-available, winget list --id Microsoft.PowerShell correctly shows the installed version.
The current message makes it sound as if WinGet no longer recognizes the installed package.
Steps to reproduce
- Install PowerShell 7 with WinGet.
- Run
winget list --id Microsoft.PowerShell --upgrade-availablewhile an update is available. - Upgrade it with
winget upgrade --id Microsoft.PowerShell. - Run the list command again.
Expected behavior
Microsoft.PowerShell version 7.6.9.0, no update needed
Actual behavior
No installed package found matching input criteria.
Environment
[winget --info]
Windows Package Manager v1.29.380
© 2026 Microsoft. All rights reserved.
Windows: Windows.Desktop v10.0.26200.9457
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.0
WinGet Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
ConfigurationProcessorPath Disabled
DefaultProxy Disabled
Activity
christopher-strings-justine commentedon Nov 2, 2026
I'd like to work on this issue.
I'll first look for the relevant WinGet CLI code, and then work on a fix. Please let me know if this issue can be assigned to me.
mattias-aronsson commentedon Nov 4, 2026
Yes, that would be great if you have time, thanks!
christopher-strings-justine commentedon Nov 5, 2026
Hi,
this is an update from the issue #6645
The change makes the output consistent when checking for available upgrades on packages that are already up to date.
now, running:
winget list --id Microsoft.PowerShell --upgrade-availabledisplays the appropriate update-related messages instead of incorrectly reporting that no installed package was found.
I've also added regression tests for both up-to-date and non-installed packages. All related tests are passing.
Could you please review my PR and let me know if any changes are needed?
proof
output
**if you want to have custom output behaviour such as
let me know if my code does job,then you can accept my merge request.
mattias-aronsson commentedon Nov 6, 2026
I built your updated code and got the same as your output.
This is a good improvement, thanks for the superfast patch!
If possible, it would be even better if the "UpdateNoPackagesFoundReason" was not displayed, as that provide no useful information as i see it.
Or is it possible get "No packages need update"?
christopher-strings-justine commentedon Nov 6, 2026
yes sure,
can you make sure this
you need output in this format?
mattias-aronsson commentedon Nov 6, 2026
Yes, that would be perfect.
microsoft#6645 Fix confusing message for list upgrade-available with …
christopher-strings-justine commentedon Nov 6, 2026
Greetings,
I had made changes as Requested
when the system has upto date packages
mattias-aronsson commentedon Nov 6, 2026
oops, I meant to accept the PR
christopher-strings-justine commentedon Nov 6, 2026
i thought my code failed
mattias-aronsson commentedon Nov 6, 2026
No it was just me clicking the wrong button.
I am not used to PR and review on github. But I found the changed files, and sent an ok message with approved.
So now its waiting for someone with write access to also check the code patch.
Thx for the nice patch!
microsoft#6645 Fix grammar in no-updates message
microsoft#6645 Fixed confusing message for upgrade-available list (mi…
technonath commentedon Nov 24, 2026
Is this actually fixed? Winget upgrade reports:
Name Id Version Available Source
PowerShell 7.6.10.0-x64 Microsoft.PowerShell 7.6.10.0 7.7.0.0 winget
but fails with "no installed package found matching input" when you try to upgrade it.
it should be reporting “A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version.” according to https://attestree.com/research/powershell-7-7-no-msi-msix-as-system/ as MSI is no longer an available install method.
mattias-aronsson commentedon Nov 24, 2026
I only did a quick "source inspection", but did not compile and run it. I dont know how I can do this without activating the default winget installed in windows, or what dependencies is needed.
technonath commentedon Nov 25, 2026
ok I have filed this as a new bug #6710