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
This commit is contained in:
kichik 2008-11-20 22:37:30 +00:00
parent 39b7d36352
commit 76f8534004

View file

@ -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