vs_install.bat 577 Bytes
Newer Older
1
2
@echo off

3
4
5
set VS_DOWNLOAD_LINK=https://aka.ms/vs/15/release/vs_enterprise.exe
set VS_INSTALL_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
set VS_INSTALL_ARGS=--nocache --quiet --wait --add Microsoft.VisualStudio.Component.VC.Tools.14.11
peterjc123's avatar
peterjc123 committed
6
set VSDEVCMD_ARGS=-vcvars_ver=14.11
7
8
9
10

curl -k -L %VS_DOWNLOAD_LINK% --output vs_installer.exe
if errorlevel 1 exit /b 1

11
start /wait vs_installer.exe modify --installPath "%VS_INSTALL_PATH%" %VS_INSTALL_ARGS%
12
13
14
if not errorlevel 0 exit /b 1
if errorlevel 1 if not errorlevel 3010 exit /b 1
if errorlevel 3011 exit /b 1