How to move WinSxS/Installer folder to another partition
Please try moving the Installer folder first; it is safer than moving WinSxS folder.
Read before action:
According to this article, the “winsxs” folder contains just about the ENTIRE Windows operating system, and then the files which are actually used are projected into the classic Windows folders (such as “system32” and others) using hard links.
So that means that if you move the “winsxs” folder out of your SSD and into a mechanical drive, the performance of the OS will be degraded, since those files are used often.
I’d suggest only moving other seldom used folders such as the “c:\Windows\Installer” folder. That folder just contains uninstallers, which are obviously not used often, only when you need to uninstall something. Admittedly, you won’t save as much space, but in my case I saved 2,5 GB by moving that “Installer” folder to another drive and creating a junction point in its original place (which is a nice saving if using a small 64 GB SSD drive, like the one I’m using). I’ve not moved “winsxs”, though, since that’s a VERY important folder for the OS, which is often used and benefits from being in the SSD drive.
Solution 1
1) Close any running applications (This is important).
2) Copy your winsxs folder to another location (preferably off of your SSD 🙂
3) Now comes the magic: You are going to create a junction point to literally trick Windows into thinking the winsxs folder is in the same place.
3a) Rename “c:\Windows\winsxs” to “c:\Windows\winsxs.old”
3b) Start > Run > Type “mklink /J “c:\Windows\winsxs” “d:\winsxs” (a new junction would be created)
3c) Launch some x64 application and an x86 application to test functionality and once you’re convinced it’s working delete the old “winsxs.old” directory.
Congrats, you now have moved your winsxs directory to another hard drive.
Solution 2: Move WINDOWS/INSTALLER to different drive
Is your operating system partition out of space?
Have you already disabled hibernation?
Have you installed and ran WinDirStat to locate files to delete?
You can typically free up a few gigabytes of storage if you move your c:\windows\installer folder to a different partition or external drive.
Windows doesn’t provide a way for you to do this with the registry, but you can easily do it by manually moving the files, and then creating a symbolic link to the new location.
First you need to download a program from Microsoft (sysinternals) called JUNCTION.EXE. This program allows you to create symbolic links.
You can download JUNCTION from the following Microsoft site:
Unzip the file and copy it to your c:\windows\system32 folder so that you can easily execute it.
- Set Windows to SHOW ALL HIDDEN FILES (including operating system files)
- CUT and PASTE the C:\windows\installer folder to the new location ex. d:\windows\installer
or use below command
robocopy C:\Windows\Installer D:\Windows\Installer /MOVE /e
- Verify all files in c:\windows\installer have been moved to d:\windows\installer or not
- Launch a Command Prompt (as administrator) and Use one of below commands to make a junction
junction.exe c:\windows\installer d:\windows\installer
mklink /J C:\Windows\Installer D:\Windows\Installer