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

Pin By ID misbehaves

Open Trenly opened this issue 2 years ago • 0 comments

Brief description of your issue

Probably related to #2966 Tried to pin MS Teams, but it said package was not found. Ran winget list Teams and saw:

PS C:\git\winget-pkgs> winget list Teams
Name                         Id              Version     Available  Source
---------------------------------------------------------------------------
Microsoft Teams              Microsoft.Teams 1.6.00.1381            winget
Teams Machine-Wide Installer Microsoft.Teams 1.5.0.8070  1.6.00.376 winget

Tried to use --name and --id to specify the package, but it found the one from MS Store

Steps to reproduce

Install teams, try to pin with winget pin add --name "Microsoft Teams" --id "Microsoft.Teams" --blocking

Expected behavior

Found Microsoft Teams [Microsoft.Teams]
Pin added successfully

Actual behavior

Found Microsoft Teams [XP8BT8DW290MPQ]
Pin added successfully

Environment

PS C:\git\winget-pkgs> winget --info
Windows Package Manager (Preview) v1.5.441-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.441.0

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

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

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

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Trenly avatar Feb 14 '23 22:02 Trenly