How to change Visual Studio 2012 install directory?

前端 未结 10 1208
盖世英雄少女心
盖世英雄少女心 2020-12-08 06:38

I\'ve uninstalled VS11 using the the windows installer, and deleted just about every registry key I could find relating to it, but it still pops up with this when I try to r

相关标签:
10条回答
  • 2020-12-08 07:09

    I had previously installed the VS 2012 Test Controller. Uninstalling it allowed me to change the install path.

    0 讨论(0)
  • 2020-12-08 07:11

    I dont have the rep to comment on the post above. Although he is correct in the syntax of those command switches, the program is bugged, it doesnt work with selecting the CustomInstallPath. In fact, for me, it just decides to open about 50+ iterations of vs_ultimate.exe in the process list...

    I will try the Hard Junction as mentioned above as I am sure that will work.

    As a sidenote, if anyone is interested, you can use the switch that allows you to acquire the installation ahead of time by running vs_ultimate.exe /Layout X:\somefolder\

    I did that last night and hopefully my installation will go quickly since i havea ll the info, however I think in order to force it to use the offline version, you have to run vs_ultimate.exe /noweb.

    This page refers to all the switches: http://msdn.microsoft.com/en-us/library/e2h7fzkw(v=vs.110).aspx

    The above pages notes that: /p CustomInstallPath "Installs all re-targetable packages in the directory that you specify." Thay may mean that silently, whatever it is able to install off of your root drive, it will, but its hard to be certain and I have limited space on my SSD.

    Before I try the hard junction, I may also try the above and see what heppens, then uninstall it if need be. Will post results

    0 讨论(0)
  • 2020-12-08 07:15

    For this who still looking for a solution, What I tried and learned from this issue is that while "normal" (from control Panel) uninstall not every signatures of VS is not getting removed. So we have force uninstall from command line to remove all VS footprints. I have found the following answer in stack overflow very useful for me.

    Run installer in command line (Admin) with argument:

    vs_community_ENU.exe /uninstall /force

    Then:

    run vs_community_ENU.exe (or professional/enterprise).

    How to install Visual Studio 2015 on a different drive

    0 讨论(0)
  • 2020-12-08 07:17

    Try launching the installer with the following option:

    /p CustomInstallPath="[your_path]"
    

    For example:

    vs_ultimate.exe /p CustomInstallPath="C:\MyDirectory"
    

    To see all options use the switch /?

    0 讨论(0)
  • 2020-12-08 07:25

    The only solution I've found is on Windows 7 to create a hard Junction link to the directory your wanting Visual Studio installed to.

    For Example, My SSD drive is not my boot drive and has a drive letter of B:.

    I run the following command line

    mklink /J "C:\Program Files (x86)\Microsoft Visual Studio 11.0" "B:\Program Files (x86)\Microsoft Visual Studio 11.0"

    To the installer and Windows it thinks it installed it to the Program Files x86 directory on C: drive when it really installed it to the Program Files x86 folder on B: drive.

    Here's a link to page about creating Junction links in Windows Vista and 7. http://www.howtogeek.com/howto/windows-vista/using-symlinks-in-windows-vista/

    0 讨论(0)
  • 2020-12-08 07:27

    For me the final visual studio 2012 wanted to install into the same path as the (uninstalled) beta. I deleted most of the stuff in HKLM that had an exact match for the setup directory (ending with a \ e.g. C:\VS11Beta\) and then the setup let me choose again.

    Probably not a solution for the OP(M:\Program Files sounds too generic to delete), but perhaps for others with this problem.

    0 讨论(0)
提交回复
热议问题