Repository navigation
Closed
Labels
Command-PinIssue related to WinGet Pin
Milestone
Description
Brief description of your issue
Unable to remove packages from pinned list if package is uninstalled.
Steps to reproduce
winget install Stockfish.Stockfish
winget pin add Stockfish.Stockfish
winget remove Stockfish.Stockfish
winget pin remove Stockfish.Stockfish
Expected behavior
Remove package from the pinned list.
Actual behavior
Doesn't removes package from the pinned list and returns "No installed package found matching input criteria."
Environment
Windows Package Manager (Preview) v1.7.3481-preview
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26040.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.3481.0
Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
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 Enabled
LocalArchiveMalwareScanOverride Disabled### Tasks
Metadata
Metadata
Assignees
Labels
Command-PinIssue related to WinGet Pin
Activity
mdanish-kh commentedon Feb 11, 2024
Try providing the
--idflag. I'm not sure about the exact behavior but I'm guessing pinning tries to match the query to the list of "installed" applications without this flag.This appears to be a bug. I would expect if the query is an exact match for a PackageIdentifier, it should just be removed irrespective of the package being installed.
sagar297 commentedon Feb 11, 2024
Pin is removed when using --id flag though it should work without the flag.
mdanish-kh commentedon Feb 11, 2024
I created #4163 for this request. Is it okay if I close this one in favor of the linked issue for better tracking?