Added WinVer AtLeastBuild and AtMostBuild
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7056 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
fa85ddb775
commit
0ebf72824d
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
!include nsDialogs.nsh
|
!include nsDialogs.nsh
|
||||||
!include LogicLib.nsh
|
!include LogicLib.nsh
|
||||||
!include WinCore.nsh ; MAKELONG
|
!include WinCore.nsh ; MAKELONG
|
||||||
|
|
|
@ -18,6 +18,8 @@
|
||||||
; AtLeastWin<version> checks if the installer is running on Windows version at least as specified.
|
; AtLeastWin<version> checks if the installer is running on Windows version at least as specified.
|
||||||
; IsWin<version> checks if the installer is running on Windows version exactly as specified.
|
; IsWin<version> checks if the installer is running on Windows version exactly as specified.
|
||||||
; AtMostWin<version> checks if the installer is running on Windows version at most as specified.
|
; AtMostWin<version> checks if the installer is running on Windows version at most as specified.
|
||||||
|
; AtLeastBuild <number> checks if the installer is running on a Windows version with a minimum build number.
|
||||||
|
; AtMostBuild <number> checks if the installer is running on a Windows version with a maximum build number.
|
||||||
;
|
;
|
||||||
; <version> can be replaced with the following values:
|
; <version> can be replaced with the following values:
|
||||||
;
|
;
|
||||||
|
@ -508,7 +510,13 @@
|
||||||
!define WinVerGetMinor '!insertmacro __WinVer_GetVer $__WINVERV 16 ${_WINVER_MASKVMIN}'
|
!define WinVerGetMinor '!insertmacro __WinVer_GetVer $__WINVERV 16 ${_WINVER_MASKVMIN}'
|
||||||
!define WinVerGetBuild '!insertmacro __WinVer_GetVer $__WINVERSP "" ${_WINVER_MASKVBLD}'
|
!define WinVerGetBuild '!insertmacro __WinVer_GetVer $__WINVERSP "" ${_WINVER_MASKVBLD}'
|
||||||
|
|
||||||
# done
|
!macro _WinVer_BuildNumCheck op num _t _f
|
||||||
|
!insertmacro _LOGICLIB_TEMP
|
||||||
|
${WinVerGetBuild} $_LOGICLIB_TEMP
|
||||||
|
!insertmacro _${op} $_LOGICLIB_TEMP ${num} `${_t}` `${_f}`
|
||||||
|
!macroend
|
||||||
|
!define AtLeastBuild `U>= WinVer_BuildNumCheck `
|
||||||
|
!define AtMostBuild `U<= WinVer_BuildNumCheck `
|
||||||
|
|
||||||
!endif # !___WINVER__NSH___
|
!endif # !___WINVER__NSH___
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue