Skip to content

"winget add -a x64 --scope machine BbtN.FFmpeg.GPL" works; "winget rm --id BtbN.FFmpeg.GPL" says "No installed package found matching input criteria." #5102

Open

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                              Disabled

Activity

  1. Trenly commented on Jan 2, 2025

    @Trenly
    Contributor
    2025-01-01 02:49:44.125 [REPO]  ... installed package [ARP\Machine\X64\BtbN.FFmpeg.GPL_Microsoft.Winget.Source_8wekyb3d8bbwe] had multiple correlations and is being ignored as a match for [BtbN.FFmpeg.GPL]
    

    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

  2. felixkasza commented on Jan 2, 2025

    @felixkasza
    Author

    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.

  3. added
    Issue-Bug
    on Jan 2, 2025
  4. Alfamari commented on Jan 6, 2025

    @Alfamari

    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\Links

    Update:
    None of the packages that I'm having trouble with have a Data key 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.

  5. ted423 commented on Mar 12, 2025

    @ted423

    I want uninstall because this can't be upgrade

    .\winget.exe  uninstall  "BtbN.FFmpeg.GPL.7.1"
    No installed package found matching input criteria.
     .\winget.exe  list --id ffmpeg
    Name                                  Id                  Version      Available    Source
    ------------------------------------------------------------------------------------------
    FFmpeg (GPL 静态编译版, 7.1 发布分支) BtbN.FFmpeg.GPL.7.1 7.1-20250131 7.1-20250228 winget
    

    I use --scope machine(need admin)

    without --scope machine
    I can't run ffmpeg in terminal after restart

    update: I found oxipng can be uninstall

  6. TeeJay69 commented on Mar 14, 2025

    @TeeJay69

    I have the same problem

    Microsoft Windows [Version 10.0.26100.3194]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\Windows\System32>winget install BtbN.FFmpeg.GPL --force
    Found FFmpeg (GPL static variant, master branch) [BtbN.FFmpeg.GPL] Version N-118579-gbb87d19cd9-20250228
    This application is licensed to you by its owner.
    Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
    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:\Windows\System32>winget uninstall BtbN.FFmpeg.GPL --force
    No installed package found matching input criteria.
    
  7. ted423 commented on Apr 14, 2025

    @ted423
     winget uninstall --id "pnpm.pnpm"
    “msstore”源要求在使用前查看以下协议。
    Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
    源要求将当前计算机的 2 个字母的地理区域发送到后端服务才能正常工作,(例如"US")。
    
    是否同意所有源协议条款?
    [Y] 是  [N] 否: y
    找不到与输入条件匹配的已安装程序包。
    winget list --id pnpm
    名称 ID        版本   源
    -----------------------------
    pnpm pnpm.pnpm 10.8.0 winget
    winget uninstall pnpm
    已找到 pnpm [pnpm.pnpm]
    正在启动程序包卸载...
    已成功卸载
    
  8. ted423 commented on Apr 14, 2025

    @ted423
    ./winget uninstall "FFmpeg (GPL 静态编译版, 7.1 发布分支)"
    Found FFmpeg (GPL 静态编译版, 7.1 发布分支) [BtbN.FFmpeg.GPL.7.1]
    This command requires administrator privileges to execute.
    

    seems need uninstall by name

  9. ted423 commented on Apr 14, 2025

    @ted423
    ./winget upgrade  "FFmpeg (GPL 静态编译版, 7.1 发布分支)"
    Found FFmpeg (GPL 静态编译版, 7.1 发布分支) [BtbN.FFmpeg.GPL.7.1] Version 7.1.1-20250331
    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-2025-03-31-12-55/ffmpeg-n7.1.1-5-g276bd388f3-win64-gpl-7.1.zip
    
  10. Fred-Vatin commented on Aug 25, 2025

    @Fred-Vatin

    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:

    winget install --id "yt-dlp.FFmpeg" --exact --source winget --accept-source-agreements --disable-interactivity --silent --accept-package-agreements --force
    

    It works.

    Then, I check in the terminal:

    winget list ffmpeg
    Name               ID            Version                       Source
    ---------------------------------------------------------------------
    FFmpeg for yt-dlp yt-dlp.FFmpeg N-120424-g03b9180fe3-20250731 winget
    

    Finally, I tested to uninstall:

    winget uninstall --id "Gyan.FFmpeg" --exact --source winget --accept-source-agreements --disable-interactivity --version "8.0" --silent
    No installed package found matching input criteria.
    
    winget uninstall --id "Gyan.FFmpeg" --exact
    No installed package found matching input criteria.
    
    winget uninstall --name "FFmpeg"
    No installed package found matching input criteria.
    

    Same goes with winget update …

    Same bug if I install Gyan version instead of the one from yt-dlp:

    winget install --id "Gyan.FFmpeg" --exact --source winget --accept-source-agreements --disable-interactivity --silent --accept-package-agreements --force
    

    Those binaries are of portable type and installed in %LocalAppData%\Microsoft\WinGet\Packages\yt-dlp.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe and %LocalAppData%\Microsoft\WinGet\Packages\yt-dlp.yt-dlp_Microsoft.Winget.Source_8wekyb3d8bbwe

    Note that I only installed one of them during the test as stated in the winget list above. I just mention here where they are installed, don’t say the both path coexist during my test.

    Verbose log of the failed command

    winget.exe uninstall --id "yt-dlp.FFmpeg" -e --verbose-logs --logs
    
    2025-08-18 04:33:41.987 [CORE] WinGet, version [1.11.430], activity [{4C842594-E269-4BC5-8CCF-C602E987DCFE}]
    2025-08-18 04:33:41.987 [CORE] OS: Windows.Desktop v10.0.26100.4946
    2025-08-18 04:33:41.987 [CORE] Command line Args: "%LocalAppData%\Microsoft\WindowsApps\winget.exe"  source update --disable-interactivity 
    2025-08-18 04:33:41.987 [CORE] Package: Microsoft.DesktopAppInstaller v1.26.430.0
    2025-08-18 04:33:41.987 [CORE] IsCOMCall:0; Caller: winget-cli
    2025-08-18 04:33:41.992 [CLI ] WinGet invoked with arguments: 'source' 'update' '--disable-interactivity'
    2025-08-18 04:33:41.993 [CLI ] Found subcommand: source
    2025-08-18 04:33:41.993 [CLI ] Found subcommand: update
    2025-08-18 04:33:41.993 [CLI ] Leaf command to execute: root:source:update
    2025-08-18 04:33:41.993 [CLI ] Executing command: update
    2025-08-18 04:33:42.010 [REPO] Named source requested, found: msstore
    2025-08-18 04:33:42.010 [CORE] Default proxy is not set
    2025-08-18 04:33:42.010 [REPO] REST HTTP Client helper does not use proxy
    2025-08-18 04:33:42.010 [REPO] Named source to be updated, found: msstore
    2025-08-18 04:33:42.124 [REPO] Named source requested, found: winget
    2025-08-18 04:33:42.124 [REPO] Named source to be updated, found: winget
    2025-08-18 04:33:42.131 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB
    2025-08-18 04:33:42.131 [CORE] Found matching extension.
    2025-08-18 04:33:42.237 [CLI ] Leaf command succeeded: root:source:update
    

    Environment

    I translated the winget --info in english:

    winget --info
    Windows Package Manager v1.11.430
    Copyright (c) Microsoft Corporation. All rights reserved.
    
    Windows: Windows.Desktop v10.0.26100.4946
    System Architecture: X64
    Package: Microsoft.DesktopAppInstaller v1.26.430.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                        D:\OneDrive\Download
    Configuration Modules                      %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
    
    Links
    ---------------------------------------------------------------------------------------------
    Privacy Statement                          https://aka.ms/winget-privacy
    License Agreement                          https://aka.ms/winget-license
    Third Party Notice                         https://aka.ms/winget-3rdPartyNotice
    Homepage                                   https://aka.ms/winget
    Windows Store Terms of Sale                https://www.microsoft.com/en-us/storedocs/terms-of-sale
    
    Admin Setting                              State
    ---------------------------------------------------
    LocalManifestFiles                         Disabled
    BypassCertificatePinningForMicrosoftStore  Disabled
    InstallerHashOverride                      Disabled
    LocalArchiveMalwareScanOverride            Disabled
    ProxyCommandLineOptions                    Disabled
    DefaultProxy  
    

    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

  11. ted423 commented on Aug 25, 2025

    @ted423

    FFmpeg for yt-dlp

    try this winget uninstall "FFmpeg for yt-dlp"

  12. ted423 commented on Aug 25, 2025

    @ted423
     winget uninstall --name oxipng
    Found Oxipng [Shssoichiro.Oxipng]
    Starting package uninstall...
    Successfully uninstalled
    

    --name works, but ffmpeg is only for Gyan.FFmpeg

  13. Fred-Vatin commented on Aug 25, 2025

    @Fred-Vatin

    No it doesn’t work.

  14. ted423 commented on Aug 25, 2025

    @ted423

    I use --scope machine (admin) like the title

    and there is some other like #3279

    I tryed this

    Image
  15. Fred-Vatin commented on Aug 25, 2025

    @Fred-Vatin

    In your screenshot, you don’t use --scope machine.

    For some reason, today using --name worked. 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.

    Image

    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.

  16. ted423 commented on Aug 26, 2025

    @ted423

    The reason I distinguish whether to use machine is because their behaviors are slightly different. My impression is that without using machine, the environment variables will disappear after a reboot. --scope machine requires administrator privileges, and based on my testing, the ones I've had issues with are all portable software. For these, what winget does is download and unzip the package, and then automatically add the environment variables.

  17. ted423 commented on Aug 26, 2025

    @ted423

    In my testing, I've found that packages must be uninstalled by name, regardless of whether --scope machine was used or not. I'm just mentioning this because I'm concerned there might be other subtle differences in specific cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions