winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

List or Uninstall by id does not return expected result

Open danielniccoli opened this issue 3 years ago • 2 comments

Brief description of your issue

Winget list and uninstall does not work with --id

Steps to reproduce

  1. List packages by name:
PS C:\> winget list element
Name    Id              Version Available Source
------------------------------------------------
Element Element.Element 1.11.5            winget
Element Element.Element 1.10.1  1.11.5    winget
  1. List or Uninstall by ID.
PS C:\> winget list --id Element.Element
No installed package found matching input criteria.
PS C:\> winget uninstall --id Element.Element
No installed package found matching input criteria.

Expected behavior

Should list packages with respective ids.

Actual behavior

No installed package found matching input criteria.

Environment

Windows Package Manager (Preview) v1.4.2161-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.978
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.2161.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links               
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

danielniccoli avatar Sep 18 '22 14:09 danielniccoli

Can you provide the log files that are generated when you run winget list --id Element.Element --verbose-logs ?

Trenly avatar Sep 18 '22 16:09 Trenly

Hi Trenly, I would like to help out with the logs, but they contain personal information, that I do not want to share. If there's anything specific in it, that I can share, let me know.

If it helps, I do see the same behaviour with other apps as well e.g., "Microsoft.WindowsSDK". If the issue is not specific to Element, you may find some apps on your computer as well, to reproduce.

PS C:\> winget list "Windows Software Development Kit"
Name                                                    Id                   Version          Available    Source
-----------------------------------------------------------------------------------------------------------------
Windows Software Development Kit - Windows 10.0.20348.1 Microsoft.WindowsSDK < 10.0.22000.832 10.0.22621.1 winget
Windows Software Development Kit - Windows 10.0.22621.1 Microsoft.WindowsSDK 10.0.22621.1                  winget

danielniccoli avatar Sep 18 '22 18:09 danielniccoli