Skip to content

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

Closed as duplicate

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

Activity

  1. added
    Issue-Bug
    on Aug 17, 2026
  2. added
    Possible-Duplicate
    on Aug 17, 2026
  3. github-actions commented on Aug 17, 2026

    @github-actions

    Possible duplicate(s):

    Thank you for submitting this issue.

    The issue(s) below may already track your request or bug. Please take a look — if one of them matches, give that issue a 👍 and close this one as a duplicate. Older or curated issues are preferred as the canonical one to follow.

    Template: msftbot/duplicate/surfaced by Duplicate Surfacing
  4. garretwilson commented on Aug 17, 2026

    @garretwilson
    Author

    It does seem to be a duplicate of #2528. Wow, open since 2022. I'm surprised that Microsoft cares so little about security for one of its primary installation tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ListIssue-BugPossible-Duplicate

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions