Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dda629d

Browse files
fuixx217rwestMSFT
authored andcommitted
Add examples to SSMS installation articles
1 parent 0f32514 commit dda629d

3 files changed

Lines changed: 107 additions & 33 deletions

File tree

ssms/install/command-line-examples.md

Lines changed: 85 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: Examples of using command-line parameters to install SQL Server Man
44
author: erinstellato-ms
55
ms.author: erinstellato
66
ms.reviewer: randolphwest, maghan, mbarickman
7-
ms.date: 06/25/2025
7+
ms.date: 09/25/2025
88
ms.service: sql-server-management-studio
99
ms.topic: concept-article
1010
ms.collection:
1111
- data-tools
1212
---
13-
# Command-Line parameter examples for SQL Server Management Studio installation
13+
# Command-line parameter examples for SQL Server Management Studio installation
1414

1515
[!INCLUDE [sql-asdb-asdbmi-asa](../includes/applies-to-version/sql-asdb-asdbmi-asa.md)]
1616

@@ -24,70 +24,130 @@ To execute commands in a non-interactive manner, you can use `--passive` or `--q
2424

2525
For lists of the workloads and components that you can install by using the command line, see [Workload and component IDs for SQL Server Management Studio](workload-component-ids.md).
2626

27-
## Install using --installPath and --add alongside the bootstrapper
27+
## Install using `--installPath` and `--add` alongside the bootstrapper
2828

2929
Install a minimal instance of SSMS, with no interactive prompts, but progress displayed:
3030

31-
```cmd
32-
vs_ssms.exe --installPath C:\SSMS21 --passive --norestart
31+
```console
32+
vs_SSMS.exe --installPath C:\SSMS21 --passive --norestart
3333
```
3434

3535
Install SSMS silently, with the Italian language pack, returning only when the product is installed:
3636

37-
```cmd
38-
vs_ssms.exe --installPath C:\SSMS21 --addProductLang it-it --quiet --wait
37+
```console
38+
vs_SSMS.exe --installPath C:\SSMS21 --addProductLang it-it --quiet --wait
3939
```
4040

4141
## Install workloads
4242

4343
Install SSMS with Git integration, with the user interface displayed in a non-interactive manner:
4444

45-
```cmd
46-
vs_ssms.exe --add Microsoft.SqlServer.Workload.SSMS.CodeTools --includeRecommended --passive
45+
```console
46+
vs_SSMS.exe --add Microsoft.SqlServer.Workload.SSMS.CodeTools --includeRecommended --passive
4747
```
4848

4949
Install SSMS with all components in the Business Intelligence workload, with the user interface displayed in a non-interactive manner:
5050

51-
```cmd
52-
vs_ssms.exe --add Microsoft.SqlServer.Workload.SSMS.BI --includeRecommended --passive --norestart
51+
```console
52+
vs_SSMS.exe --add Microsoft.SqlServer.Workload.SSMS.BI --includeRecommended --passive --norestart
5353
```
5454

5555
## Update
5656

57-
Update an SSMS installation via the command line with progress displayed and no interactive prompts. You can't initiate the installer programmatically from the same directory that the installer resides in.
57+
Update an SSMS installation via the command line with progress displayed and no interactive prompts. You can't initiate the installer programmatically from the same folder that the installer resides in.
5858

59-
```cmd
60-
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" update --passive --norestart --installPath "C:\SSMS21"
59+
```console
60+
vs_SSMS.exe update --passive --norestart --installPath "C:\SSMS21"
6161
```
6262

63-
## Use --layout to create a network layout or local cache
63+
Update an SSMS installation via the command line quietly:
64+
65+
```console
66+
vs_SSMS.exe update --noWeb --quiet --wait --norestart
67+
```
68+
69+
## Use `--layout` to create a network layout or local cache
6470

6571
Create a layout that includes SSMS and Copilot in SSMS, and the English language pack:
6672

