microsoft / microsoft/winget-pkgs
[Package Issue]: SumatraPDF.SumatraPDF ID not matching
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- PR merge metrics
- PR metrics pending
Description
### Please confirm these before moving forward
- [x] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- [x] I have not been informed if the issue is resolved in a preview version of the winget client.
### Category of the issue
Installation issue.
### 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.
### Steps to reproduce
1. Manually Install [`SumatraPDF-3.6-64-install.exe`]( https://www.sumatrapdfreader.org//dl//rel/3.6/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`.
### Actual behavior
> No installed package found matching input criteria.
### 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.
### Environment
```raw
Windows Package Manager v1.29.280
Windows: Windows.Desktop v10.0.26200.9168
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.280.0
```
### Screenshots and Logs
_No response_
Contributor guide
Research direction
Reproduce the mismatch with winget list, winget list --id, and winget upgrade --id using SumatraPDF-3.6-64-install.exe on the stated Windows and Windows Package Manager versions. Compare the package metadata used by name searches with the ID-filtered installed-package lookup; done means the ID query and upgrade command recognize the installation consistently.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100