changeset 828:95e14add5c50

(issue11) Check minium supported windows version
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 24 Jul 2014 11:41:17 +0200
parents 8de162b91a22
children 294d76174102
files packaging/trustbridge.nsi
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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

http://wald.intevation.org/projects/trustbridge/