How to Clean Up Unused MSI and MSP Files from Windows Installer Folder

Free up valuable disk space by safely removing unnecessary Windows Installer files without compromising system stability

How to Clean Up Unused MSI and MSP Files from Windows Installer Folder

The Windows Installer folder, located at C:\Windows\Installer, can grow significantly over time as you install and update applications. This folder stores important Microsoft Installer (MSI) files and Windows Installer Patch (MSP) files, which are crucial for managing software on your system. However, not all of these files remain necessary, and removing the unused ones can help reclaim valuable disk space. In this guide, we’ll explore effective methods to clean up unused MSI and MSP files safely.

Before we begin, it’s crucial to understand that deleting files from the Windows Installer folder can potentially cause issues with updating, patching, or uninstalling applications. Therefore, it’s essential to proceed with caution and create a system restore point before making any changes.

Method 1: Using the WInstCleaner PowerShell Script

The WInstCleaner PowerShell script is a powerful tool that helps you identify which files in the Windows Installer folder are safe to remove.

Step 1: Download the WInstCleaner.ps1 script from the official Microsoft website.

Step 2: Open PowerShell as an administrator. You can do this by right-clicking on the Start button, selecting “Windows PowerShell (Admin)” from the menu.

Step 3: Navigate to the directory where you saved the WInstCleaner.ps1 script using the cd command. For example:

cd C:\Users\YourUsername\Downloads

Step 4: Run the script by typing the following command and pressing Enter:

.\WInstCleaner.ps1

Step 5: The script will analyze the Windows Installer folder and provide a list of files that are still in use. Any files not on this list are considered safe to remove.

Step 6: Carefully review the output and manually delete the files that are not listed as in use. Be sure to double-check before deleting any files.


Method 2: Using PatchCleaner

PatchCleaner is a third-party tool specifically designed to identify and remove redundant files from the Windows Installer folder.

Step 1: Download PatchCleaner from a reputable source. Both portable and installer versions are available.

Step 2: Install or extract PatchCleaner, depending on the version you downloaded.

Step 3: Run PatchCleaner as an administrator by right-clicking on the executable and selecting “Run as administrator”.

Step 4: Click the “Scan” button to analyze your Windows Installer folder.

Step 5: Review the list of orphaned files that PatchCleaner identifies. These are files that are no longer associated with any installed programs.

Step 6: Select the files you want to remove. For added safety, you can choose to move the files to another location instead of deleting them immediately.

Step 7: Click “Delete” or “Move” based on your selection to clean up the unused files.


Method 3: Using Windows Installer Unused Files Cleanup Tool (WICleanup)

WICleanup is another third-party tool that offers both a graphical user interface and a command-line version for cleaning up unused Windows Installer files.

Step 1: Download WICleanup from the developer’s website.

Step 2: Extract the downloaded ZIP file to a location of your choice.

Step 3: Run WICleanupUI.exe as an administrator.

Step 4: Click the “Scan” button to analyze your Windows Installer folder.

Step 5: Review the list of orphaned files that WICleanup identifies. These are files that are no longer associated with any installed programs.

Step 6: Manually check the boxes next to the files you want to delete. Take care to review each selection carefully.

Step 7: Click the “Delete” button to remove the selected files.

For users who prefer command-line operations, WICleanup also includes a command-line version (WICleanupC.exe) that can be used in scripts or for more advanced cleanup tasks.


By using these methods, you can effectively clean up unused MSI and MSP files from your Windows Installer folder, potentially freeing up gigabytes of disk space. Remember to always create a system restore point before making any changes, and if you’re unsure about a particular file, it’s best to err on the side of caution and keep it. Regular maintenance using these tools can help keep your system running smoothly and efficiently.