Search code examples
visual-studiopowershellvisual-studio-2017build-tools

How to update Visual Studio 2017 Build Tools from powershell with vs_installer.exe


I want to update the Visual Studio 2017 Build Tools on all our build nodes with Powershell and I'm looking for a command that could update them remotely.

There is no vs_buildtools.exe anymore but I guess it should also work with vs_installer.exe.

It is not enough to type:

."c:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" update

so I added --installPath "c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\" but that does not work.

Anyone understands the reference at https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio ?

Thank you!


Solution

  • In the end after a year I found a good guide that really works

    https://alastaircrabtree.com/keeping-visual-studio-2017-build-tools-up-to-date/

    and the component list that is needed

    https://learn.microsoft.com/en-us/visualstudio/install/use-command-line-parameters-to-install-visual-studio?view=vs-2017