Windows Installer Cleaner

Some background:

My SSD drive is almost full, after checking with TreeSize Free, it seems a lot of space is taken by files inside c:\windows\installer\. Searching around, I conclude that some of files is safe to be deleted from that particular place. There is a VB script in that detect which files that shouldn’t be deleted from c:\windows\installer.

I also know an application named WiCleanup from KZTechs that detect and delete the “safe” files but after I tried it, the confirmation of deletion for files one-by-one makes me uncomfortable. So, I decide, why not programming the application by myself? And this application is born!


I programmed the application in VB .NET language using the free Microsoft Visual Studio 2013 Community Edition. Without further a do, you can download the application here:

[button link=””]Windows Installer Cleaner Binary Only[/button]
(Of course you need .NET framework 4.5 installed if you want to run this application)
[button link=””]Windows Installer Cleaner Full Source Code[/button]

How to use:

It’s quite straight forward. There are three buttons there, you just need to click on them sequentially.

  1. Click “Get Kept List” to see which files that you should keep on c:\windows\installer
  2. Click “Get Delete List” to get the files that should be safe to be deleted and their size.
  3. Click “Delete Files” to delete the detected files.

What I learn from building this application:

  • how to create .NET application that need Administrator privilege (UAC things) when executed
  • how to use COM object in .NET application
  • how to use/import .dll from MS Windows in .NET
  • some file operation in .NET (FileInfo, deleting files, file’s attribute)
Windows Installer Cleaner Screenshot in Windows 7 64-bit

Windows Installer Cleaner Screenshot in Windows 7 64-bit

The application is already tested on Windows 8.1 64-bit and Windows 7 SP1 64-bit. Both systems is running fine until now. 😀

Leave a comment ?


  1. Hi – did you experience any problems with upgrading or uninstalling programs after running this tool?

  2. Is there a way to run this on the command line?

  3. Really how WiCleanup from KZTechs expects that you select all the times 1by1 and to confirm the deletion 1by1 once more for like more than 200 items… that’s crazy!

  4. Thnaks for this tool, awesome, I hope I’ll not have unknow error, but I’ve won 16Gb

  5. I tried using this yesterday in Win 8.1 x64, but today I tried to uninstall an application and Windows couldn’t find the installer files. Luckily, I made a backup of the Installer folder first. After restoring the Installer folder, I was able to uninstall the application again. So the cleanup didn’t work for me unfortunately…

  6. WICleanupC.exe -s clean everything from command line 🙂

  7. what’s the meaning of missing files ?
    i get missing files : 3

  8. Tom & Joerg

    Thanks for the tool. We did give it a try and looked in the source. What is wrong in our opinion is that it only adds patches to installed products to the list of files to check, but then checks all the files (patches (msp) and full installations (msi)). This means it will remove all msi files from the folder, probably not what you want…

    A coworker of mine created a patched (no pun intended) version that includes both the product msi as well as its patches to the list of “files to be kept” (as well as their names).
    If interested, we would be happy to provide you the modified sources. Just drop me a mail and I’ll send it to you.

    Tom & Joerg

  9. Paul McBride

    could someone share the updated version of this tool that cleans both the .msi and .msp please? Thanks…

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>