Skip to content

Commit

Permalink
Merge pull request #9473 from MicrosoftDocs/main638261823537001967syn…
Browse files Browse the repository at this point in the history
…c_temp

Repo sync for protected CLA branch
  • Loading branch information
Court72 authored Jul 31, 2023
2 parents 0c231ff + 0a3ef3f commit b376374
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
17 changes: 15 additions & 2 deletions docs/install/import-export-installation-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Import or export installation configurations
titleSuffix: ''
description: Learn how to export your installation configuration to a .vsconfig file to share with others, and how to import it to clone.
ms.date: 2/21/2023
ms.date: 7/28/2023
ms.topic: how-to
helpviewer_keywords:
- import installation configuration
Expand Down Expand Up @@ -57,9 +57,22 @@ When you're ready to import an installation configuration file, follow these ste

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

## Use a configuration file to add components to an existing installation

Use `--config` to modify an existing installation to add or remove components. This example uses the installer already on the client machine.

```shell
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" modify --installPath "C:\VS" --config "C:\myconfig.vsconfig"
```

> [!NOTE]
> 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.
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).

## Use a configuration file to initialize the contents of a layout

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.
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:

```shell
vs_enterprise.exe --layout c:\localVSlayout --config c:\myconfig.vsconfig --lang en-US
Expand Down
4 changes: 3 additions & 1 deletion docs/install/modify-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Modify Visual Studio workloads, components, & language packs"
titleSuffix: ''
description: Learn how to modify Visual Studio, step-by-step.
ms.date: 5/16/2023
ms.date: 7/28/2023
ms.topic: how-to
ms.custom: vs-acquisition
helpviewer_keywords:
Expand Down Expand Up @@ -133,6 +133,8 @@ Workloads contain the components you need for the programming language or platfo

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

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).

::: moniker-end

> [!TIP]
Expand Down
2 changes: 1 addition & 1 deletion docs/install/using-visual-studio-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Using Visual Studio on an Azure Virtual Machine
titleSuffix: ''
description: Learn how to use Visual Studio on an Azure Virtual Machine
ms.date: 07/23/2022
ms.date: 07/26/2023
ms.topic: conceptual
helpviewer_keywords:
- azure services
Expand Down

0 comments on commit b376374

Please sign in to comment.