From 0b68fa4d3c77cb41e6e0b5bef8df7eadfcd96575 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 29 Sep 2006 16:15:50 +0000 Subject: [PATCH] skip popping the value and directly use LogicLib for IsRunningX64 the very first LogicLib extension - cool! git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4762 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/x64.nsh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Include/x64.nsh b/Include/x64.nsh index d3ee7623..f3e1df2f 100644 --- a/Include/x64.nsh +++ b/Include/x64.nsh @@ -6,9 +6,7 @@ ; ; IsRunningX64 checks if the installers is running on x64. ; -; ${IsRunningX64} -; Pop $0 -; ${If} $0 != 0 +; ${If} ${RunningX64} ; MessageBox MB_OK "running on x64" ; ${EndIf} ; @@ -24,14 +22,17 @@ !ifndef ___X64__NSH___ !define ___X64__NSH___ -!macro IsRunningX64 +!include LogicLib.nsh +!macro _RunningX64 _a _b _t _f + !insertmacro _LOGICLIB_TEMP System::Call kernel32::GetCurrentProcess()i.s System::Call kernel32::IsWow64Process(is,*i.s) - + Pop $_LOGICLIB_TEMP + !insertmacro _!= $_LOGICLIB_TEMP 0 `${_t}` `${_f}` !macroend -!define IsRunningX64 "!insertmacro IsRunningX64" +!define RunningX64 `"" RunningX64 ""` !macro DisableX64FSRedirection