Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 12th May 2010, 20:22   #1
stustyle
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
stustyle is offline   Reply With Quote
Old 12th May 2010, 21:20   #2
Animaether
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}
Animaether is offline   Reply With Quote
Old 12th May 2010, 21:50   #3
stustyle
Junior Member
 
Join Date: May 2010
Posts: 2
Perfect, thanks!
stustyle is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump