If it's a straight batch file then you could add the following to make a conditional jump if the installed OS is
not 64-bit:
CODE
if "%programfiles(x86)%XXX"=="XXX" goto 32BIT
Follow this line with your 64-bit specific parts, and where the 32-bit part starts have the following label:
CODE
:32BIT
The following is a complete batch file which just echos to the screen which platform it believes is present, as an example:
QUOTE
@echo off
if "%programfiles(x86)%XXX"=="XXX" goto 32BIT
echo 64-bit Windows installed
goto END
:32BIT
echo 32-bit Windows installed
:END
Edit:
An alternative could be to check the environment variable PROCESSOR_ARCHITECTURE, e.g.
CODE
if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT
(Yes, on Intel Core2 Duo CPUs this variable is still reported as AMD64.)