[Xinge Education] How to install VS2019 without internet?

 

      Everyone knows that the installation method of VS2019 is online installation. The installation package downloaded from the official website is only a small 1.3M, but when our computer cannot connect to the network, how to install VS2019?

 We can make an offline installation package, the specific steps are as follows: [ public account dotNet industrial control host computer: thinger_swj]

1. Download the installation package

Find a computer with internet and download an online installation package of VS2019. The download address is as follows:

https://visualstudio.microsoft.com/zh-hans/downloads/

In this case, take downloading the VS professional version to the desktop as an example:

 

2. Create a local folder

Create a local folder to store the offline installation files of VS2019. Here, create a folder under the D drive, named vs2019_offline, and the path is D:\vs2019_offline

3. Create command

vs_professional__1470957165.1573205937.exe 

--layout D:\vs2019_offline  

--add Microsoft.VisualStudio.Workload.ManagedDesktop  

--add Microsoft.VisualStudio.Workload.CoreEditor 

--add Microsoft.VisualStudio.Workload.NativeDesktop 

--add Microsoft.VisualStudio.Workload.NetCoreTools 

--add Microsoft.VisualStudio.Workload.Universal 

--add Microsoft.VisualStudio.Workload.VisualStudioExtension 

--add Component.GitHub.VisualStudio --lang zh-CN 

The first line is the downloaded vs2019 installation package, the second line is the offline path, the third line up to the penultimate line is the added component, and the last line is the language pack of the software.
 

4. Execute commands

In a blank space on the computer desktop, hold down Shift and right-click, and then choose to open the PowerShell form here to enter the following interface:

 

5. Execute commands

Copy the command below into PowerShell, remember to have .\ in front of it, which means it is in the current path. After copying, press Enter to execute it.

.\vs_professional__1470957165.1573205937.exe  --layout d:\vs2019_offline  --add Microsoft.VisualStudio.Workload.ManagedDesktop  --add Microsoft.VisualStudio.Workload.CoreEditor --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.NetCoreTools --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.VisualStudioExtension --add Component.GitHub.VisualStudio --lang zh-CN

 

6. Execution process

The entire process takes about 10 minutes [ Public account dotNet industrial control host computer: thinger_swj]

 

 

 

7. Execution results

Finally, there is an offline follow-up package in the vs2019_offline folder of Disk D, and you can install it by double-clicking Setup.

 

8. Package into ISO

In actual use, it can be used by packaging it into an ISO file.

 

Guess you like

Origin blog.csdn.net/xiketangAndy/article/details/108448598