|
|
#1 |
|
Junior Member
Join Date: May 2010
Posts: 2
|
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! Last edited by stustyle; 12th May 2010 at 20:40. Reason: clarity |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2001
Posts: 1,173
|
Please see x64.nsh that comes with NSIS. In short:
${If} ${RunningX64} ; 64bit bits go here ${Else} ; 32bit bits go here ${EndIf} |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2010
Posts: 2
|
Perfect, thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|