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:
anders_k 2018-11-30 16:49:13 +00:00
parent fa85ddb775
commit 0ebf72824d
2 changed files with 9 additions and 2 deletions

View file

@ -18,6 +18,8 @@
; 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.
; 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:
;
@ -508,7 +510,13 @@
!define WinVerGetMinor '!insertmacro __WinVer_GetVer $__WINVERV 16 ${_WINVER_MASKVMIN}'
!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___