67-
```cmd
68-
vs_ssms.exe --layout "C:\SSMS_Layout" --lang en-US --add Microsoft.SqlServer.Workload.SSMS.AI --includeRecommended
73+
```console
74+
vs_SSMS.exe --layout C:\SSMS_Layout --lang en-US --add Microsoft.SqlServer.Workload.SSMS.AI --includeRecommended
75+
```
76+
77+
Create a layout that includes SSMS and Integration Services in SSMS, and the English language pack:
78+
79+
```console
80+
vs_SSMS.exe --layout C:\SSMS_Layout --lang en-US --add Microsoft.SSMS.Component.IS --includeRecommended
6981
```
7082

7183
Create a layout with two workloads and one optional component in three languages:
7284

73-
```cmd
74-
vs_ssms.exe --layout "C:\SSMS_Layout" --lang en-US --add Microsoft.SqlServer.Workload.SSMS.HybridAndMigration --add Microsoft.SqlServer.Workload.SSMS.CodeTools --add Microsoft.Component.HelpViewer --lang en-US de-DE ja-JP
85+
```console
86+
vs_SSMS.exe --layout C:\SSMS_Layout --lang en-US --add Microsoft.SqlServer.Workload.SSMS.HybridAndMigration --add Microsoft.SqlServer.Workload.SSMS.CodeTools --add Microsoft.Component.HelpViewer --lang en-US de-DE ja-JP
87+
```
88+
89+
To create a complete local layout for SQL Server Management Studio and all languages, run:
90+
91+
```console
92+
vs_SSMS.exe --layout C:\SSMS_Layout --all
93+
```
94+
95+
To create a local layout for SQL Server Management Studio that limits the components to only the Integration Services and Reporting Services component, run:
96+
97+
```console
98+
vs_SSMS.exe --layout C:\SSMS_Layout --add Microsoft.SSMS.Component.IS --add Microsoft.SSMS.Component.RS
99+
```
100+
101+
To create a local layout for SQL Server Management Studio that limits the components to only the offline help content, run:
102+
103+
```console
104+
vs_SSMS.exe --layout C:\SSMS_Layout --add Microsoft.Component.HelpViewer
75105
```
76106

77107
## Install a layout
78108

