When you install Visual Studio from a command prompt, you can use a variety of command-line parameters to control or customize the installation. From the command line, you can perform the following actions:
- Start the install with certain options preselected.
- Automate the installation process.
- Create a cache (layout) of the installation files for later use.
The command-line options are used in conjunction with the setup bootstrapper, which is the small (1 MB) file that initiates the download process. The bootstrapper is the first executable that is launched when you download from the Visual Studio site. Use the following links to get a direct link to the latest release bootstrapper for the product edition that you're installing:
Command-line parameters
Visual Studio command-line parameters are case-insensitive.
Syntax:vs_enterprise.exe [command] <options>...
(Replace
vs_enterprise.exe
as appropriate for the product edition you're installing.)
Tip
For more examples of how to use the command line to install Visual Studio, see the Command-line parameter examples page.
Install options
Important
When specifying multiple workloads and components, you must repeat the
--add
or --remove
command-line switch for each item.Layout options
List of workload IDs and component IDs
For a list of workload and component IDs sorted by Visual Studio product, see the Visual Studio workload and component IDs page.
List of language locales
Error codes
Depending on the result of the operation, the
%ERRORLEVEL%
environment variable is set to one of the following values:
Each operation generates several log files in the
%TEMP%
directory that indicate the progress of the installation. Sort the folder by date and look for files that begin with dd_bootstrapper
, dd_client
, and dd_setup
for the bootstrapper, the installer app, and the setup engine, respectively.Get support
Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.
Here are a few more support options:
- Report product issues to us via the Report a Problem tool that appears both in the Visual Studio Installer and in the Visual Studio IDE.
- Suggest a feature, track product issues, and find answers in the Visual Studio Developer Community.
- Use your GitHub account to talk to us and other Visual Studio developers in the Visual Studio conversation in the Gitter community.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.