官术网_书友最值得收藏!

  • Mastering Visual Studio 2017
  • Kunal Chowdhury
  • 351字
  • 2021-07-15 17:26:32

Creating an offline installer of Visual Studio 2017

Sometimes, we may need to have an offline copy of the installer so that we can install it to multiple devices without an active or fast internet connection. This will save your bandwidth from downloading the same copy multiple times over the network. The offline installer is big. So, before going further to create the offline copy, make sure that you have an active internet connection available with no limitation of download bandwidth.

  1. First, download the Visual Studio setup executable file (web installer) to a drive on your local machine.
  2. Now, run the downloaded setup executable with the following arguments (switches) from a command prompt:
    • Add --layout <path>, where <path> is the location where you want the layout to be downloaded. By default, all languages will be downloaded along with all the packages.
    • In case you want to restrict the download to a single language only, you can do so by providing the --lang <language> argument, where <language> is one of the ISO country codes given in the following list. If not specified, support for all localized languages will be downloaded.
For example, to download the Visual Studio 2017 Enterprise edition under the local path C:\VS2017\, you need to provide the following command:

vs_enterprise.exe --layout "C:\VS2017\"

To download the English localized edition to local path C:\VS2017\, provide the following command:
vs_enterprise.exe --layout "C:\VS2017\" --lang "en-US"

To download only the .NET desktop development workload, run:
vs_enterprise.exe --layout "C:\VS2017\" --add Microsoft.VisualStudio.Workload.ManagedDesktop

To download the .NET desktop development and Azure development workloads, provide the following command:

vs_enterprise.exe --layout "C:\VS2017\" --add Microsoft.VisualStudio.Workload.ManagedDesktop Microsoft.VisualStudio.Workload.Azure

As shown in the following screenshot, it will start downloading all the packages part of Visual Studio 2017. As the offline installer is big, it will take plenty of time, depending on the speed of your internet network:

Once the download completes, go to the folder where you downloaded the packages (in our case, it's C:\VS2017\) and run the installer file, that is, vs_enterprise.exe, for example. Then, follow the same steps as mentioned earlier to select the required Workloads and/or Individual components to start the installation process.

主站蜘蛛池模板: 阳西县| 永丰县| 东台市| 日照市| 三门峡市| 留坝县| 昌平区| 长白| 叙永县| 安多县| 凯里市| 东明县| 泉州市| 北海市| 福建省| 沙河市| 方城县| 望谟县| 建阳市| 林芝县| 武平县| 上思县| 盐亭县| 秀山| 兰西县| 睢宁县| 威海市| 无棣县| 德兴市| 兴安县| 雷山县| 东丰县| 清丰县| 崇州市| 台州市| 博爱县| 新田县| 芦山县| 绿春县| 滦南县| 新竹市|