Skip to content

Add a Programs & Games view to uninstall an app and its leftovers - #3

Merged
process631 merged 2 commits into
mainfrom
cursor/programs-and-games-73b9
Nov 19, 2026
Merged

process631 merged 2 commits into
mainfrom
cursor/programs-and-games-73b9

Conversation

@process631

Copy link
Copy Markdown
Owner

Summary

Programs & Games searches for an installed program or game, shows everything removal would touch, and deletes it only after a confirmation. The official uninstaller runs first when one exists. Files that remain go to the Recycle Bin by default, through the same delete path the rest of the app uses.

Where programs come from

  • Uninstall registry keys in HKLM and HKCU, 64-bit and 32-bit (WOW6432Node)
  • Steam libraries and app manifests, plus that game's shader cache and workshop content
  • Epic Games .item manifests
  • GOG Galaxy registry entries
  • Roblox's per-user install under %LOCALAPPDATA%\Roblox\Versions (Player and Studio stay separate)
  • Microsoft Store packages for the current user, excluding Windows components, frameworks, and resource packs

What a removal can include

The install folder, matching leftovers in AppData (Local, LocalLow, Roaming), ProgramData, Documents, Saved Games, and temp, desktop and per-user Start menu shortcuts, and related registry keys. Each line shows a size. Untick anything that should stay. Preview is a dry run and is written to the deletion history.

Silent uninstall is used only when it is real: a quiet uninstall string, msiexec /qn, or Inno Setup /VERYSILENT. Otherwise the program's own uninstaller is shown. Steam games are handed to steam://uninstall/<appid>. Store apps use Remove-AppxPackage.

If the program or its launcher is running, DiskSweeper asks to close it first. It does not close Steam when Steam is doing the uninstall. Administrator permission is requested by the uninstaller itself, or by the existing elevated helper for HKLM registry keys.

Safety

  • System folders, WindowsApps, launcher libraries (Epic Games, steamapps\common, GOG Galaxy\Games), and other shared parents are never deleted.
  • A leftover has to match the product name, not the publisher. Fortnite does not take Epic, the Epic launcher, or a sibling game. Visual Studio does not take Visual Studio Code. Roblox does not take Roblox Studio, and their shared folder is kept when both are installed.
  • A generic name (Games, App, Cache) does not search for leftovers, and a generic install location is refused.
  • A folder that also matches a different installed program is skipped.
  • Protected paths still cannot be deleted. DiskSweeper will not uninstall itself while it is open.
  • Tests cover the matcher, including similar names, uninstall command parsing, registry-key refusals, and which processes block a removal.

Limits

  • Leftovers are looked for in the usual places, not by scanning the whole disk.
  • All-users Start menu shortcuts live under a Windows folder DiskSweeper will not change. The uninstaller usually removes those.
  • Store apps are removed for the current user. The WindowsApps directory is left to Windows.
  • Services and scheduled tasks are not removed. Cleanup still links to Bulk Crap Uninstaller for that.
Open in Web Open in Cursor 

cursoragent and others added 2 commits November 19, 2026 19:32
Search installed programs and games from the uninstall registry, Steam, Epic, GOG, Roblox, and the Microsoft Store. Picking one lists the install folder, matching leftovers, shortcuts, and registry keys, then runs the official uninstaller before cleaning up what remains.

Co-authored-by: process631 <process631@users.noreply.github.com>
LongPath.Normalize treated HKCU\Software\... as a relative file path and prefixed the test folder, so the assertion missed a key the matcher had correctly selected.

Co-authored-by: process631 <process631@users.noreply.github.com>
@process631
process631 merged commit bc127d2 into main Nov 19, 2026
2 checks passed
@process631
process631 deleted the cursor/programs-and-games-73b9 branch November 25, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants