Lenge
15th June 2008 22:42 UTC
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
15th June 2008 23:13 UTC
You can use the GetVersion plug-in to detect this.
http://nsis.sf.net/File:GetVersion.zip
Stu
Wizou
16th June 2008 09:50 UTC
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
kichik
16th June 2008 18:16 UTC
In x64.nsh you have ${If} ${RunningX64}
nsnb
3rd November 2009 14:04 UTC
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.
MSG
4th November 2009 07:42 UTC
kichik's answer applies to all windows versions.
NSIS\Include\x64.nsh