
This is what I have thus far
@ECHO OFF & CLS
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
TITLE Installation of Caterpillar-Gas Engine Rating Pro-v4.0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Purpose: Caterpillar-Gas Engine Rating Pro-v4.0
:: Version: 1.2
:: Author: Norbert Saska
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Set script parent directory:
SET _ScriptDir=%~dp0
SET _ScriptDir=%_ScriptDir:~0,-1%
:: Run OS architecture check:
IF DEFINED PROGRAMFILES(X86) (
SET _OSArch=x64
) ELSE (
SET _OSArch=x86
)
:: Display status message:
ECHO.
ECHO Installing GERP...
:: Run commands:
START "Install" /WAIT "%_ScriptDir%\SRC\pd_core_160.exe" /QUIET /NORESTART
:: Display return code and set exit code:
ECHO. & ECHO Return Code: %ERRORLEVEL% & SET "_EXITCODE=%ERRORLEVEL%"
:: Display completion notice:
ECHO.
ECHO Done!
:: Delay for processing:
PING 127.0.0.1 -n 3 > NUL
:: Pause to view results:
:: ECHO.
:: PAUSE
EXIT %_EXITCODE%