[PATCH 1 of 2] (issue11) Check minium supported windows version

Wald Commits scm-commit at wald.intevation.org
Thu Jul 24 11:41:55 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1406194877 -7200
# Node ID 95e14add5c50b72504027f8cfd4084ccb881cb51
# Parent  8de162b91a222b4bb5c5bd5b099448e059b4ed63
(issue11) Check minium supported windows version

diff -r 8de162b91a22 -r 95e14add5c50 packaging/trustbridge.nsi
--- a/packaging/trustbridge.nsi	Wed Jul 23 19:47:59 2014 +0200
+++ b/packaging/trustbridge.nsi	Thu Jul 24 11:41:17 2014 +0200
@@ -30,6 +30,7 @@
 !include "MultiUser.nsh"
 !include "MUI2.nsh"
 !include "FileFunc.nsh"
+!include "WinVer.nsh"
 
 ;--------------------------------
 ;Version Information (for installer file properties)
@@ -111,6 +112,11 @@
 ; Install Functions
 
 Function ".onInit"
+  ${IfNot} ${AtLeastWinVista}
+    MessageBox MB_OK "Windows XP und ältere Windows Versionen werden von dieser Anwendung nicht unterstützt."
+    Quit
+  ${Endif}
+
   Var /GLOBAL is_update
   Var /GLOBAL changed_dir
   ${GetParameters} $R0


More information about the Trustbridge-commits mailing list