Creating a batch file
To install or uninstall the software remotely on numerous computers, e.g. in a corporate network, it is recommended to create a batch file with appropriate commands. To do so, proceed as follows:
- Go to the Start menu and open the Windows "Editor" app.
- In the Windows "Editor" app, enter the desired commands. Available commands and parameters can be found in chapter Installation via the Command Prompt.
- Click [File] > [Save as].
- The "Save as" dialog window opens.
- In the "Save as" dialog window, navigate to the location where you would like to save the batch file.
- In the "File name" field in the "Save as" dialog window, enter a name for the batch file and the ending ".bat" (e.g. SDC_Install.bat).
- Click [Save].
- A batch file is created at the desired location.
Example of the contents of a batch file for installing the software:
File install.bat
start /wait msiexec /i
"C:\Install\SmartDataCollector-Setup-X.X.X.msi"
LICENSE="ABCDE-12345-EDCBA-54321-1A2B3-4D5"
/quiet /norestart /qn /passive
Example of the contents of a batch file for simultaneously installing the software and the DriveRadar® General Library (when the software is started for the first time, library packages are loaded from the preset directory and then deleted there):
File installBib.bat
msiexec /i "C:\Install\SmartDataCollector-Setup-X.X.X.msi"
LICENSE="ABCDE-12345-EDCBA-54321-1A2B3-4D5"
/quiet /norestart /qn /passive
xcopy /s /q /y *.sdclib C:\ProgramData\SEW\SmartDataCollector\preset
Example of the contents of a batch file for uninstalling the software:
File uninstall.bat
msiexec.exe /x "C:\install\SmartDataCollector-Setup-X.X.X.msi"
/quiet /qn /norestart /passive PURGE=1
timeout /T 10
rd /s /q C:\ProgramData\SEW\SmartDataCollector
timeout /T 10
shutdown -r -t 1 -f