[Reproduced] Offline download and installation of the installation packages of all versions of Visual Studio 2017

Reprinted: Offline download and full analysis of the installation package for each version of Visual Studio 2017, click here to view the original text

Visual Studio 2017 uses a new modular installation solution, so Microsoft officially does not provide an ISO image, but the official provides a solution for how to perform offline downloads for users who need to perform offline installation. This article will translate part of the official guide (the translated part is the most basic offline download and installation plan. In addition, even if Microsoft provides an installation image before, it will only include the basic core components of Visual Studio and some official extensions. The SDKs, emulators, and third-party extensions of platforms such as Microsoft, Android, and Apple will be downloaded online after the user chooses. The offline package of VS2017 includes all options). Well, the following will be divided into four parts to describe, namely offline downloading and installing files, offline installing VS2017, updating offline file packages, and how to reduce the download amount of downloading other versions through the downloaded version.

Part 1: Download the installation file offline

The description includes all versions, and the screenshots take the VS2017 community version as an example:

①Log in to the download page of the VS official website, select the required version and click to download, and click here to enter the download page .

②After the download is complete, open the folder where the downloaded file is located. For users of Windows 8.1 and above, click the file on the Explorer-open the command prompt-open the command prompt as an administrator; Windows 7 users can click in the blank space of the folder Click the right mouse button while holding the Shift key and select "Open command window here".

③According to the version of VS2017 you downloaded, enter the corresponding command in the open command prompt window and click Enter, and the download will start after the program starts (the following command is used to download the full version of the offline package, including full-featured and full-language packages , The download file storage path can be changed by the user according to their own situation)

1、企业版:vs_enterprise.exe --layout D:\vs2017offline
2、专业版:vs_professional.exe --layout D:\vs2017offline
3、社区版:vs_community.exe --layout D:\vs2017offline

If you need to download offline files in a single language or in certain languages, you can use the following command:

1、企业版:vs_enterprise.exe --layout D:\vs2017offline --lang zh-CN
2、专业版:vs_professional.exe --layout D:\vs2017offline --lang zh-CN
3、社区版:vs_community.exe --layout D:\vs2017offline --lang zh-CN

If you need to download multiple languages ​​at the same time, you can --langadd multiple language code parameters in succession, separated by spaces. For example --lang en-US zh-CN, English and Chinese language packs will be downloaded at the same time.

④For more language packs or more installation instructions, please refer to the official offline installation command guide: click here to enter .

⑤Wait for the file to download, do not close the file download window, the window will automatically close after all files are downloaded, do not cut off the power or the network during the download process, and do not close the window. Of course, if the power is cut off or the download window is closed, It’s okay, I’ve entered the command again, and the download will continue.

Part 2: Offline installation

This section takes the installation of the community edition as an example. The installation process of other editions is the same, except that the professional edition and enterprise edition require activation authorization .

①Open the path where the offline file was just stored, such as D:\vs2017offline, then find the certificates folder and open it, and install the software certificates in the folder in turn. Just double-click the certificate and follow the prompts to go down. I’m too lazy to do the next step until it prompts that the import is successful.


②Run the installation program in the offline root directory. The location of each version is as follows: Enterprise Edition: Offline File Storage Folder\vs_Enterprise.exe
Professional Edition: Offline File Storage Folder\vs_Professional.exe
Community Edition: Offline File Storage Folder\vs_Community. exe

③After the installation program runs, select the modules and functions you need, and click Install after confirming the needs.

④Wait for the installation to be completed and it can be used.

Part 3: Updating the offline package

This part is relatively simple, and the steps are as follows:
①When Microsoft prompts that there is a version update, go to the official website to download the latest online installation execution file. Download address: Click here to enter .

② Follow the steps in the first part of this article to download the offline installation files, but you must pay attention that the download folder path after –layout must be the location where the old version of the offline file is stored (if you have downloaded it before and have not moved it before, then it is the previous download path ), after executing the command, the installer will scan the existing files and download updated files and new files.

③After the update is completed, you can execute the installation program in the root directory of the offline folder again to update the software, or check the update directly in VS. In theory, there is no need to re-import the certificate to update the new version unless a new certificate is downloaded.

Part 4: Reduce offline downloads of other versions through the downloaded version

This part is also very simple. The principle is that most of the components of the community edition, professional edition and enterprise edition are actually the same. If users want to download all editions offline, then there is no need. The enterprise edition includes all other edition components, so theoretically Users only need to download the Enterprise Edition, and they can choose to install the Community Edition, Professional Edition or Enterprise Edition during installation. Of course, the above is just theory, after all, I did not experiment, of course, the following methods can 100% guarantee that users who need it can download all versions of VS2017 with the least amount of downloads.
If you have already downloaded one of the versions, you can do the following:

①Create two new folders and rename them according to your own hobbies, preferably in English.

②Copy all the files of the downloaded version to these two new folders respectively, and delete the six files downloaded in the root directory by the previous download program.

③Download the installation programs of the other two versions. The next step is to repeat the steps in the first part, but the path parameters after the command line command-layout are set to the two folders you just created according to the version.

④ Press Enter to execute the command, the program will scan and check the components that have been downloaded, and now the missing and matching components corresponding to its own version, but the size of this part will not exceed 1GB, and it may be only about tens of megabytes...

⑤Wait for completion, anyway, it will be fine in a while, and then you can collect three versions of offline packages.


Transfer from: IT House

Guess you like

Origin blog.csdn.net/michael_f2008/article/details/83822183