You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/install/use-command-line-parameters-to-install-visual-studio.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -51,13 +51,14 @@ If no command is specified, it will install the product.
51
51
| ----------------------- | --------------- |
52
52
|```--installPath <dir>```| The installation directory for the instance to act upon. For the install command, this is where the instance will be installed. For other commands, this is where the previously-installed instance was installed. |
53
53
|```--productId <id>```| The ID of the product for the instance that will be installed. This is required for the install command, ignored for other commands if --installPath is specified. |
54
-
|```--layout <dir>```| Optional: Specifies a directory to create an offline install cache. |
54
+
|```--layout <dir>```| Optional: Specifies a directory to create an offline install cache. Selecting this option will implicitly add the '--wait' option as well. |
55
55
|```--lang <language-locale>```*[<language-locale> ...]*| Optional: Install/uninstall resource packages with the specified language(s). |
56
-
|```--add <workload or component ID>```*[<workload or component ID> ...]*| Optional: One or more workload or component IDs to add. |
56
+
|```--add <workload or component ID>```*[<workload or component ID> ...]*| Optional: One or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. You can control additional components globally using '--includeRecommended' and/or '--includeOptional'. For finer-grained control, you can append ';includeRecommended' and/or ';includeOptional' to the artifactId (e.g. '--add Workload1;includeRecommended' or '--add Workload2;includeOptional;includeRecommended'). |
57
57
|```--remove <workload or component ID>```*[<workload or component ID> ...]*| Optional: One or more workload or component IDs to remove. |
58
58
|```--all```| Optional: Whether to install all workloads and components for a product. |
59
-
|```--includeRecommended```| Optional: Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --all or --add. |
60
-
|```--includeOptional```| Optional: Includes the optional components for any workloads that are installed, but not the recommended components. The workloads are specified either with --all or --add. |
59
+
|```--allWorkloads```| Optional: Installs all workloads and their required components, no recommended or optional components. |
60
+
|```--includeRecommended```| Optional: Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --allWorkloads or --add. |
61
+
|```--includeOptional```| Optional: Includes the optional components for any workloads that are installed, but not the recommended components. The workloads are specified either with --allWorkloads or --add. |
61
62
|```--quiet, -q```| Optional: Do not display any user interface while performing the installation. |
62
63
|```--passive, -p```| Optional: Display the user interface, but do not request any interaction from the user. |
63
64
|```--norestart```| Optional: If present, commands with --passive or --quiet will not automatically restart the machine (if required). This is ignored if neither --passive nor --quiet are specified. |
@@ -74,7 +75,8 @@ If no command is specified, it will install the product.
74
75
|```--in <path>```| Optional: The URI or path to a response file. |
75
76
|```--addProductLang <language-locale>```| Optional: This defines the language of an artifact (group, workload, or component) that is to be installed. It can appear multiple times on the command line. It is optional for the install and modify commands, ignored for the update, repair and uninstall commands. If not present, the installation will use the machine locale. |
76
77
|```--removeProductLang <language-locale>```| Optional: This defines the language of an artifact (group, workload, or component) that is to be removed. It can appear multiple times on the command line. It is optional for the install and modify commands, ignored for the update, repair and uninstall commands. |
77
-
78
+
|```--wait```| Optional: The process will wait until the install is completed before returning a exit code. This is useful when automating installations where one needs to wait for the install to finish to handle the return code from that install. |
79
+
|```--productKey```| Optional: This defines the product key to use for an installed product. It is composed of 25 alphanumeric characters either in the format 'xxxxx-xxxxx-xxxxx-xxxxx-xxxxx' or 'xxxxxxxxxxxxxxxxxxxxxxxxx'. |
78
80
## List of workload IDs and component IDs
79
81
For a list of workload and component IDs sorted by Visual Studio product, see our [Visual Studio 2017 Workload and Component IDs](https://aka.ms/vs2017componentids) page.
0 commit comments