Here is an example batch file which is used to detect operating system architecture ie x86 or x64. Credit for this method should goto eXPerience. Please dont be fooled into thinking that nOak come up with this idea.
Code: Select all
IF EXIST %WINDIR%\SysWOW64 GOTO x64
IF NOT EXIST %WINDIR%\SysWOW64 GOTO x86
start /wait x64\Setup.exe /VERYSILENT /NORESTART
start /wait x86\Setup.exe /VERYSILENT /NORESTART
RD "%Temp%\afolder" /S /Q
RD "%Temp%\ztmp" /S /Q