Repository navigation
Open
Labels
Area-MatchingIssue related to correlation between installed package and manifestIssue-BugIt either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
Winget list and uninstall does not work with --id
Steps to reproduce
- List packages by name:
PS C:\> winget list element
Name Id Version Available Source
------------------------------------------------
Element Element.Element 1.11.5 winget
Element Element.Element 1.10.1 1.11.5 winget
- List or Uninstall by ID.
PS C:\> winget list --id Element.Element
No installed package found matching input criteria.
PS C:\> winget uninstall --id Element.Element
No installed package found matching input criteria.
Expected behavior
Should list packages with respective ids.
Actual behavior
No installed package found matching input criteria.
Environment
Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.978
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
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-saleReacted by Cyberavater, R0nd and Garret Wilson
Metadata
Metadata
Assignees
Labels
Area-MatchingIssue related to correlation between installed package and manifestIssue-BugIt either shouldn't be doing this or needs an investigation.
Activity
Trenly commentedon Sep 18, 2022
Can you provide the log files that are generated when you run
winget list --id Element.Element --verbose-logs?danielniccoli commentedon Sep 18, 2022
Hi Trenly, I would like to help out with the logs, but they contain personal information, that I do not want to share. If there's anything specific in it, that I can share, let me know.
If it helps, I do see the same behaviour with other apps as well e.g., "Microsoft.WindowsSDK". If the issue is not specific to Element, you may find some apps on your computer as well, to reproduce.
garretwilson commentedon Aug 17, 2026
This is happening with ID
SumatraPDF.SumatraPDF, as I reported in #6465 and microsoft/winget-pkgs#418621 .How can we trust an install tool to correctly match IDs when it can't even match the IDs its own
listcommand produces?Brief description of your issue
winget list --id SumatraPDF.SumatraPDFisn't matching an installed SumatraPDF thatwinget list SumatraPDFitself shows.This especially prevents upgrading, e.g.
winget upgrade -id SumatraPDF.SumatraPDFdoes not match the existing SumatraPDF installation. Nevertheless the main issue is thatwinget list --idis not matching an ID thatwinget listitself returns; that is an inconsistency that is cause for concern, and the root cause should be understood. This goes to the core of security: being able to trust that winget--id … --source … --exactwill match the intended target.Steps to reproduce
SumatraPDF-3.6-64-install.exe.winget upgrade; it will show that SumatraPDF needs upgrading.winget list SumatraPDF. It displays:winget list --id SumatraPDF.SumatraPDF.Expected behavior
winget list --id SumatraPDF.SumatraPDFshould list the package thatwinget list SumatraPDFitself showed earlier!Oddly
winget download --id SumatraPDF.SumatraPDFdoes work! Butwinget upgrade --id SumatraPDF.SumatraPDFdoes not match.Actual behavior
How can we trust the security of a tool that forces us to use fuzzy pattern matching?
winget listdoes not matchSumatraPDF.SumatraPDFID afterlistprovides it #6465 as a duplicate of this issue