Created
June 12, 2020 13:47
-
-
Save judge2020/80a7efd3250bcf830a009a1e2171fe41 to your computer and use it in GitHub Desktop.
Install Visual Studio 2019 Build Tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $env:TEMP | |
Invoke-WebRequest -Uri "https://aka.ms/vs/16/release/vs_buildtools.exe" -OutFile vs_buildtools.exe | |
vs_buildtools.exe --wait --norestart --nocache ` | |
--installPath C:\BuildTools ` | |
--add Microsoft.VisualStudio.Workload.MSBuildTools ` | |
--add Microsoft.VisualStudio.Workload.VCTools ` | |
--add Microsoft.VisualStudio.Component.TestTools.BuildTools ` | |
--add Microsoft.VisualStudio.Component.VC.CMake.Project ` | |
--add Microsoft.VisualStudio.Component.Windows10SDK.18362 ` | |
--add Microsoft.VisualStudio.Component.VC.v141.x86.x64 ` | |
--add Microsoft.VisualStudio.VC.MSBuild.v150.x64.v141 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.10240 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.16299 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.17134 ` | |
--remove Microsoft.VisualStudio.Component.Windows10SDK.17763 ` | |
--remove Microsoft.VisualStudio.Component.Windows81SDK ` | |
|| IF "%ERRORLEVEL%"=="3010" EXIT 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment