Relevant area(s)
WinGet CLI
Relevant command(s)
winget list
Brief description of your issue
winget list --id SumatraPDF.SumatraPDF isn't matching an installed SumatraPDF that winget list SumatraPDF itself shows.
This especially prevents upgrading, e.g. winget upgrade -id SumatraPDF.SumatraPDF does not match the existing SumatraPDF installation. Nevertheless the main issue is that winget list --id is not matching an ID that winget list itself 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 … --exact will match the intended target.
This issue was originally submitted as microsoft/winget-pkgs#418621, but was told it should be resubmitted here.
Steps to reproduce
- Manually Install
SumatraPDF-3.6-64-install.exe.
- Run
winget upgrade; it will show that SumatraPDF needs upgrading.
- Run
winget list SumatraPDF. It displays:
Name Id Version Available
--------------------------------------------------
SumatraPDF SumatraPDF.SumatraPDF 3.6 3.6.1
- Run
winget list --id SumatraPDF.SumatraPDF.
Expected behavior
winget list --id SumatraPDF.SumatraPDF should list the package that winget list SumatraPDF itself showed earlier!
Oddly winget download --id SumatraPDF.SumatraPDF does work! But winget upgrade --id SumatraPDF.SumatraPDF does not match.
Actual behavior
No installed package found matching input criteria.
Environment
Windows Package Manager v1.29.280
Windows: Windows.Desktop v10.0.26200.9168
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.280.0
Relevant area(s)
WinGet CLI
Relevant command(s)
winget list
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.This issue was originally submitted as microsoft/winget-pkgs#418621, but was told it should be resubmitted here.
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
Environment