79-
Once a layout is created, it can be copied to an offline machine for installation. If the layout was created using:
109+
Once a layout is created, it can be copied to an offline machine for installation. To install specific components, those components must be included in the offline layout already. For more information, see the [complete local layout](#use---layout-to-create-a-network-layout-or-local-cache) example.
110+
111+
Make sure you are in the folder where the layout was saved. In these examples, it's `C:\SSMS_Layout`.
80112

81-
```cmd
82-
vs_ssms.exe --layout "C:\SSMS_Layout" --lang en-US --add Microsoft.SqlServer.Workload.SSMS.AI --includeRecommended
113+
```console
114+
C:\SSMS_Layout\vs_SSMS.exe --lang en-US --add Microsoft.SqlServer.Workload.SSMS.AI --includeRecommended
83115
```
84116

85-
Install SSMS from the layout using:
117+
To install SSMS with Integration Services support from the layout, run:
86118

87-
```cmd
88-
C:\SSMS_Layout\vs_SSMS.exe --noWeb --noUpdateInstaller --add Microsoft.SqlServer.Workload.SSMS.AI --includeRecommended --passive
119+
```console
120+
C:\SSMS_Layout\vs_SSMS.exe --noWeb --noUpdateInstaller --add Microsoft.SSMS.Component.IS --includeRecommended --passive
89121
```
90122

123+
To install SSMS with Integration Services and Reporting Services support, run:
124+
125+
```console
126+
C:\SSMS_Layout\vs_SSMS.exe --noWeb --noUpdateInstaller --add Microsoft.SSMS.Component.IS --add Microsoft.SSMS.Component.RS --includeRecommended --passive
127+
```
128+
129+
## Modify an existing installation
130+
131+
To update SSMS to include other components, create a layout with your desired components, using the previous examples.
132+
133+
1. Change to the layout folder.
134+
135+
```console
136+
cd C:\SSMS_Layout
137+
```
138+
139+
1. Update to the latest released version.
140+
141+
```console
142+
vs_SSMS.exe update --noWeb --quiet --wait --norestart
143+
```
144+
145+
1. Modify SSMS to add Analysis Services, Integration Services, and Reporting Services components, using the offline layout that includes these components, run:
146+
147+
```console
148+
vs_SSMS.exe modify --noWeb --productID Microsoft.VisualStudio.Product.SSMS --channelID SSMS.21.SSMS.Release --add Microsoft.SSMS.Component.AS --add Microsoft.SSMS.Component.IS --add Microsoft.SSMS.Component.RS --quiet --norestart
149+
```
150+
91151
## Related content
92152

93153
- [Create an offline installation of SQL Server Management Studio](create-offline.md)

ssms/install/create-offline.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Create an offline installation package to install SQL Server Manage
44
author: erinstellato-ms
55
ms.author: erinstellato
66
ms.reviewer: randolphwest, maghan, mbarickman
7-
ms.date: 07/15/2025
7+
ms.date: 09/25/2025
88
ms.service: sql-server-management-studio
99
ms.topic: concept-article
1010
ms.collection:
@@ -20,17 +20,29 @@ ms.collection:
2020

2121
### Step 1 - Download the SSMS bootstrapper
2222

23-
[Download the correct bootstrapper](install.md) for the version of SSMS you want, and copy it into the directory you want to use as the source location for your local layout. The bootstrapper is the executable you use to create, update, or modify your local layout. You must have an internet connection to complete this step.
23+
[Download the correct bootstrapper](install.md) for the version of SSMS you want, and copy it into the folder you want to use as the source location for your local layout. The bootstrapper is the executable you use to create, update, or modify your local layout. You must have an internet connection to complete this step.
2424

2525
### Step 2 - Create a local layout
2626

27-
Open a command prompt with administrator privileges, navigate to the directory where you downloaded the bootstrapper, and use the [bootstrapper's parameters](command-line-parameters.md#layout-command-and-command-line-parameters) to create your local layout. You must have an internet connection to complete this step.
27+
Open a command prompt with administrator privileges, navigate to the folder where you downloaded the bootstrapper, and use the [bootstrapper's parameters](command-line-parameters.md#layout-command-and-command-line-parameters) to create your local layout. You must have an internet connection to complete this step.
2828

2929
You can install a language other than English by changing `en-US` to a locale from the [list of language locales](command-line-parameters.md#list-of-language-locales), and you can use the [list of component IDs](workload-component-ids.md) to further customize your local layout.
3030

31-
To create a complete local layout for SQL Server Management Studio, run:
31+
To create a complete local layout for SQL Server Management Studio and all languages, run:
3232

33-
```cmd
33+
```console
34+
vs_SSMS.exe --layout C:\SSMS_Layout --all
35+
```
36+
37+
To create a local layout for SQL Server Management Studio that limits the components to only the Integration Services and Reporting Services component, run:
38+
39+
```console
40+
vs_SSMS.exe --layout C:\SSMS_Layout --add Microsoft.SSMS.Component.IS --add Microsoft.SSMS.Component.RS
41+
```
42+
43+
To create a local layout for SQL Server Management Studio that limits the components to only the offline help content, run:
44+
45+
```console
3446
vs_SSMS.exe --layout C:\SSMS_Layout --add Microsoft.Component.HelpViewer
3547
```
3648

@@ -45,13 +57,13 @@ When you install SSMS from a local layout, the Visual Studio Installer uses the
4557

4658
For example, if you created a local installation layout using the command from step 2, then use the following command to run the installation and prevent the client machine from accessing the internet:
4759

48-
```cmd
60+
```console
4961
C:\SSMS_Layout\vs_SSMS.exe --noWeb --add Microsoft.Component.HelpViewer
5062
```
5163

5264
## Validate a certificate for offline installations
5365

54-
Installing SSMS on an offline machine can require a valid certificate. If you try to install SSMS on an offline machine using a layout, and the installer exits with no exception, it might be due to an invalid certificate. Go to the `%TEMP%` directory and open the most recent bootstrapper file named `dd_bootstrapper_yyyyMMddHHmmss.log`. The following messages indicate the installation is failing because of an invalid certificate:
66+
Installing SSMS on an offline machine can require a valid certificate. If you try to install SSMS on an offline machine using a layout, and the installer exits with no exception, it might be due to an invalid certificate. Go to the `%TEMP%` folder and open the most recent bootstrapper file named `dd_bootstrapper_yyyyMMddHHmmss.log`. The following messages indicate the installation is failing because of an invalid certificate:
5567

5668
```output
5769
Certificate is invalid: <YourSSMSFolder>\vs_installer.opc

ssms/install/install.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to use the Visual Studio installer to install SQL Server
44
author: erinstellato-ms
55
ms.author: erinstellato
66
ms.reviewer: randolphwest
7-
ms.date: 08/21/2025
7+
ms.date: 09/25/2025
88
ms.service: sql-server-management-studio
99
ms.topic: how-to
1010
ms.collection:
@@ -104,6 +104,8 @@ vs_SSMS.exe --locale en-US
104104

105105
The installer remembers this setting when you run it again. The installer supports these language locales: `zh-cn`, `zh-tw`, `cs-cz`, `en-us`, `es-es`, `fr-fr`, `de-de`, `it-it`, `ja-jp`, `ko-kr`, `pl-pl`, `pt-br`, `ru-ru`, and `tr-tr`.
106106

107+
For more command-line examples, see [Command-line parameter examples](command-line-examples.md).
108+
107109
## Step 7 - Select the installation location (optional)
108110

109111
You can reduce the installation footprint of SSMS on your system drive. For more information, see [Select installation locations for SQL Server Management Studio](select-install-location.md).

0 commit comments

Comments
 (0)