Sample Batch File Script for Installing and Configuring in Silent Mode
- Last UpdatedJul 01, 2024
- 2 minute read
You can install AVEVA Work Tasks in silent mode using the following sample Batch File script.
If you want to execute installation and configuration commands sequentially, then perform the following:
-
Open a Notepad file and add the following script.
Echo off
REM Script to execute silent AVEVA Work Tasks installation and configuration.
REM Configuration like creation of farm database, Datasource and repository.
REM ...................................................................................................................
REM Below Command to execute AVEVA Work Tasks installer Silently in the default path
REM ...................................................................................................................
echo AVEVA Work Tasks silent installation started......
REM..........................STEP 1 - BPM Installation Silently.........................................................
<Path> AVEVA Work Tasks 2023 SP1.exe /S /v/qn
REM If above command is successful %ERRORLEVEL% will be zero. Non zero number else.
IF %ERRORLEVEL% EQU 0 (
echo AVEVA Work Tasks silent installation completed successfully.
REM The silent farm configuration executable required a configuration xml file. (WWSKBPMConfig.xml)
REM The configuration file will be available in BPM installation "Bin" folder. (WWSKBPMConfig.xml)
REM Get the configuration file from the installation location updated the mandatory nodes with relevant data.
REM After the BPM installer installation is done silently, copy updated "WWSKBPMConfig.xml" AVEVA Work Tasks installation Bin folder.
REM Below Command to copy updated "WWSKBPMConfig.xml" BPM installation Bin folder.
REM ...................STEP 2 - Copy updated configuration file to installation Bin folder..........
Copy /y <Path> WWSKBPMConfig.xml <AVEVA Work Tasks Install path>\Bin
REM Below command to execute silent farm configuration executable.
echo AVEVA Work Tasks silent farm configuration started....
REM ...................STEP 3 - Move to the installation folder and call AVEVAWorkTasksConfigurator.exe ..........
REM cd C:\Program files\AVEVA\Work Tasks\Bin
cd <AVEVA Work Tasks Install path>\Bin AVEVAWorkTasksConfigurator.exe ConfigurationType="ALL"
IF %ERRORLEVEL% EQU 0 (
echo Silent farm configuration completed successfully.
) ELSE (
echo Silent farm configuration failed. Please verify mandatory parameters in "WWSKBPMConfig.xml" and see WWSKLogger for details.
)
) ELSE (
echo AVEVA Work Tasks silent installation failed.
)
REM AVEVA Work Tasks Installation and configuration completed.
-
Enter the appropriate value for <path>.
For example: C:\EXEPath\AVEVA Work Tasks 2023 SP1.exe /S /v/qn
-
Enter the appropriate value for <AVEVA Work Tasks Install path>.
For example: Copy /y C:\ConfigFilePath\WSKBPMConfig.xml
C:\Program files\AVEVA\Work Tasks\\Bin -
Save the file with .bat extension.
-
Open the Command Prompt in the Administrative mode.
-
Type the path where the Batch file is saved, and then press Enter.
-
Type the name of the Batch file, and then press Enter.
The installation and configurations are performed sequentially.
Note:
- You can configure the other parameters for Farm, Data Source, and Repository either
in the Batch file or in the WWSKBPMConfig.xml file.
- If the AVEVA Work Tasks installation is successful, then the value for %ERRORLEVEL% is zero; else, the value is any number except zero.