KemptDesk

Can you delete files in C:\Windows\Installer?

For PCWindows 10 and Windows 11Reviewed 23 November 20268 min read

Quick answer

Do not delete files in C:\Windows\Installer. Windows Installer keeps a copy of each program's .msi package and every .msp patch there, and Microsoft says it needs them to uninstall, repair and update those programs. Missing files cannot be copied from another PC. To make the folder smaller, uninstall programs you no longer use.

On this page
  1. Where it is
  2. What is safe to delete
  3. Why C:\Windows\Installer gets so large
  4. Why deleting .msi and .msp files breaks programs
  5. Why "orphaned patch" cleaners are risky
  6. How to free space safely
  7. How KemptDesk handles this
  8. Questions
  9. Sources

Where it is

The folder is C:\Windows\Installer, also written %windir%\Installer. Microsoft calls it the Windows Installer cache. It belongs to every program that was installed with Windows Installer, not to Windows alone.

It is one part of what to delete when the C drive is full. What you find inside:

  • .msi files: stripped copies of the installation package of each program installed with Windows Installer. Their names differ from the original file names, so you cannot tell the program from the name.
  • .msp files: a Windows Installer patch file for each update, hotfix or service pack of those programs.
  • A baseline cache: older versions of patched files that Windows Installer 3.0 and later saves in a private location, so that later patches can be smaller.

What is safe to delete

PathWhat it isSafe to deleteWhat happens if you delete itHow to clean it
C:\Windows\InstallerThe Windows Installer cache as a wholeNoEvery program installed with Windows Installer can lose uninstall, repair and updatesNever delete it; Windows manages it
C:\Windows\Installer\*.msiCached installation packagesNoUninstall, repair and updates of that program fail; Microsoft may advise rebuilding WindowsUninstall the program in Settings
C:\Windows\Installer\*.mspCached patch files of program updatesNoLater updates of that program fail with "missing cached patch" errorsUninstall the program in Settings
%USERPROFILE%\Downloads\*.msiInstaller packages you downloadedCarefulA repair or patch can ask for the original file againKeep installers of programs you may repair; delete the rest
%TEMP%Temporary files of apps and installersYesNothing you need; close apps firstSettings > System > Storage > Temporary files
C:\Windows\SoftwareDistribution\DownloadWindows Update downloads, a different folderYesWindows Update downloads the files again if it needs themDisk Cleanup's update clean-up item

Why C:\Windows\Installer gets so large

When you install a program with Windows Installer, it stores a stripped copy of the .msi file in the cache. Every update of that program, such as a hotfix, cumulative update or service pack, stores its .msp or .msi file there too.

So the folder grows with each program and each update. Programs that receive many patches over the years, such as SQL Server or MSI-based Office and SharePoint, are the ones Microsoft names in its articles about this cache.

The baseline cache adds more. Microsoft says it keeps at most two baselines per program: the file as first released and the file at the last service pack. A file enters the cache only when a patch changes it.

By default, the baseline cache can use up to 10% of the disk. The MaxPatchCacheSize policy sets that percentage. Microsoft says the cache for a program is removed when you uninstall the program.

Why deleting .msi and .msp files breaks programs

Any future update of a program relies on the information in its cached files. Without them, the update cannot make the changes it needs. Microsoft warns that manual changes in this folder can cause problems.

The damage does not show at once. Microsoft says you may not see a problem until you uninstall, repair or update the program. Then you see messages like these:

  • "The cached MSI file 'C:\Windows\Installer\xxxxxx.msi' is missing."
  • "The cached patch file 'C:\Windows\Installer\xxxxxxx.msp' is missing."
  • Error 1612: "The installation source for this product is not available."
  • Errors 1635 and 1636: Windows Installer cannot install or open the update package.

The fix is hard. Microsoft says the cached files are unique to each computer, so you cannot copy them from another PC. To restore them, you need a full system state restore; you cannot put back only the missing files from a backup.

In some cases, Microsoft says you may have to rebuild Windows and reinstall the program. Windows support engineers cannot help you recover missing files from the cache.

Why "orphaned patch" cleaners are risky

Some tools promise to find .msi and .msp files that no installed program still needs, and to delete or move them. They have to guess which files are orphaned. If one guess is wrong, the result is the same as deleting the file by hand, and you find out only at the next update or uninstall.

