Skip to content

Instantly share code, notes, and snippets.

@judge2020
Created June 12, 2020 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judge2020/80a7efd3250bcf830a009a1e2171fe41 to your computer and use it in GitHub Desktop.
Save judge2020/80a7efd3250bcf830a009a1e2171fe41 to your computer and use it in GitHub Desktop.
Install Visual Studio 2019 Build Tools
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