Use command-line parameters to install Visual Studio | Microsoft Docs.

Looking for:

Use command-line parameters to install Visual Studio | Microsoft Learn.

Click here to Download

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The web installer is a small package that automatically determines and downloads only the components applicable for a particular platform.

News Blog Stats About Me. Trending Posts Microsoft officially announces Windows 11, the next major version of Windows. Windows 11 will be offered as a free upgrade to Windows 10 users. Check to find if you have a Windows 11 compatible system. Microsoft releases Visual Studio Preview 1. Subscribe to our Free Newsletter: Subscribe. TypeScript Tutorial for Absolute Beginners. Microsoft Azure Portal Tips and Tricks. Tech News. Visual Studio Warning If you use this parameter, other products that are installed on the same computer might stop functioning correctly.

Last updated on February 4, Was this article helpful? Installs Visual Studio using the data file that you specified for administrative installation. Specifies which bundle is chaining this bundle. List of selection tree items to check on the selection screen of the installer wizard. Copies the files on the installation media to the directory that you specify. Prevents the check for newer versions of this product for either required or recommended updated versions.

Prevents the installation application from restarting the computer during or after installation. Sets a custom product key that contains no dashes and no more than 25 characters. Suppresses the user interface UI for the installation application. Prevents displaying the update available dialog in the installation wizard, thus, the installation wizard will auto-accept any required or recommended updated versions.

Uninstalls Visual Studio and all features that are shared with other products.

 
 

Silent Install Visual Studio on new VM before logging into machine – Stack Overflow – Layout command and command-line parameters

 

When you install Visual Studio programmatically or from a command prompt, you can use a variety of command-line parameters to control or customize the installation to perform the following actions:. To get the bootstrapper for Visual Studio version You can get the Visual Studio bootstrapper from either the Visual Studio downloads page or the Visual Studio Releases page for your chosen version and edition of Visual Studio.

Your setup file –or bootstrapper– will match or be similar to one of the following:. Released versions of Visual Studio are not yet available, the bootstrappers below are for the preview release of Visual Studio Start by downloading the Visual Studio bootstrapper from the Visual Studio downloads page. If you previously downloaded a bootstrapper file and want to verify what version it is, here’s how. In Windows, open File Explorer, right-click the bootstrapper file, choose Properties , choose the Details tab, and then view the Product version number.

To match that number to a release of Visual Studio, refer to the Visual Studio build numbers and release dates page. If you previously downloaded a bootstrapper file and want to verify its version, here’s how. You can get the administrator update by going to the Microsoft Update Catalog , search for the update you want to install, and press the Download button.

Administrator updates presumes that Visual Studio is already installed on the computer. Applying administrator updates will not initiate a brand new installation. When invoking the Visual Studio bootstrapper programmatically to install the product or to maintain a layout, the first parameter is the command the verb that describes the operation to perform. The subsequent optional command line parameters, which are all prefixed by two dashes — , further define how that operation is supposed to happen.

All Visual Studio command-line parameters are case-insensitive, and additional examples can be found on the Command-line parameter examples page. When specifying multiple distinct workloads or components or languages, you must repeat the –add or –remove command-line switch for each item. All layout management operations assume that the command is the default Install which is blank. So, all layout management operations should start with the initial required –layout parameter.

The table below describes the other parameters you can use to create or update a layout using the command line. If you download an administrator update from the Microsoft Update Catalog into your installation directory on your client machine, you can just double click on the file to apply the update.

You can also open a command window and pass some of the parameters below to change the default behavior. If you are deploying the administrator update through Microsoft Endpoint Manager SCCM , you can modify the package to adjust the behavior by using the parameters below. You can also control the parameters via a configuration file on the client machine. For more information, refer to Methods for configuring an administrator update.

Syntax example: visualstudioupdate Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance. We also offer an installation chat English only support option for installation-related issues. Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services.

Privacy policy. Skip to main content. Contents Exit focus mode. Tip Released versions of Visual Studio are not yet available, the bootstrappers below are for the preview release of Visual Studio Tip If you previously downloaded a bootstrapper file and want to verify what version it is, here’s how.

Tip If you previously downloaded a bootstrapper file and want to verify its version, here’s how. Important When specifying multiple distinct workloads or components or languages, you must repeat the –add or –remove command-line switch for each item. Is this page helpful? Yes No. Any additional feedback? Skip Submit. Submit and view feedback for This product This page.

View all page feedback. The default command both installs the product, and it is used for all layout maintenance operations. Exports installation selection to an installation configuration file.

For the default install command, this parameter is Optional and describes where the instance will be installed on the client machine. For other commands like update or modify, this parameter is Required and denotes the installation directory for the instance to act upon.

Optional : During an install or modify command, this repeatable parameter specifies one or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. To include multiple workloads or components, repeat the –add command for example, –add Workload1 –add Workload2. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID for example, –add Workload1;includeRecommended or –add Workload2;includeRecommended;includeOptional.

For more information, see the Workload and component IDs page. Optional : During a modify command, this repeatable parameter specifies one or more workload or component IDs to remove. It complements and behaves similarly to the –add parameter. Optional : During an install or modify command, this repeatable parameter specifies the UI language packs that should be installed with the product.

