VisualStudio Build Tools 2017 offline installer

n80fr1n60 picture n80fr1n60 · Oct 11, 2017 · Viewed 71.1k times · Source

I generate an an offline installer for the build tools like this: vs_BuildTools.exe --layout c:\VS_BuildTools2017_offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --lang en-US

I move this folder to a build agent (which has no internet connection, and no, it will never have one!), and then execute the vs_BuildTools.exe in that folder even with --noWeb or --noweb, but no matter what option I give, it will always fail with no internet connection available. Surely I am missing something, so any hints on what are appreciated

Answer

JanSkalicky picture JanSkalicky · Nov 27, 2017

All steps to install build tools:

  1. Download build tools
  2. Download layout files for offline installation:
    • Possible workloads are specified here. Following command contains workloads for msbuild and C++ build tools.
    • Run (exe file will have some version numbers in name): vs_BuildTools.exe --layout c:\BT2017offline --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.WebBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools --lang en-US
  3. Copy c:\BT2017offline to box on which you want to install it.
  4. Open mmc and import all certificates from c:\BT2017offline\certificates to "Trusted Root Certification Authorities" of computer (not current user)
  5. Run (exe file will have some version numbers in name): c:\BT2017offline\vs_BuildTools.exe --noweb
  6. Continue clicking next ...