![Webstorm 2021.1](https://cdn1.cdnme.se/5447227/9-3/6_64e61dfae087c31b411cc5f3.png)
It must not end with a backslash or vs_installer.exe will choke.
![visual studio build tools visual studio build tools](https://sysnetblobaccount.blob.core.windows.net/sysnetimages/build_tools_1.png)
![visual studio build tools visual studio build tools](https://i.stack.imgur.com/oLsuX.png)
\vs_installer.exe modify -installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Buildtools" -add .AuthoringTools -downloadThenInstall -quiet
![visual studio build tools visual studio build tools](https://rahim-soft.com/wp-content/uploads/2018/03/Build-Tools-for-Visual-Studio-2017s.jpg)
Armed with all this information you're ready to craft a command-line: PS C:\Program Files (x86)\Microsoft Visual Studio\Installer>. The Visual Studio workload and component IDs contains links to all Visual Studio components per Visual Studio variant. The -add parameter expects either a workload ID or component ID. The key to installing new components is to use modify with the -add parameter. To get an understanding of how the installer works see its official documentation. The name of the executable varies between Visual Studio versions, but here it is called vs_installer.exe. PS C:\> Get-Childitem -recurse -filter "vs_*.exe"ĭirectory: C:\Program Files (x86)\Microsoft Visual Studio\Installer To find out where, launch an administrative Powershell prompt and do this: PS C:\something> cd C:\ In my case it was located in C:\Program Files (x86)\Microsoft Visual Studio\Installer, but yours may be in a different location.
![visual studio build tools visual studio build tools](https://i.ytimg.com/vi/1x8LB4FiZ-E/maxresdefault.jpg)
It is possible to install Visual Studio 2019 with Chocolatey quite easily, but what if you need to install additional components to Visual Studio without using the Visual Studio installer GUI? Looking around did not quickly reveal any de facto instructions on how to do it, so this article aims to fill that gap.įirst you need to locate your Visual Studio installer. This task requires installing Visual Studio 2019 build tools automatically and fetching the project's dependencies with vcpkg automatically. My goal has been to be able to reproducibly create a Windows Server 2019-based Buildbot workers, first in a Vagrant environment, then later in AWS EC2 using pre-built images created with Packer. I've been doing lots of Windows automation recently.
![Webstorm 2021.1](https://cdn1.cdnme.se/5447227/9-3/6_64e61dfae087c31b411cc5f3.png)