If not present, the installation uses the language pack that corresponds to the machine locale. For more information, see the List of language locales section on this page.

Optional : During an install or modify command, this repeatable parameter determines the UI language packs that should be removed from the product. It complements and behaves similarly to the –addProductLang parameter. Optional : The URI or path to a response file which can contain configuration settings.

Optional : During an install or modify command, this parameter causes all workloads and components for the product to be installed. Optional : During an install or modify command, this parameter installs all workloads and components, but no recommended or optional components.

Optional : During an install or modify command, this parameter includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with –allWorkloads or –add.

Optional : During an install or modify command, this parameter includes the optional components for any workloads that are installed, but not the recommended components. Optional : Used with any command, this parameter prevents any user interface from being displayed while the command is being executed. Optional : This parameter causes the user interface to be displayed in a non-interactive manner. This parameter is mutually exclusive from and in fact overrides the –quiet parameter.

Optional : This parameter must be paired with either the –passive or –quiet parameters. During an install, update, or modify command, adding the –norestart parameter will delay any necessary reboot. Optional : During an install, update, or modify command, this parameter allows Visual Studio to both download and install the product in parallel. It’s the default experience. Optional : During an install, update, or modify command, this parameter forces Visual Studio to download all files before installing them.

It is mutually exclusive from the –installWhileDownloading parameter. Optional : During an install command, this parameter defines the nickname to assign to an installed product. The nickname can’t be longer than 10 characters. Optional : During an install command, this parameter defines the product key to use for an installed product.

It’s composed of 25 alphanumeric characters either in the format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx or xxxxxxxxxxxxxxxxxxxxxxxxx. Optional : During an install or modify operation, this determines the workloads and components to add based on a previously saved installation configuration file.

This operation is additive and it won’t remove any workload or component if they aren’t present in the file. Also, items that don’t apply to the product won’t be added. During an export operation, this determines the location to save the installation configuration file.

Specifies a directory to create or update an offline install cache. For more information, see Create a network-based installation of Visual Studio. Optional : Used with –layout to prepare an offline install cache with resource packages with the specified language s. Optional : One or more workload or component IDs to add. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID for example, –add Workload1;includeRecommended or –add Workload2;includeOptional.

Note : If –add is used, only the specified workloads and components and their dependencies are downloaded. If –add isn’t specified, all workloads and components are downloaded to the layout. Optional : Includes the recommended components for any workloads that are installed, but not the optional components. Optional : Includes the recommended and optional components for any workloads being included in the layout. The workloads are specified with –add.

Optional : Apply changes to the layout without updating the version of the layout. Optional : Verify the contents of a layout. Any corrupt or missing files are listed. If any files are corrupt or missing, they’re redownloaded.

Internet access is required to fix a layout. Optional : Removes old versions of components from a layout that has been updated to a newer version.

Optional : The ID of the channel for the instance to be installed.

 

Create an offline installation – Visual Studio (Windows) | Microsoft Docs

 

To illustrate how to use command-line parameters to install Visual Studio , here are several examples that you can customize to match your needs. If you are using a different edition, substitute the appropriate bootstrapper name. All commands require administrative elevation, and a User Account Control prompt will be displayed if the process is not started from an elevated prompt.

Alternatively, you can simply place these lines together onto a single row. For lists of the workloads and components that you can install by using the command line, see the Visual Studio workload and component IDs page. Update a Visual Studio instance by using the command line, with no interactive prompts but progress displayed:.

Both commands are advised. The first command updates the Visual Studio Installer. The second command updates the Visual Studio instance. To avoid a User Account Control dialog, run the command prompt as an Administrator. Install a desktop instance of Visual Studio silently, with the French language pack, returning only when the product is installed. Use in batch files or scripts to wait for the Visual Studio installer to complete before the next command is executed.

Some command utilities require additional parameters to wait for completion and to get the installer’s return value. The following is an example of the additional parameters used with the PowerShell script command ‘Start-Process’:. The first ‘–wait’ is used by the Visual Studio Installer, and the second ‘-Wait’ is used by ‘Start-Process’ to wait for completion. The ‘-PassThru’ parameter is used by ‘Start-Process’ to use the installer’s exit code for its return value.

Download the Visual Studio core editor the most minimal Visual Studio configuration. Only include the English language pack:. Download the. NET desktop and. NET web workloads along with all recommended components and the GitHub extension. Start an interactive installation of all workloads and components that are available in the Visual Studio Enterprise edition:.

Install a second, named instance of Visual Studio Professional on a machine with Visual Studio Community edition already installed, with support for Node. These command-line parameters are new in For more information about them, see the Use command-line parameters to install Visual Studio page.

This command-line command is new in For more information about it, see the Use command-line parameters to install Visual Studio page. This command-line parameter is new in Using –config to install the workloads and components from a previously saved installation configuration file:. Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.

We also offer an installation chat English only support option for installation-related issues. Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services.

Privacy policy. Skip to main content. Contents Exit focus mode. Note All commands require administrative elevation, and a User Account Control prompt will be displayed if the process is not started from an elevated prompt.

Note Both commands are advised. Is this page helpful? Yes No. Any additional feedback? Skip Submit. Submit and view feedback for This product This page. View all page feedback.