Skip to content

Commit b376374

Browse files
authored
Merge pull request #9473 from MicrosoftDocs/main638261823537001967sync_temp
Repo sync for protected CLA branch
2 parents 0c231ff + 0a3ef3f commit b376374

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

docs/install/import-export-installation-configurations.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Import or export installation configurations
33
titleSuffix: ''
44
description: Learn how to export your installation configuration to a .vsconfig file to share with others, and how to import it to clone.
5-
ms.date: 2/21/2023
5+
ms.date: 7/28/2023
66
ms.topic: how-to
77
helpviewer_keywords:
88
- import installation configuration
@@ -57,9 +57,22 @@ When you're ready to import an installation configuration file, follow these ste
5757

5858
1. Make sure you've got the workloads and components that you want, and then choose **Close**.
5959

60+
## Use a configuration file to add components to an existing installation
61+
62+
Use `--config` to modify an existing installation to add or remove components. This example uses the installer already on the client machine.
63+
64+
```shell
65+
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\VS" --config "C:\myconfig.vsconfig"
66+
```
67+
68+
> [!NOTE]
69+
> To add or remove components to an existing installation by using a config file (*.vsconfig), you'll need to **modify** your installed product and not update. **Update** just updates the components to the latest version; it doesn't add or remove new ones.
70+
71+
When you install Visual Studio programmatically or by using a command prompt, you can use various command-line parameters to control or customize the installation. To learn more, see [Install Visual Studio from the command line](use-command-line-parameters-to-install-visual-studio.md).
72+
6073
## Use a configuration file to initialize the contents of a layout
6174

62-
Using the correct bootstrapper that corresponds to the version and edition of Visual Studio that you want, open an administrator command prompt and run the following command.
75+
Using the correct bootstrapper that corresponds to the version and edition of Visual Studio that you want, open an administrator command prompt and run the following command to use `-config` to configure the contents of a layout:
6376

6477
```shell
6578
vs_enterprise.exe --layout c:\localVSlayout --config c:\myconfig.vsconfig --lang en-US

docs/install/modify-visual-studio.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Modify Visual Studio workloads, components, & language packs"
33
titleSuffix: ''
44
description: Learn how to modify Visual Studio, step-by-step.
5-
ms.date: 5/16/2023
5+
ms.date: 7/28/2023
66
ms.topic: how-to
77
ms.custom: vs-acquisition
88
helpviewer_keywords:
@@ -133,6 +133,8 @@ Workloads contain the components you need for the programming language or platfo
133133

134134
1. After the modified workloads or components are installed, choose **Launch** from the Visual Studio Installer to open Visual Studio 2022.
135135

136+
You can also use a [configuration file to modify an existing installation to add or remove components](import-export-installation-configurations.md#use-a-configuration-file-to-add-components-to-an-existing-installation). Learn more about using [installation configuration files to configure Visual Studio](import-export-installation-configurations.md).
137+
136138
::: moniker-end
137139

138140
> [!TIP]

docs/install/using-visual-studio-vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Using Visual Studio on an Azure Virtual Machine
33
titleSuffix: ''
44
description: Learn how to use Visual Studio on an Azure Virtual Machine
5-
ms.date: 07/23/2022
5+
ms.date: 07/26/2023
66
ms.topic: conceptual
77
helpviewer_keywords:
88
- azure services

0 commit comments

Comments
 (0)