Skip to content
⌘ NSIS Forum Archive

How to detect Vista64 vs. Vista32?

6 posts

Lenge#

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
${If} ${IsWinVista}
But what is the "standard" (recommended) way to separate the 32-bit from the 64-bit version?
Afrow UK#
You can use the GetVersion plug-in to detect this.


Stu
Wizou#
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
nsnb#
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.