Microsoft does not endorse third-party tools that claim to rebuild or repair the Windows Installer cache, and says you use them at your own risk. When the cache breaks again and again, Microsoft advises looking for cleanup tools, group policies or backup agents that prune the folder.

Decide like this:

  • Do not use such a tool on a PC you depend on, or that runs SQL Server, Office or other software that installs many patches.
  • Consider it only if you have a full system image from before the cleanup, so you can restore the whole system if an update fails later.

How to free space safely

The supported way to shrink C:\Windows\Installer is to remove the programs that put files there. Microsoft says Windows manages the folder by itself when programs install and update.

Check how large the folder is

Open PowerShell as administrator: right-click Start and select Terminal (Admin) or Windows PowerShell (Admin). The next command only reads; it adds up the size of the files directly in the folder:

powershell
Get-ChildItem -Path C:\Windows\Installer -Force -File | Measure-Object -Property Length -Sum

The Sum line shows the total in bytes. Divide by 1,073,741,824 to get GB.

Uninstall programs you no longer use

On Windows 11:

  1. Select Start > Settings > Apps > Installed apps.
  2. Find a program you no longer use and select More (the three dots) next to it.
  3. Select Uninstall, then follow the program's steps.

On Windows 10, select Start > Settings > Apps > Apps & features, select the program, then select Uninstall. The old Control Panel > Programs > Programs and Features works on both systems too.

Free space elsewhere with Disk Cleanup

Disk Cleanup removes files that Windows can safely re-create, such as temporary files and old update files:

  1. In the search box on the taskbar, type Disk Cleanup and select it.
  2. Select drive C: and select OK.
  3. Select Clean up system files, select drive C: again and select OK.
  4. Select the items you want to remove, then select OK and Delete Files.

The safe ways to shrink WinSxS, Windows.old and SoftwareDistribution covers the larger Windows folders.

Limit the baseline cache (administrators)

On managed PCs, administrators can set the MaxPatchCacheSize policy under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer. A value of 0 stops Windows Installer from saving more old files.

This does not free space: Microsoft says the policy does not affect files already saved. Without the cache, a patch or patch uninstall may ask for the original installation source.

If files are already missing

First ask the program's vendor how to restore its files. For SQL Server, Microsoft has a separate article with repair steps and a tool that restores the files from the original media. If you made a System Restore point or a system image before the deletion, a full restore brings the cache back.

How KemptDesk handles this

KemptDesk treats everything under C:\Windows as Protected, so the Installer folder is never selected and cannot be deleted in KemptDesk. Space Lens shows its size with the note "Installer data that Windows needs to repair and uninstall programs. Do not delete."

No System Junk category touches the folder, and KemptDesk has no orphaned-patch cleaner.

To shrink the folder, use the Applications page: KemptDesk opens a visible PowerShell window that tries winget first, then the program's own uninstaller, so Windows stays consistent. KemptDesk does not run Disk Cleanup and does not change Windows Installer policies.

Questions

Can I delete the C:\Windows\Installer folder?

No. Microsoft says the Windows Installer cache should not be deleted, because programs need it to uninstall, repair and update. Uninstall programs you no longer use instead.

Why is my Windows Installer folder so big?

Each program installed with Windows Installer leaves a copy of its .msi package, and each update leaves an .msp patch file. Programs with many years of patches, and the baseline cache of older file versions, make it grow further.

Can I copy missing installer files from another computer?

No. Microsoft says the cached files are unique to each computer. Restoring them needs a full system state restore, or a reinstall of Windows and the program.

Is it safe to delete orphaned .msp files in C:\Windows\Installer?

Not without a full system backup. A tool can only guess which files are orphaned, and a wrong guess breaks updates or uninstall of that program. Microsoft does not endorse third-party tools for this cache.

How do I fix "The cached MSI file is missing"?

Ask the program's vendor first. For SQL Server, Microsoft's article gives repair steps that use the original installation media. Otherwise, restore a system image from before the files were deleted.

Sources

See what is safe to delete on your computer

KemptDesk scans your disk, explains every folder and selects only what apps can rebuild. The scan is free and cleans up to 500 MB. No account.

Then pay once from $59 or yearly from $9.99 for the first year until 31 December 2026, then $24.99. One license covers Macs and PCs. See plans