-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- 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
Issue with winget package identification
Running:
winget list --source winget
returns:
Mozilla Firefox (x64 es-ES) ARP\Machine\X64\Mozilla Firefox 146.0.1
This result is incorrect, because the package is reported with an ARP identifier instead of a valid winget package ID.
Running:
Import-Module Microsoft.WinGet.Client
Get-WinGetPackage | Where-Object { $_.Source -eq 'winget' }
returns:
Mozilla Firefox (en-US) Mozilla.Firefox 146.0.1
This result is also incorrect:
Microsoft.WinGet.Client always reports the wrong package name
The package language does not match the installed Spanish (es-ES) version
The returned ID does not correspond to the actual installed variant
Summary
winget list does not return the correct winget ID for Firefox
Microsoft.WinGet.Client returns a different, incorrect package name and locale
Neither output can be reliably used for package management or automation
In short, winget’s package detection and normalization are fundamentally broken in this case.
Steps to reproduce
Install Mozilla Firefox (x64 es-ES)
Run;
Winget list --sorce "winget"
Import-Module Microsoft.WinGet.Client; Get-WinGetPackage | Where-Object { $_.Source -eq 'winget' }
Actual behavior
Winget list --sorce "winget" ---> returs;
Mozilla Firefox (x64 es-ES) ARP\Machine\X64\Mozilla Firefox 146.0.1
Import-Module Microsoft.WinGet.Client; Get-WinGetPackage | Where-Object { $_.Source -eq 'winget' } --> returns;
Mozilla Firefox (en-US) Mozilla.Firefox 146.0.1
Expected behavior
Winget list --sorce "winget" ---> returs;
Mozilla Firefox (x64 es-ES) Mozilla.Firefox.es-ES 146.0.1
Import-Module Microsoft.WinGet.Client; Get-WinGetPackage | Where-Object { $_.Source -eq 'winget' } --> returns;
Mozilla Firefox (x64 es-ES) Mozilla.Firefox**.es-ES** 146.0.1
Environment
Windows: Windows.Desktop v10.0.26200.7462
Arquitectura del sistema: X64
Paquete: Microsoft.DesktopAppInstaller v1.27.350.0
Screenshots and Logs
No response