Skip to content

Commit d411a9c

Browse files
Merge pull request #13647 from anandmeg/uuf-360403
Address user feedback
2 parents ae294bf + cba49ec commit d411a9c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/install/command-line-parameter-examples.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,26 @@ For lists of the workloads and components that you can install by using the comm
5050
\\layoutserver\share\path\vs_enterprise.exe update --wait --passive --norestart --installPath "C:\installPathVS"
5151
```
5252

53-
Alternatively, you can also update your Visual Studio instance in one step by using the installer on the client. [Standard users, if they've been granted appropriate permissions](https://aka.ms/vs/setup/policies), can programmatically execute the update command using the installer, but they aren't allowed to use the `--passive` or `--quiet` switch. Note that you can't initiate the installer programmatically from the same directory that the installer resides in.
53+
Alternatively, you can also update your Visual Studio instance in one step by using the installer on the client. Note that you can't initiate the installer programmatically from the same directory that the installer resides in.
5454

5555
```shell
5656
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe" update --passive --norestart --installPath "C:\installPathVS"
5757
```
5858

59+
[Standard users, if they've been granted appropriate permissions](https://aka.ms/vs/setup/policies), can programmatically execute the update command using the installer, but they aren't allowed to use the `--passive` or `--quiet` switch.
60+
5961
## Using --wait
6062

6163
* Use `--wait` in batch files or scripts to wait for the initial command to complete before the next command is executed. For batch files, an `%ERRORLEVEL%` environment variable contains 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. Some command utilities require other parameters to wait for completion and to get the installer's return value.
6264

63-
The `--wait` parameter is only supported by the bootstrapper.
65+
The `--wait` parameter is only supported by the bootstrapper.
6466

6567
```shell
6668
start /wait vs_professional.exe --installPath "C:\VS" --passive --wait > nul
6769
echo %errorlevel%
6870
```
6971

70-
The following command is an example of using `--wait` with the PowerShell script command `Start-Process`:
72+
The following command is an example of using `--wait` with the PowerShell script command `Start-Process`:
7173

7274
```powershell
7375
$process = Start-Process -FilePath vs_enterprise.exe -ArgumentList "--installPath", "C:\VS", "--passive", "--wait" -Wait -PassThru

0 commit comments

Comments
 (0)