microsoft / microsoft/winget-cli
Some packages are ignored when removing multiple packages with `winget uninstall`
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
I have Microsoft.ZuneMusic_8wekyb3d8bbwe installed, but when i do sudo { winget uninstall --accept-source-agreements -h Clipchamp.Clipchamp_yxz26nhyzhsrt Microsoft.Todos_8wekyb3d8bbwe Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe Microsoft.WindowsCamera_8wekyb3d8bbwe Microsoft.Windows.Photos_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe Microsoft.People_8wekyb3d8bbwe Microsoft.BingWeather_8wekyb3d8bbwe Microsoft.BingNews_8wekyb3d8bbwe AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m microsoft.windowscommunicationsapps_8wekyb3d8bbwe Microsoft.ZuneMusic_8wekyb3d8bbwe }
I get this:
No installed package found matching input criteria.
Package not found: Clipchamp.Clipchamp_yxz26nhyzhsrt
No installed package found matching input criteria.
Package not found: Microsoft.Todos_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.WindowsCamera_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.Windows.Photos_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.People_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.BingWeather_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: Microsoft.BingNews_8wekyb3d8bbwe
No installed package found matching input criteria.
Package not found: AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m
No installed package found matching input criteria.
Package not found: microsoft.windowscommunicationsapps_8wekyb3d8bbwe
Microsoft.ZuneMusic_8wekyb3d8bbwe is ignored during batch winget uninstall for some reason.
Removing this package works fine if i remove only one package at time:
❯ sudo winget uninstall -h Microsoft.ZuneMusic_8wekyb3d8bbwe
Found Windows Media Player [Microsoft.ZuneMusic_8wekyb3d8bbwe]
Starting package uninstall...
██████████████████████████████ 100%
Successfully uninstalled
Steps to reproduce
- Install
Microsoft.ZuneMusic_8wekyb3d8bbweif you don't have it already. - Try to uninstall multiple packages with command like this
winget uninstall --accept-source-agreements -h Clipchamp.Clipchamp_yxz26nhyzhsrt Microsoft.Todos_8wekyb3d8bbwe Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe Microsoft.WindowsCamera_8wekyb3d8bbwe Microsoft.Windows.Photos_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe Microsoft.People_8wekyb3d8bbwe Microsoft.BingWeather_8wekyb3d8bbwe Microsoft.BingNews_8wekyb3d8bbwe AdvancedMicroDevicesInc-2.AMDLink_0a9344xs7nr4m microsoft.windowscommunicationsapps_8wekyb3d8bbwe Microsoft.ZuneMusic_8wekyb3d8bbwe
Expected behavior
Microsoft.ZuneMusic_8wekyb3d8bbwe is removed.
Actual behavior
Microsoft.ZuneMusic_8wekyb3d8bbwe should be removed, but for some reason winget ignored this package.
Environment
❯ winget --info
Windows Package Manager v1.6.3133
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.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 Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Enabled
LocalArchiveMalwareScanOverride Disabled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the batch winget uninstall command from the issue on Windows, then compare it with the successful single-package command for Microsoft.ZuneMusic_8wekyb3d8bbwe. Trace the uninstall argument handling and its tests, and consider the issue done when every supplied package is processed and the regression is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100