Question: The normal VS2017 installation method, whether it is online installation or downloaded offline installation package, will save the installation package in the C:\ProgramData\Microsoft\VisualStudio\Packages folder during the installation process, and take up a lot of space.
Problem solving:
The following describes an installation method that does not occupy the space of the C drive .
I installed it online below, and it feels very fast.
Step 1: Create a folder on the D drive, D:\vs2017offline , to save the offline installation package.
Step 2: Download the offline installation package.
Address: https://www.visualstudio.com/zh-hans/vs
Step 3: Open vs_professional.exe (personal version) or vs_enterprise.exe (enterprise version), open this file, it will automatically install a Visual Studio Installer on the system , and the program runs to this step to turn off the program .
After closing, a Packages will be created under C:\ProgramData\Microsoft\VisualStudio, and then the Packages folder will be deleted .
Step 4: Create a Soft Link
Open a command prompt as administrator (at C:\Windows\System32\cmd.exe)
Run the mklink /DC:\ProgramData\Microsoft\VisualStudio\Packages D:\vs2017offline command.
Step 5: Install vs2017
Installed a Visual Studio Installer before, open this software
You can install the features you want. All required components will be downloaded in seconds during installation, and will not occupy the space of C drive. It is recommended to set the installation directory on D: drive (not C: drive)
Step 6: Manually restart the computer after the installation is complete.