From 9321e811d7c883742eebdcdb3b08e43e211f6d61 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Sat, 19 Mar 2022 17:01:38 -0500 Subject: [PATCH] Enforce minimum Windows version ref #983 --- setup.nsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.nsi b/setup.nsi index e9c323b7..1480ad94 100644 --- a/setup.nsi +++ b/setup.nsi @@ -12,6 +12,8 @@ Unicode true SetCompressor /SOLID lzma ; General Headers !include "FileFunc.nsh" +!include "WinVer.nsh" +!include "LogicLib.nsh" ;============================================================================== ; Configuration Defines @@ -279,6 +281,10 @@ SectionEnd ;============================================================================== Function .onInit + ${IfNot} ${AtLeastWin7} + MessageBox MB_OK "Windows 7 and above required" + Quit + ${EndIf} !if ${BITS} == "64" SetRegView 64 !else