From c9f44506e79bf2e3acfa161ab2efa494e691f771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 21 Jan 2024 16:04:59 +0100 Subject: [PATCH] Fixed minimal Windows version check for Qt6 builds --- pkg/windows/gpxsee64.nsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/windows/gpxsee64.nsi b/pkg/windows/gpxsee64.nsi index e9e62ca0..59027541 100644 --- a/pkg/windows/gpxsee64.nsi +++ b/pkg/windows/gpxsee64.nsi @@ -95,10 +95,17 @@ Var StartMenuFolder !insertmacro MUI_LANGUAGE "English" Function .onInit +!ifdef QT6 + ${IfNot} ${AtLeastWin10} + MessageBox MB_OK "GPXSee can only be installed on Windows 10 or later." + Abort + ${EndIf} +!else ${IfNot} ${AtLeastWin7} MessageBox MB_OK "GPXSee can only be installed on Windows 7 or later." Abort ${EndIf} +!endif ${If} ${RunningX64} SetRegView 64