On my SSD machine, the C:\Windows\Installer
folder is massive and takes up about 15% of my total disk space.
Is there a way to clean up that folder without killing Windows 8.1/10? Tucking away the installers on the OS partition seems wasteful.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityOn my SSD machine, the C:\Windows\Installer
folder is massive and takes up about 15% of my total disk space.
Is there a way to clean up that folder without killing Windows 8.1/10? Tucking away the installers on the OS partition seems wasteful.
I created "PatchCleaner" to clean the windows installer directory of all orphaned files in one easy click. If you don't trust the app to do the right thing, use the move feature to put them somewhere safe in case you need them back in the future. I have run it on multiple machines and saved up to 15Gb of space :-)
Run PatchCleaner after windows updates to find newly orphaned files.
I recommend you use the Move action, and move the orphaned patches to external storage, just to be safe
Known Issues (full details on website)
NOTE: as @ Feb-2016 version 1.4.1.0 is out that has a fix to allow customisable filters to exclude adobe reader from being incorrectly detected.
This seems to have worked for me. This is a simplified set of instructions from http://www.kavoir.com/2012/07/how-to-free-up-c-drive-disk-space-in-windows-7-easy.html
Type the following commands in a cmd.exe window running as Administrator:
rmdir /s /q C:\Windows\Installer
mklink /D C:\Windows\Installer D:\C_DRIVE\Windows\Installer
Windows may not let you to delete the installer directory, because some process are using some files within this directory:
C:\Windows\Installer\{some files}.msi - The process cannot access the file because it is being used by another process.
In this case you can use this link and use Process Explorer to find and stop the process which is restricting the rmdir command.
As a verification, I ran a "repair" of my Microsoft Visio Professional 2013 install (took 4 minutes to process). This completed successfully. Windows update (with reboots) also ran successfully after making the above changes. I will write back if anything doesn't work.
move
(as opposed to copy
then a recursive rmdir
) might seem better. The original instructions I cited mention that removing the files can be complicated because you might have to take ownership. I've had to do that before in Windows and it's annoying when there are a lot of files. In such cases, the copy will complete successfully the first time, then you just have to make the rmdir
work. For C:\Windows\Installer
it probably doesn't make a difference, but the cited article speaks of other directories that can be relocated onto a separate drive.
May 10, 2015 at 11:39
C:\WINDOWS\Installer\$PatchCache$
or the full C:\WINDOWS\Installer
folder. The simple step can save really much space on the disk. There are exist many .msp files which are not use cab inside. Such .msp files can be good compressed and one get some disk space for free. I had on my SSD (the only disk on the notebook) 52GB in C:\WINDOWS\Installer
folder which will be only 41GB after the simple compression.
icacls C:\WindowsInstaller /save Installer.acl
After moving: icacls D:\C_DRIVE\Windows\Installer /restore Installer.acl
. Otherwise installers would not be able to access the directory and report an error 1632.
You can compress the folder. You will regain between 10 and 20% of the space.
Sometimes $patchcache$ consumes a great deal of "Installer" folder. You can check how big is your "C:\Windows\Installer\$PatchCache$" folder (mine was 6GB after 1.5 years).
Basically it boils down to "If you have original installers, then you could delete it".
rmdir /q /s "C:\WINDOWS\Installer\$PatchCache$" (as admin of course)
read about it: Can I delete the folder "C:\WINDOWS\Installer\$PatchCache$"?
MSDN: http://blogs.msdn.com/b/heaths/archive/2007/01/17/the-patch-cache-and-freeing-space.aspx
dir "C:\Windows\Installer\$PatchCache$"
yields file not found. It works fine from Explorer though, explorer "C:\Windows\Installer\$PatchCache$"
.
Mar 15, 2022 at 18:25
There is no official way to kill it. You can use a link to move it to a HDD if you have one.
(*) Believed to be safe but no cast-iron guarantee - please only follow at your own risk.
(**) Targeting Windows 10 but similar steps may apply to other versions of Windows.
C:\Windows\Temp
). Select all files and folders and then choose to hard-delete them by pressing SHIFT+DEL (you may be required to enter admin credentials). Then choose to skip all files that cannot be deleted because they are in use.You can try a junction by copying the files to the new drive, then renaming the old installer folder temporarily, creating a junction from the default folder to the new. Then test things for a bit before deleting the renamed installer folder. Maybe install a bigger more complex program like visual studio, or adobe Photoshop, then uninstall it just to make sure all is well. But be forewarned, if anything goes wrong, you might not be able to install or re-install programs. Been there, done that. :)
C:\Windows\Installer
a junction point, and msiexec
broke it and recreated the folder anew.
Oct 12, 2017 at 10:01
The best solution is to use Windows Installer CleanUp Utility.
https://technet.microsoft.com/en-us/library/2008.08.utilityspotlight.aspx
I have delete the Installer folder and notice that.
I lost a lot of information's that windows cache there. One it was the icons of the programs links. And many program links left with out an icon.
So I discover that all the directories inside the Installer folder that have a GUID name (like for example {F9013657-4B4D-4F8E-8C57-C2C638F8A65F}) they used for cache of icons.
The size off all that directories are very small - so for me, you have to keep that directories with a GUID as name - and delete the rest.