如何获得 Visual Studio 2017 的离线安装程序? [英] How can I get Offline Instller for Visual Studio 2017?

查看:18
本文介绍了如何获得 Visual Studio 2017 的离线安装程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近尝试安装 Visual Studio 2017.但是没有离线安装程序.如何获取离线安装程序.我还尝试安装 Xamarin.尽管我有最新的 Android SDK,但它要求我再次下载 Android SDK.如何纠正?

I recently try to install Visual Studio 2017. But there is no offline installer. How to get offline installer for it. I also tried to install Xamarin. Eventhough I have latest Android SDK, it ask me to download Android SDK again. How to rectify it?

提前致谢.

推荐答案

要生成离线安装程序,您首先需要下载相应的在线安装程序,它会给您一个类似于以下其中一个的安装文件:

To produce an offline installer you first need to download the corresponding online installer, which will give you an installation file similar to one of these:

  • vs_enterprise.exe - Visual Studio 2017 Enterprise,下载 这里
  • vs_professional.exe - Visual Studio 2017 Professional,下载 这里
  • vs_community.exe - Visual Studio 2017 社区版,下载 这里
  • vs_enterprise.exe - Visual Studio 2017 Enterprise, download here
  • vs_professional.exe - Visual Studio 2017 Professional, download here
  • vs_community.exe - Visual Studio 2017 Community Edition, download here

那么你所要做的就是:

vs_WHATEVER.exe --layout path-to-empty-directory

例如,要为 Visual Studio 2017 Community Edition 创建离线安装程序,您首先下载在线安装程序,然后你执行这个:

Example, to create an offline installer for Visual Studio 2017 Community Edition you first download the online installer, then you execute this:

vs_community.exe --layout d:	emp

这将使用安装 Visual Studio 所需的所有文件填充 D:Temp.

This will fill D:Temp with all the files necessary to install Visual Studio.

注意:安装程序将打开一个控制台窗口作为其过程的一部分,您需要等到此窗口关闭才能安全地使用此文件夹的内容.

Note: The installer will open a console window as part of its process, you need to wait until this window closes before you can safely use the contents of this folder.

将有许多子目录,具体取决于可用的包,但您也将下载的原始可执行文件放置在此目录中.从此目录执行此操作将使用提供的包进行安装.

There will be many sub-directories, depending on the packages available, but you will also have the original executable you downloaded placed into this directory. Executing this from this directory will install using the provided packages.

另请注意,默认情况下,除非您手动指定 --add 和包 ID,否则将下载所有包.因此,您将获得一个完整的当前版本以供离线安装.但是,如果您使用 --add 参数指定包,则将下载指定的包.

Also note that by default, unless you manually specify --add and package id's, all the packages will be downloaded. You will thus get a complete and current version to install offline. However, if you specify packages with the --add parameter, only the specified packages will be downloaded.

来源:创建Visual Studio 2017 的网络安装

这篇关于如何获得 Visual Studio 2017 的离线安装程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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