Skip to content

WinGet lost track of machine-scope portable package Gyan.FFmpeg.Shared #6238

@dhmjhu

Description

@dhmjhu

Relevant area(s)

WinGet CLI

Relevant command(s)

winget list, winget uninstall, winget upgrade

Brief description of your issue

A machine-scope install of the portable/zip package Gyan.FFmpeg.Shared (version 7.0.2) exists under C:\Program Files\WinGet. Based on file timestamps, I installed it on 2024-08-07 using some unknown older version of WinGet with --scope machine from the same account I'm currently using.

However, WinGet seems to have forgotten about it:

  • It doesn't appear in winget list, including when specifically requested.
  • It can't be updated with winget upgrade Gyan.FFmpeg.Shared and does not appear in the list of available updates from winget upgrade—even though the currently available version is 8.1.1.
  • It can't be uninstalled with winget uninstall.

The package directory contains an SQLite database named Gyan.FFmpeg.Shared_Microsoft.Winget.Source_8wekyb3d8bbwe.db. While I'm not 100% sure it's expected, there is no ARP entry like the ones I've seen for other portable packages.

I realize this may not be reproducible/actionable, but I'd still like to report this unusual state and ask if there's a supported cleanup procedure. Should I just delete the package directory and relevant symlinks, or might there be additional metadata to remove?

Separately, the files were installed with overly restrictive permissions as described in the unresolved issues #4172 and #4496.

Steps to reproduce

Unfortunately I don't know what happened to cause this orphaned state.

The current symptoms can be observed with:

winget list Gyan.FFmpeg.Shared
winget upgrade Gyan.FFmpeg.Shared
winget uninstall Gyan.FFmpeg.Shared
winget uninstall --force --scope machine --id Gyan.FFmpeg.Shared

I've tried every combination of --version 7.0.2/--all-versions, --scope machine, and --force to no avail.

Expected behavior

WinGet detects the machine-scope portable package.

Specifically, Gyan.FFmpeg.Shared:

  • shows up in winget list.
  • can be updated from 7.0.2 to the current version with winget upgrade.
  • can be uninstalled with winget uninstall.

Actual behavior

winget list

# winget list Gyan.FFmpeg.Shared
No installed package found matching input criteria.

winget upgrade

# winget upgrade Gyan.FFmpeg.Shared
No installed package found matching input criteria.

winget uninstall

# winget uninstall Gyan.FFmpeg.Shared
No installed package found matching input criteria.
# winget uninstall --force --scope machine --id Gyan.FFmpeg.Shared
No installed package found matching input criteria.

Environment

Windows Package Manager v1.28.240
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26200.8457
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.28.240.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
Configuration Modules              %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules

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


---

# winget show --id Gyan.FFmpeg.Shared --versions
Found FFmpeg (Shared) [Gyan.FFmpeg.Shared]
Version
-------
8.1.1
8.1
8.0.1
8.0
7.1.1
7.1
7.0.2
7.0.1
7.0
6.1.1
6.1
6.0
5.1.2
# winget show --id Gyan.FFmpeg.Shared --version 7.0.2
Found FFmpeg (Shared) [Gyan.FFmpeg.Shared]
Version: 7.0.2
Publisher: Gyan
Publisher Url: https://www.gyan.dev/
Publisher Support Url: https://www.gyan.dev/ffmpeg/builds/#discussion
Author: Gyan Doshi
Moniker: ffmpeg-shared
Description:
  FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge.

  FFmpeg 64-bit static full shared build from www.gyan.dev. Contains most libraries with development files.
Homepage: https://www.gyan.dev/ffmpeg/builds/
License: GPL-3.0
License Url: https://www.ffmpeg.org/legal.html
Copyright: Copyright (c) 2000-2024 the FFmpeg developers
Release Notes Url: https://raw.githubusercontent.com/FFmpeg/FFmpeg/release/7.0/Changelog
Documentation:
  Documentation: https://ffmpeg.org/documentation.html
  About: https://www.gyan.dev/ffmpeg/builds/#about-these-builds
Tags:
  audio
  codec
  convert
  decode
  demux
  encode
  ffmpeg
  filter
  media
  multimedia
  mux
  record
  stream
  streaming
  transcode
  video
Installer:
  Installer Type: portable (zip)
  Installer Url: https://github.com/GyanD/codexffmpeg/releases/download/7.0.2/ffmpeg-7.0.2-full_build-shared.zip
  Installer SHA256: 216feea30258c17628f666e20a2536da7bb50171e6e583a768968e11ceafc8a3
  Release Date: 2024-08-03
  Offline Distribution Supported: true

# gci 'C:\Program Files\WinGet\Packages\Gyan.FFmpeg.Shared_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.0.2-full_build-shared'

    Directory: C:\Program Files\WinGet\Packages\Gyan.FFmpeg.Shared_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.0.2-full_build-shared

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2024-08-07    18:21                bin
d----          2024-08-07    18:21                doc
d----          2024-08-07    18:21                include
d----          2024-08-07    18:21                lib
d----          2024-08-07    18:21                presets
-a---          2024-08-03    15:32          35147 LICENSE
-a---          2024-08-03    15:32          43352 README.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ListIssue related to WinGet ListCommand-UninstallIssue related to WinGet UninstallCommand-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions