Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
What exactly does it install to the default hdd? Using the default installer is the only way I know how to install Visual Studio and would assume is the only way to install it. – Ramhound Oct 25 '11 at 13:13
Exactly? Not sure, just dependencies. For example the .net 4 framework... prerequisites... – Daniel Gratz Oct 25 '11 at 13:27
You have to install .NET 4 and company on your desktop for obvious reasons. Your install Visual Studio to a ramdisk so it compiles faster. I am not sure the reason you simply wouldn't place your solution on it instead. – Ramhound Oct 25 '11 at 17:32
up vote 6 down vote accepted

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 way Microsoft thinks an installation have to be localize. 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.

share|improve this answer
He had no problem installing to a different disk, he is complainging that .NET was installed on his system disk for some reason. – Ramhound Oct 25 '11 at 17:34
Use /J to create a junction point instead, so it correctly re-parses all requests. – Tom Wijsman Oct 25 '11 at 21:50

The .NET libraries are going to have to sit on disk, unless you decide to load the entire Windows folder into RAM (Why?? Haven't we've learned from security class the perils of this.)

They are libraries that other applications have to reference so you can't just arbitrarily use them.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .