Repository navigation
Closed
Labels
Command-PinIssue related to WinGet PinExperimentalThis experimental feature can be enabled in settingsIn-PRIssue related to a PRIssue-BugIt either shouldn't be doing this or needs an investigation.
Milestone
Description
Brief description of your issue
Not sure if this is the same root cause as #2973 but I'm filing it separately just in case.
I have 3 pins configured, but only 2 are shown.
Steps to reproduce
Add some pins, then list them
Expected behavior
All pins to be listed
Actual behavior
Pin List - WinGet-2023-02-15-20-50-07.616.log
Environment
PS C:\WINDOWS\system32> 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 DisabledReacted by Sasdharan
Metadata
Metadata
Assignees
Labels
Command-PinIssue related to WinGet PinExperimentalThis experimental feature can be enabled in settingsIn-PRIssue related to a PRIssue-BugIt either shouldn't be doing this or needs an investigation.

Activity
florelis commentedon Feb 16, 2023
What I think is happening:When listing the pins, we only show those for which we find an installed apps. That way you won't see pins for uninstalled apps. Then when you do winget pin, we look up installed apps matching Microsoft.Teams and we find two of them, we don't know which to pick so we default to none. A possible fix would be to know that we are doing winget pin list, and choose one of the matches arbitrarily, though I haven't thought it through.
Edit: I'm pretty sure that's what's happening from looking at the logs and #2973
Trenly commentedon Feb 16, 2023
Interesting; However, from #2973 it should still have been able to find Microsoft.WindowsSDK, since the package was present (granted, multiple versions were present).
Maybe what would be helpful here is a message of
{0} pins could not be mapped to an installed package. Use winget pin list --all to show them anywaysRufusJWB commentedon Mar 28, 2023
I have the same problem on my machine.

And actually
winget pin list --allis not working for me at all.JohnLukeBentley commentedon Apr 19, 2023
Same issue