I was searching for a list of detailed steps in Windows 7 for moving the winsxs folder to my data HDD drive and creating a junction in the SSD with
mklink /J oldpath newpath
I could only find this, which is linked from a superuser question (Can winsxs be moved and if so how?), but it is for Vista and was published in... 2007:
How to move the WinSxS directory in Vista
I also found these answers here on superuser:
In Windows 7, can I create a Symlink or Junction for winsxs or installer folders In this superuser question, a user is asking if they can make an
mlinkto thewinsxsfolder after moving it to another drive, and the answer is "you can do this for Installer". But the question was, can you do it for winsxs? Specially after the first comment under the question saying that "this can't be done because those are "already" symlinks".How can I free up drive space from the Windows installer folder without killing Windows? This is for the
Windows/Installerfolder, NOT winsxs, and using the/Doption instead of the/Joption inmlink. But they are doing what I want to do with winsxs: copy the contents of the folder to another drive, then doingmklink /D oldpath newpath. But can I do this with winsxs? (the linked blog post also didn't move the winsxs folder, they only moved the other folders). Also, commenters of the linked blog post are reporting that they couldn't change from Admin privileges to SYSTEM privileges, which is the first step before running the commands or moving the folders.How can I free up drive space from the Windows installer folder without killing Windows? Another commenter in the previous superuser link says that, if you make a junction,
"msiexec (apparently) ignores the junction, and manually creates C:\Windows\Installer. This 1) removes the junction, and 2) completely deletes the contents of the target directory."
Would this happen to the winsxs folder too?
So, summarizing:
I want to move the winsxs folder and then create a junction to it, but I'm not sure if I can do it or the consecuences of it.
- Would those steps written for Vista in 2007 that I linked at the beginning work for Win 7?
- Is the user who says that "this can't be done because those are "already" symlinks" right?
- If Vista steps to move the folder and create the junction won't work in Win 7, would those described in the linked blog post of point 2 work? How to change the privileges correctly from Admin to SYSTEM without getting the reported errors?
- If I manage to create the junction, will msiexec ignore the junction, and manually create C:\Windows\winsxs, removing the junction and completely deleting the contents of the target directory?
- What option would I use,
/J(junction) or/D(symlink link)? I'm guessing/J, and I know the difference between the two, but since the other option also appeared on an answer, I don't know anything anymore. Different options appear in different sources. Who is right?



