diff --git a/Contrib/nsDialogs/example.nsi b/Contrib/nsDialogs/example.nsi index b304f501..55bca4f8 100644 --- a/Contrib/nsDialogs/example.nsi +++ b/Contrib/nsDialogs/example.nsi @@ -1,4 +1,3 @@ - !include nsDialogs.nsh !include LogicLib.nsh !include WinCore.nsh ; MAKELONG diff --git a/Include/WinVer.nsh b/Include/WinVer.nsh index c057b7b6..cb6f8e06 100644 --- a/Include/WinVer.nsh +++ b/Include/WinVer.nsh @@ -18,6 +18,8 @@ ; AtLeastWin checks if the installer is running on Windows version at least as specified. ; IsWin checks if the installer is running on Windows version exactly as specified. ; AtMostWin checks if the installer is running on Windows version at most as specified. +; AtLeastBuild checks if the installer is running on a Windows version with a minimum build number. +; AtMostBuild checks if the installer is running on a Windows version with a maximum build number. ; ; 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___