whatisgithub

What is patchcleanerrevisited?

laurentongaro/patchcleanerrevisited — explained in plain English

Analysis updated 2026-05-18

4PowerShellAudience · ops devopsComplexity · 3/5LicenseSetup · moderate

In one sentence

A single, readable PowerShell script with a graphical interface for finding and safely removing leftover Windows Installer cache files to free up disk space.

Mindmap

mindmap
  root((PatchCleaner Revisited))
    What it does
      Find orphaned MSI/MSP files
      Scan for leftovers
      Review old .NET patches
    Safety
      Dry run first
      Backup and restore point
      Auditable single script
    Tech Stack
      PowerShell
      WPF
      Windows Installer COM API
    Audience
      Advanced Windows users
      System administrators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Free up disk space by finding and removing orphaned MSI and MSP installer cache files.

USE CASE 2

Review older .NET patch versions and clean up all but the newest revision in each group.

USE CASE 3

Audit exactly what a cleanup script will do before running it, since it is a single readable script.

USE CASE 4

Search for leftover files, folders, and registry entries left behind by already removed software.

What is it built with?

PowerShellWPFWindows

How does it compare?

laurentongaro/patchcleanerrevisitedabhisheksinha1506/open-dir-downloaderbjdubb/codex-full-output
Stars426
LanguagePowerShellPowerShellPowerShell
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audienceops devopsops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Administrator privileges and careful review, a wrong deletion can break app repair or uninstall.

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

So what is it?

PatchCleaner Revisited is a Windows tool that helps advanced users find and clean up leftover installer files that pile up in the C colon Windows Installer folder over time. Windows keeps cached copies of MSI and MSP installer and patch files there so it can repair, update, or uninstall programs later, but files that are no longer connected to any installed program can build up and waste noticeable amounts of disk space. The project is inspired by an older tool called PatchCleaner by HomeDev, which has not been updated since 2016, depends on old .NET software, is distributed as an installer that antivirus tools often flag, and no longer matches how recent versions of Windows behave. Instead of an installed program, PatchCleaner Revisited is a single PowerShell script paired with a graphical interface, with no separate installer, no bundled binary, no background service, and no network calls, so the entire tool can be read and understood by anyone before they run it. The application shows a main window listing both registered and orphaned MSI and MSP files with details such as size, date, and signing information, lets you exclude certain vendors or products from cleanup, and includes a separate leftovers scanner that looks for files, folders, and registry entries connected to already removed packages, scoring each finding by how confident it is that the item is truly unused. It can also review older .NET patch versions, keeping the newest revision in each group while flagging older ones as candidates for removal. The README repeatedly stresses that this is a system maintenance tool, not a one click cleaner, because deleting the wrong file can break an application's ability to repair, update, or uninstall itself. Before doing anything beyond a dry run, it recommends creating a full backup, creating a Windows system restore point, verifying the backup actually restores, reviewing every selected item first, and reading the script's source code since it is intentionally kept short and unminified for that purpose. It also asks users to only run the official version of the script, not unverified forks. The tool requires Administrator privileges to run, works with PowerShell 5.1 or 7 on Windows 10 or 11, and is released under the MIT license.

Copy-paste prompts

Prompt 1
Explain what C:\Windows\Installer stores and why PatchCleaner Revisited scans it before deleting anything.
Prompt 2
Walk me through running PatchCleaner Revisited in dry run mode safely on my Windows 11 machine.
Prompt 3
Show me how to create a system restore point before using PatchCleaner Revisited, using Checkpoint-Computer.
Prompt 4
Explain the difference between PatchCleaner Revisited and the original HomeDev PatchCleaner tool.

Frequently asked questions

What is patchcleanerrevisited?

A single, readable PowerShell script with a graphical interface for finding and safely removing leftover Windows Installer cache files to free up disk space.

What language is patchcleanerrevisited written in?

Mainly PowerShell. The stack also includes PowerShell, WPF, Windows.

What license does patchcleanerrevisited use?

MIT license: use, modify, and share freely, including commercially, as long as you keep the copyright notice.

How hard is patchcleanerrevisited to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is patchcleanerrevisited for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.