Repository navigation
Open
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
Here is an installation and attempted uninstall of a package (BtbN.FFmpeg.GPL). Note that winget claims to have no knowledge of the package it just installed.
ETA: winget rm --name "FFmpeg (GPL static variant, master branch) works as expected, removing the package.
C:\bin\portable> winget install -a x64 --source winget --scope machine BtbN.FFmpeg.GPL
Found FFmpeg (GPL static variant, master branch) [BtbN.FFmpeg.GPL] Version N-118197-gbb85423142-20241231
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-12-31-13-02/ffmpeg-N-118197-gbb85423142-win64-gpl.zip
██████████████████████████████ 138 MB / 138 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Command line alias added: "ffmpeg"
Command line alias added: "ffplay"
Command line alias added: "ffprobe"
Successfully installed
C:\bin\portable> dir *ffmpeg*
Volume in drive C is OS Serial number is b24d:678f
Directory of C:\bin\portable\*ffmpeg*
2025-01-01 2:42 <DIR> BtbN.FFmpeg.GPL_Microsoft.Winget.Source_8wekyb3d8bbwe
0 bytes in 0 files and 1 dir
1 598 145 347 584 bytes free
C:\bin\portable> winget rm ffmpeg
No installed package found matching input criteria.
C:\bin\portable> winget rm --id BtbN.FFmpeg.GPL
No installed package found matching input criteria.
Steps to reproduce
winget install -a x64 --source winget --scope machine BtbN.FFmpeg.GPL
followed by
winget rm --id BtbN.FFmpeg.GPL
Expected behavior
Installation of the requested package, followed by removal of the package.
Actual behavior
Installation happened, removal fails because winget claims that the just-installed package is not installed.
WinGet-2025-01-01-02-49-43.015.log
WinGet-2025-01-01-02-49-17.341.log
Environment
Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.2605
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) C:/bin/userportable
Portable Package Root C:/bin/portable
Portable Package Root (x86) C:/bin/portable
Installer Downloads C:\dl
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
ProxyCommandLineOptions Disabled
DefaultProxy DisabledReacted by Fred Vatin and Anthony Vanelverdinghe
Activity
Trenly commentedon Jan 2, 2025
It's looking like there might some overlap where the data written to the registry is the same as another application. I'll check what other packages it may be conflicting with
felixkasza commentedon Jan 2, 2025
Ah! In that case, the prime suspect would be a conflict between package IDs "BtbN.FFmpeg.GPL" and "Gyan.FFmpeg".
Background: An install of package "yt-dlp.yt-dlp" pulled in "Gyan.FFmpeg" (ignoring the already-installed, and for this purpose theoretically equivalent, "BtbN.FFmpeg.GPL" package). I then removed, or attempted to, the existing "BtbN.FFmpeg.GPL" since one instance of FFmpeg is plenty for my purposes. That was when I noticed the (mis?)behaviour described above.
And btw, the symlinks placed in $(programfiles)/winget/links/ would also conflict if both packages were to be installed. Not that I have a neat and simple solution for that.
Thanks,
Felix.
Alfamari commentedon Jan 6, 2025
I'm having this issue with every program that has a symlink in this directory, even without having duplicate packages:
C:\Users\alfamari\AppData\Local\Microsoft\WinGet\LinksUpdate:
None of the packages that I'm having trouble with have a
Datakey in the registry. Whereas the ones that do are visible with winget list do.I'm also realizing my problem is a bit different because it doesn't happen directly after installing a package. In fact, re-installing the package overwrites everything to make it visible to winget again so that I can uninstall it.
ted423 commentedon Mar 12, 2025
I want uninstall because this can't be upgrade
I use --scope machine(need admin)
without
--scope machineI can't run ffmpeg in terminal after restart
update: I found oxipng can be uninstall
TeeJay69 commentedon Mar 14, 2025
I have the same problem
ted423 commentedon Apr 14, 2025
ted423 commentedon Apr 14, 2025
seems need uninstall by name
ted423 commentedon Apr 14, 2025
Fred-Vatin commentedon Aug 25, 2025
Very annoying problem. First I uninstall all ffmpeg version via Windows settings because it was impossible via Winget.
Then here are my tests for both version of ffmpeg I tried.
This command is run by UniGetUI:
It works.
Then, I check in the terminal:
Finally, I tested to uninstall:
Same goes with
winget update …Same bug if I install Gyan version instead of the one from yt-dlp:
Those binaries are of portable type and installed in
%LocalAppData%\Microsoft\WinGet\Packages\yt-dlp.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbweand%LocalAppData%\Microsoft\WinGet\Packages\yt-dlp.yt-dlp_Microsoft.Winget.Source_8wekyb3d8bbweNote that I only installed one of them during the test as stated in the
winget listabove. I just mention here where they are installed, don’t say the both path coexist during my test.Verbose log of the failed command
Environment
I translated the
winget --infoin english:There are lots of issues reporting error during uninstall like
No package found. But this one is different, Winget doesn’t report this as an error and the message is different.Duplicated issues
uninstall#4875ted423 commentedon Aug 25, 2025
try this
winget uninstall "FFmpeg for yt-dlp"ted423 commentedon Aug 25, 2025
--nameworks, but ffmpeg is only for Gyan.FFmpegFred-Vatin commentedon Aug 25, 2025
No it doesn’t work.
ted423 commentedon Aug 25, 2025
I use
--scope machine(admin) like the titleand there is some other like #3279
I tryed this
Fred-Vatin commentedon Aug 25, 2025
In your screenshot, you don’t use
--scope machine.For some reason, today using
--nameworked. I think it is because I use the exact name, I can’t remember the previous attempt. I just use default commands in user scope.Why on earth using id to update or uninstall fail and using name succeed ?
This prevents UniGetUI from working as intended because it uses id.
ted423 commentedon Aug 26, 2025
The reason I distinguish whether to use
machineis because their behaviors are slightly different. My impression is that without usingmachine, the environment variables will disappear after a reboot.--scope machinerequires administrator privileges, and based on my testing, the ones I've had issues with are all portable software. For these, whatwingetdoes is download and unzip the package, and then automatically add the environment variables.ted423 commentedon Aug 26, 2025
In my testing, I've found that packages must be uninstalled by
name, regardless of whether--scope machinewas used or not. I'm just mentioning this because I'm concerned there might be other subtle differences in specific cases.