microsoft / microsoft/winget-cli

Uninstall zip-based package hangs

Open
#4,242 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Uninstall Issue-Bug Portable
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

winget uninstall ffmpeg (portable zip package) hangs forever in my PC.

May be related to the fact I attempted an update which also hung and so I interrupted it.

winget lists the new version (6.1.1) but the one installed is still (6.0). Repair or uninstall fail.

Steps to reproduce

This might not happen always and be due to the winget DB state or something. In my case just this:

winget uninstall ffmpeg
Expected behavior

Uninstall of the package. For a portable package this means deleting a few files and maybe removing links or an item in PATH.

Actual behavior

It says (I'm translating so it may not be exact):

Found FFmpeg [Gyan.FFmpeg]
Starting uninstall of package...

And it stays there with high CPU usage.

I checked the log and it does a lot of things, including several HTTP requests.

Environment
winget v1.7.10582

Windows: Windows.Desktop v10.0.19045.4046
Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10582.0

LocalManifestFiles                        off
BypassCertificatePinningForMicrosoftStore off
InstallerHashOverride                     off
LocalArchiveMalwareScanOverride           off

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing winget uninstall ffmpeg in the stated WinGet and Windows environment, then inspect the log's HTTP requests and compare the related issue #3085. Done means the portable package uninstall completes without hanging, removes its files, and handles any links or PATH entry as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.