From 76f8534004686c6d7760cdf548d16925faaf732d Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 20 Nov 2008 22:37:30 +0000 Subject: [PATCH] fake functions so version detection code isn't massively duplicated git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5777 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/WinVer.nsh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Include/WinVer.nsh b/Include/WinVer.nsh index 0ecb605e..ae7dfdbb 100644 --- a/Include/WinVer.nsh +++ b/Include/WinVer.nsh @@ -100,7 +100,7 @@ Pop $_LOGICLIB_TEMP !macroend -!macro __ParseWinVer +!macro __ParseWinVer_ !insertmacro __GetWinVer Push $0 IntOp $0 $_LOGICLIB_TEMP & 0xff @@ -111,6 +111,18 @@ Pop $0 !macroend +!macro __ParseWinVer + Call :.__ParseWinVer + !ifndef __ParseWinVer_DEFINED + Goto __ParseWinVer_DONE + !define __ParseWinVer_DEFINED + .__ParseWinVer: + !insertmacro __ParseWinVer_ + Return + __ParseWinVer_DONE: + !endif +!macroend + !macro _IsNT _a _b _t _f !insertmacro __GetWinVer IntOp $_LOGICLIB_TEMP $_LOGICLIB_TEMP & 0x80000000 @@ -157,7 +169,7 @@ !insertmacro __WinVer_DefineOSTests AtMost -!macro __GetWinServicePack +!macro __GetWinServicePack_ !insertmacro _LOGICLIB_TEMP Push $0 @@ -208,6 +220,18 @@ Label_WinVer_ServicePack_End_${LOGICLIB_COUNTER}: !macroend +!macro __GetWinServicePack + Call :.__GetWinServicePack + !ifndef __GetWinServicePack_DEFINED + Goto __GetWinServicePack_DONE + !define __GetWinServicePack_DEFINED + .__GetWinServicePack: + !insertmacro __GetWinServicePack_ + Return + __GetWinServicePack_DONE: + !endif +!macroend + !define AtLeastServicePack `"" AtLeastServicePack` !macro _AtLeastServicePack _a _b _t _f !insertmacro __GetWinServicePack