Silently Install an Update
- Last UpdatedFeb 05, 2024
- 2 minute read
To silently install a monthly update, run the following command from the command line (assuming the update executable is in the current directory):
"Plant SCADA 2023 R2 Update <n>.exe" -sp/silent
Replace <n> with the update number and date to match the name of the update executable.
This command will return immediately without waiting for the update to finish installing. To wait for the update to install (for example, when installing from a batch file), use the built-in start command:
start /w "" "Plant SCADA 2023 R2 Update <n>.exe" -sp/silent
Note: The empty "" are important to tell the start command to interpret the quoted update name as the executable to run (instead of the window title). The quotes are required on the update name as it contains spaces.
Any required prerequisites (for example, Platform Common Services) will be installed.
Any running Plant SCADA services will be automatically stopped by the update and restarted again when complete. Any other running Plant SCADA programs, such as Plant SCADA Studio or Plant SCADA Runtime in non-service mode, will not be stopped. If this occurs, the update will not be successful.
Return Values
The update executable will return 0 to indicate the update was installed successfully.
If 3010 is returned, it indicates that the update was installed successfully but a reboot is required to complete installation.
Any another non-zero value will indicate an error (see the table below).
Use the %ERRORLEVEL% environment variable to check the return code. The start command must be used to retrieve the return code properly.
|
Return value |
Description |
|
1603 |
• One or more non-service Plant SCADA processes are running. • An error occurred launching Windows Installer or setup.exe to install a prerequisite or patch file. |
|
1605 |
The version of Plant SCADA this update is intended for is not installed. |
|
1638 |
A newer monthly update is already installed. |
|
Other |
The error code returned by Windows Installer or setup.exe if an error occurs when installing a prerequisite or patch file. |