如何在不同的驱动器上安装 Visual Studio 2015 [英] How to install Visual Studio 2015 on a different drive

查看:21
本文介绍了如何在不同的驱动器上安装 Visual Studio 2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何在除 C:\ 驱动器之外的另一个驱动器上安装 Visual Studio Community 2015.每次我打开 VS 的安装程序时,它都会显示保存位置,但不会让我更改它:

I'm trying to figure out how to install Visual Studio Community 2015 on another drive besides my C:\ drive. Every time I open the installer of VS it shows the save location but won't let me change it:

我想将下载目的地更改为我的 D:\ 驱动器.如果有解决办法,有人可以帮我吗?我已经搜索了大约几个小时,但找不到与我的问题相关的任何内容.

I'm wanting to change the download destination to my D:\ drive. If there is a work around could someone give me a hand? I've searched for about a few hours now, and I can't find anything relating to my issue.

推荐答案

使用参数 /CustomInstallPath 从命令行运行安装程序 InstallationDirectory

Run the installer from command line with argument /CustomInstallPath InstallationDirectory

请参阅更多命令行参数其他安装信息.

注意:这不会更改所有文件的位置,而只会更改那些可以(按设计)安装到不同位置的文件.请注意,有许多共享组件将安装到驱动器 C: 上的共享存储库中,而无法更改它们的路径(除非您执行一些黑客 使用 mklink/j(目录连接,即文件夹的硬链接"),但值得怀疑,因为任何 Visual Studio 更新都会破坏这些硬链接.这就是 由尝试过的人确认,尽管在​​ Visual Studio 2012 上.)

Note: this won't change location of all files, but only of those which can be (by design) installed onto different location. Be warned that there is many shared components which will be installed into shared repositories on drive C: without any possibility to change their path (unless you do some hacking using mklink /j (directory junction, i.e."hard link for folder"), but it is questionable whether it is worth it, because any Visual Studio updates will break those hard links. This is confirmed by people who tried that, although on Visual Studio 2012.)

更新:最近 comment,在上述适用之前可能需要卸载 Visual Studio.卸载命令如下:vs_community_ENU.exe/uninstall/force

Update: per recent comment, uninstallation of Visual Studio might be required before the above applies. Uninstallation command is like this: vs_community_ENU.exe /uninstall /force

这篇关于如何在不同的驱动器上安装 Visual Studio 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