
\\layoutserver\share\path\vs_enterprise.exe -update -quiet -wait The following example simulates updating a client using an evergreen bootstrapper in the layout.

Best practice is to run and complete both commands in order using an elevated command prompt. The first command updates the installer on the client, and the second command updates the Visual Studio product. You can run these series of commands in two steps by using a bootstrapper found on either the client or in a layout. Update a Visual Studio instance via the command line with progress displayed and no interactive prompts. vs_enterprise.exe -installPath C:\desktopVS ^ Install a desktop instance of Visual Studio silently, with the French language pack, returning only when the product is installed. Install a minimal instance of Visual Studio, with no interactive prompts but progress displayed: vs_enterprise.exe -installPath C:\minVS ^

Install using -installPath alongside the bootstrapper In PowerShell, the equivalent is the backtick ( `) character.įor lists of the workloads and components that you can install by using the command line, see the Visual Studio workload and component IDs page. Alternatively, you can place these lines together onto a single row. You can use the ^ character at the end of a command line to concatenate multiple lines into a single command. If you're using a different edition, substitute the appropriate bootstrapper name.Īll commands require administrative elevation, and a User Account Control prompt will be displayed if the process isn't started from an elevated prompt.

In each example, vs_enterprise.exe, vs_professional.exe and vs_community.exe represent the respective edition of the Visual Studio bootstrapper, which is the small (~1MB) file that initiates the download process. To illustrate how to use command-line parameters to install Visual Studio, here are several examples that you can customize to match your needs. Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
