Archive: How can I tell if I'm using a 32 or 64 bit machine?


How can I tell if I'm using a 32 or 64 bit machine?
I am writing an installation script and if the computer's OS is 32 bit then I want to do some things, if the OS is 64 bit, I want the script to do different things. Is there a way that I can have NSIS tell me if the OS is 32 or 64 bit either onInit or somewhere else?

Thanks!


Please see x64.nsh that comes with NSIS. In short:

${If} ${RunningX64}
; 64bit bits go here
${Else}
; 32bit bits go here
${EndIf}


Perfect, thanks!