Windows – Install entire visual studio on ramdisk

ramdiskvisual studio 2010windowswindows 7

How would i go about installing visual studio 2010 and all of its dependencies entirely on a ramdisk? I have 16GB ram in my computer and a 4GB ramdisk just for visual studio.

If i just try to install visual studio using the normal installer it still adds a ton of things to my default hdd. I would like all dependencies to be on the ramdisk plus visual studio itself and any cache it might have etc. Thanks for advice.

Best Answer

From my experience changing the installation path of Visual Studio is possible but may cause a lot of problems later. I would not try to change the location Microsoft where thinks an installation have to be. Instead I would use the NTFS soft link feature and pretend that Visual Studio and some of the other components are installed on C:\Program Files\... where as in reality they are located on the RAM drive:

  1. Format your RAM disk with NTFS (if it is not already in this format)
  2. Copy the directories you would like to mirror to RAM onto the RAM drive (better use command line, not Explorer) - the exact target path on the RAM drive does not matter
  3. rename the original directory in your Program Files directory (e.g. "Visual Studio" to "Visual Studio_".
  4. Create a symbolic link from C:\Program Files\Visual Studio to your ram drive (R: in this example):

mklink /D "C:\Program Files\Visual Studio" "R:\Visual Studio"

Now your Visual Studio installation on the C-Drive points to your RAM-Drive. And the best is that you can automate the whole process via a batch script.

Related Question