After 2 years my faithful Win2003 dev VM is out of space on C: and I can't shuffle any more files around.
My C:\windows\installer directory is >2GB so this is my prime candidate to move.
Luckily there are always solutions to problems... no I'm not going to delete the directory, or change my registry to point to a new location.
I'm going to add a symbolic link from C:\windows\installer to F:\installer.
- Download Junction from http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
- Copy OR move C:\windows\installer to F:\installer
- Delete all the files in C:\windows\installer
- Close all your Explorer windows
- Run > cmd> C:\junction C:\WINDOWS\Installer F:\installer
@set src=C:\WINDOWS\Installer @set trg=F:\Installer ::copy %src%\* %trg% ::detele %src%\* move /y %src%\* %trg% junction %src% %trg% pause
This should work for most directories. The batch file should be in the same directory as junction.exe.
Thanks a lot!!! This is a hidden gem!
ReplyDeleteI've noticed the following post... http://forums.techarena.in/customize-xp/992648.htm . Do you have any comment on that?
ReplyDeleteThanks again!
Giovanni... my understanding was they didn't work well on removable disks.
ReplyDeleteMaybe if he enables write caching for the disk it would help... just a guess though.
MS Installer wouldn't know it's a symbolic link.
If u have a EEE PC the best performance I've got with SSD is using C: FAT32 for all windows + page file, then D: all programs/profiles.
futu-ti mortii matii de cretin cu tampenia ta cu tot
ReplyDeleteThanks a lot too!!! you saved my day, I assigned also 10gb for a windows 2003 c: drive, and I was in trouble now...
ReplyDeleteThanks again!
I try this tip, but it takes the same space in drive C:. Then, there is no more free space on drive C:...
ReplyDeleteThank you, this worked beautifully to free up 11Gb of my 64Gb SSD c: drive! On Win7 I also had to delete the c:\windows\installer folder after emptying it
ReplyDeleteThanks a lot ! good to know that we can do symlink on windows system.
ReplyDeleteThanks :) Been looking for a solution to this. Small SSD disk, and large non-ssd disk on this system with large programs installed was moving towards beeing a problem because of the installer dir.
ReplyDeleteyour sample batch file has delete transposed.
ReplyDeleteGreat tip, thanks!
ReplyDeleteUsing this trick which look nice make me lost all the content of my windows installer folder !
ReplyDeleteIt first look to work well but when you reboot the folder on the new drive is empty and a new empty Installer folder exists on the drive c
have a look on http://forum.sysinternals.com/problems-with-junction_topic16205.html
@Thierry
ReplyDelete1.- You're copying/moving the contents, so you should always have 1 copy.
2.- This seems to be a rare issue where the link isn't created properly... possibly because it was been written to.
3.- If you're new folder is empty, you didn't copy/move the contents, or there's something else wrong.
4.- You should still be able to recover the lost data with an undelete app.
5.- This technique works, you must have introduced an new variable.
Regards, Ray.
Thanks for this. I've had to use it on two of my own and three client servers so far. Dell ships their servers with a default 12GB C:\ and after 3-5 years that fills up quickly.
ReplyDeleteI use symlinks all the time in Linux but was unaware until now that this was possible with Windows. Thanks again!
Thanks a lot! this is brillaint
ReplyDeleteAttractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! senior movers
ReplyDeleteBoxes. Moving boxes can be single divider, for example, Book boxes, Linen boxes and so forth or twofold divider, for example, China Boxes, Bayside Mowing
ReplyDeleteIntrigued Internet guests will actually want to peruse the different classifications in the directory and find sites like yours that they might keen on visit. Basically, https://onohosting.com/
ReplyDeleteThanks for sharing! I know this is out of the content but I just want to share Accountant in Sydney . https://malkounassociates.com.au/
ReplyDelete의정부출장샵
ReplyDelete동해출장샵
삼척출장샵
속초출장샵
원주출장샵
강릉출장샵
춘천출장샵
태백출장샵
공주출장샵
논산출장샵
당진출장샵
ReplyDelete충주출장샵
제천출장샵
청주출장샵
광양출장샵
나주출장샵
목포출장샵
순천출장샵
This comment has been removed by the author.
ReplyDeleteRevel in the relaxation of the 12 months. You are doing a powerful job. 먹튀폴리스
ReplyDelete