Where Customization Begins 

  • How to detect operating system x86/x64

 #16350  by acen2006
 30 Apr 2011, 20:03
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 allIF EXIST %WINDIR%\SysWOW64 GOTO x64
IF NOT EXIST %WINDIR%\SysWOW64 GOTO x86

:x64
start /wait x64\Setup.exe /VERYSILENT /NORESTART
GOTO Clean

:x86
start /wait x86\Setup.exe /VERYSILENT /NORESTART
GOTO Clean

:Clean
RD "%Temp%\afolder" /S /Q
RD "%Temp%\ztmp" /S /Q
Exit
 #16352  by Angel
 30 Apr 2011, 20:07
We all know better Acen. Is eXPerience still up to stuff?

This script was probably around before the kid was born.
 #16356  by Neuropass
 30 Apr 2011, 23:24
I knew about that little trick. I had opened a topic about it while back on his forum. It should be still there.

Damn noak still stealing eh?