Skip to content

Commit 68edaf9

Browse files
Merge pull request #284533 from mayankdaruka-msft/mayankdaruka/vmapps-docs-fix
VMApps Docs: Clarify behavior of 'start /wait' command
2 parents d84c358 + f75bb76 commit 68edaf9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/virtual-machines/vm-applications.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@ Example remove command:
455455
start /wait %windir%\\system32\\msiexec.exe /x $appname /quiet /forcerestart /log ${appname}_uninstall.log
456456
```
457457

458+
Typically, the `start` command would be called within a batch script. If used with the `/wait` parameter, the calling script will be paused until the called process terminates. Once complete, the batch script would check for the `errorlevel` variable set by the `start` command and exit as follows:
459+
460+
```batch
461+
start /wait %windir%\\system32\\msiexec.exe /i myapp /quiet /forcerestart /log myapp_install.log
462+
if %errorlevel% neq 0 exit /b %errorlevel%
463+
...
464+
```
465+
458466
### Zipped files
459467

460468
For .zip or other zipped files, rename and unzip the contents of the application package to the desired destination.

0 commit comments

Comments
 (0)