WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > How to detect Vista64 vs. Vista32?
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Lenge
Junior Member

Registered: Oct 2007
From:

How to detect Vista64 vs. Vista32?

Hello world,

I know that I can datect if my installer is running on Vista with the LogicLib and WinVer includes using

code:
${If} ${IsWinVista}
But what is the "standard" (recommended) way to separate the 32-bit from the 64-bit version?

Quick Link | Report this post to a moderator | IP: Logged

Lenge is offline Old Post 06-15-2008 09:42 PM
Click Here to See the Profile for Lenge Click here to Send Lenge a Private Message Find more posts by Lenge Add Lenge to your buddy list Edit/Delete Message Reply w/Quote
Afrow UK
Moderator

Registered: Nov 2002
From: Shropshire, England

You can use the GetVersion plug-in to detect this.
http://nsis.sf.net/File:GetVersion.zip

Stu

__________________
afrowuk.co.uk

Quick Link | Report this post to a moderator | IP: Logged

Afrow UK is offline Old Post 06-15-2008 10:13 PM
Click Here to See the Profile for Afrow UK Click here to Send Afrow UK a Private Message Click Here to Email Afrow UK Visit Afrow UK's homepage! Find more posts by Afrow UK Add Afrow UK to your buddy list Edit/Delete Message Reply w/Quote
Wizou
Senior Member

Registered: Aug 2007
From: Paris, France

I guess, if you know already that you're under Vista, you could just compare $PROGRAMFILES32 and $PROGRAMFILES64

If they are different, you're under a 64-bits OS

__________________
My NSIS plug-ins: http://wizou.fr

Quick Link | Report this post to a moderator | IP: Logged

Wizou is offline Old Post 06-16-2008 08:50 AM
Click Here to See the Profile for Wizou Click here to Send Wizou a Private Message Visit Wizou's homepage! Find more posts by Wizou Add Wizou to your buddy list Edit/Delete Message Reply w/Quote
kichik
M.I.A.
[NSIS Dev, Mod]

Registered: Oct 2001
From: Jerusalem, Israel

In x64.nsh you have ${If} ${RunningX64}

__________________
NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius

Quick Link | Report this post to a moderator | IP: Logged

kichik is offline Old Post 06-16-2008 05:16 PM
Click Here to See the Profile for kichik Click here to Send kichik a Private Message Visit kichik's homepage! Find more posts by kichik Add kichik to your buddy list Edit/Delete Message Reply w/Quote
nsnb
Member

Registered: Jul 2008
From:

I found this thread while searching for the same - but not for Vista only. Is there a more general way in NSIS to find the bitness of the OS?

If not for any OS, perhaps for Windows XP, Vista and Windows 7?

Thanks.

Quick Link | Report this post to a moderator | IP: Logged

nsnb is offline Old Post 11-03-2009 02:04 PM
Click Here to See the Profile for nsnb Click here to Send nsnb a Private Message Click Here to Email nsnb Find more posts by nsnb Add nsnb to your buddy list Edit/Delete Message Reply w/Quote
MSG
Senior Member

Registered: Oct 2006
From:

kichik's answer applies to all windows versions.

NSIS\Include\x64.nsh

Quick Link | Report this post to a moderator | IP: Logged

MSG is offline Old Post 11-04-2009 07:42 AM
Click Here to See the Profile for MSG Click here to Send MSG a Private Message Find more posts by MSG Add MSG to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 04:39 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > How to detect Vista64 vs. Vista32?
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON