Skip to content

winget list does not match SumatraPDF.SumatraPDF ID after list provides it #6465

Description

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

  1. Manually Install SumatraPDF-3.6-64-install.exe.
  2. Run winget upgrade; it will show that SumatraPDF needs upgrading.
  3. Run winget list SumatraPDF. It displays:
    Name       Id                    Version Available
    --------------------------------------------------
    SumatraPDF SumatraPDF.SumatraPDF 3.6     3.6.1
    
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ListIssue related to WinGet ListIssue-BugIt either shouldn't be doing this or needs an investigation.Possible-DuplicateAutomatically surfaced as a likely duplicate of an existing issue; awaiting maintainer confirmation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions