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/automated-installation-with-response-file.md
+249Lines changed: 249 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,252 @@ translation.priority.mt:
31
31
- "pt-br"
32
32
- "tr-tr"
33
33
---
34
+
# How to define settings in a response file
35
+
Admins deploying VS can also specify a response file using the ```--in <response file>``` command.
36
+
37
+
Response files are JSON files whose contents mirror the command line arguments. In general, if a command line parameter takes no arguments (e.g. ```--quiet```, ```--passive```, etc.), the value in the response file should be true/false. If it takes an argument (e.g. ```--installPath <dir>```), the value in the response file should be a string. If it takes an argument and can appear on the command line more than once (e.g. ```--add <id>```), it should be an array of strings.
38
+
39
+
Command line parameters override settings from the response file, except in the case of multi-instance parameters (e.g. --add). Multi-instance parameters are merged with settings from the response file.
40
+
41
+
42
+
### Offline layout repsonse files
43
+
44
+
If you created an offline layout, a response.json file was created in the layout.
45
+
46
+
Admins who create a layout can modify the response.json file in the layout to control the default settings that their users will see when installing VS from the layout. For example, if the admin wants some specific workloads and components selected to be installed by default, they can configure the response.json file to add those.
47
+
48
+
When VS setup is run from a layout folder, it will automatically use the response file in the layout folder. It is not required to use the ```--in``` option.
49
+
50
+
You can update the response.json file that is created in an offline layout folder to define default setting for users installing from this layout. However, be sure to leave the existing properties that were defined when the layout was created.
51
+
52
+
The base response.json file in a layout will look similar to this but with value for the product and channel you are installing:
This example will install Visual Studio Enterprise with all workloads and components for all localized languages. You can use this as a template. Just remove the workloads and components you don't want installed in your copy of the response file.<br>
Copy file name to clipboardExpand all lines: docs/install/automatically-apply-product-keys-when-deploying-visual-studio.md
-14Lines changed: 0 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -32,13 +32,6 @@ translation.priority.mt:
32
32
# Automatically apply product keys when deploying Visual Studio
33
33
You can apply your product key programmatically as part of a script used to automate the deployment of Visual Studio. Product keys can be set on a device programmatically during installation of Visual Studio or after an installation completed.
34
34
35
-
## Apply the license during installation
36
-
Use the `--productKey` parameter to apply a product key during Visual Studio’s setup process. This setup parameter can be used with the `--quiet parameter` to install Visual Studio in an already licensed state for an end user. To use the `--productKey` parameter, open up a command prompt. Run the setup program (e.g. vs_enterprise.exe or vs_professional.exe) and set the `--productKey` parameter with a product key (25 characters) with or without the dashes:
37
-
38
-
This is an example command for installing Visual Studio 2015 Enterprise with product key AAAAABBBBBCCCCCDDDDDEEEEEEE:
39
-
40
-
`vs_enterprise.exe [any other setup parameters] --productKey AAAAABBBBBCCCCCDDDDDDEEEEEE`
41
-
42
35
## Apply the license after installation
43
36
You can activate an installed version of Visual Studio with a product key by using the storePID.exe utility on the target machines in silent mode. StorePID.exe is a utility program that installs with Visual Studio at **\<drive>:\\\Program Files (x86)\Microsoft Visual Studio 15.0\Common7\IDE\StorePID.exe**.
44
37
@@ -57,13 +50,6 @@ You can apply your product key programmatically as part of a script used to auto
57
50
|Visual Studio Enterprise 2017|08860|
58
51
|Visual Studio Professional 2017|08862|
59
52
|Visual Studio Test Professional 2017|08866|
60
-
|Visual Studio Enterprise 2015|07060|
61
-
|Visual Studio Professional 2015|07062|
62
-
|Visual Studio Test Professional 2015|07066|
63
-
|Visual Studio Ultimate 2013|06181|
64
-
|Visual Studio Premium 2013|06191|
65
-
|Visual Studio Professional 2013|06177|
66
-
|Visual Studio Test Professional 2013|06194|
67
53
68
54
If StorePID.exe successfully applied the product key, it will return 0. If it encounters errors, it will return a number ranging from 1 to 6.
> The `--wait` parameter is designed for use in a batch file. In a batch file, execution of the next command will not continue until the installation has completed. The `%ERRORLEVEL%` environment variable will contain the return value of the command, as documented in the [Use command-line parameters to install Visual Studio](use-command-line-parameters-to-install-visual-studio.md) page.
58
58
59
+
* Download the Visual Studio core editor (the most minimal Visual Studio configuration). Only include the English language pack:
60
+
```cmd
61
+
vs_community.exe --layout C:\VS2017
62
+
--lang en-US ^
63
+
--add Microsoft.VisualStudio.Workload.CoreEditor
64
+
```
65
+
59
66
* Download the .NET desktop and .NET web workloads along with all recommended components and the GitHub extension. Only include the English language pack:
The Enterprise edition contains additional recommended components beyond those included here. See [Visual Studio Enterprise 2017 component directory](workload-component-id-vs-enterprise.md) for a listing of all recommended components available in Visual Studio Enterprise.
78
-
79
76
* Start an interactive installation of all workloads and components that are available in the Visual Studio 2017 Enterprise edition:
0 commit comments