aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-02-03 02:35:20 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-02-03 02:35:20 +0000
commit7f3a6f361ec8a3973ff9f8f3365a50f94621fcb1 (patch)
treeb32bb4f846ce6c4c2d6b328da474e1879a229ba0
parentbac4df8970ec76f5e5cd57ee2ac3a7bded369891 (diff)
Enable GTK-Wimp only for Windows 2000/XP/2003
...as Win9x/ME/NT known to have problems with it! svn path=/trunk/; revision=13254
-rw-r--r--packaging/nsis/ethereal.nsi28
1 files changed, 28 insertions, 0 deletions
diff --git a/packaging/nsis/ethereal.nsi b/packaging/nsis/ethereal.nsi
index 6c9030f503..79d0f7c6c5 100644
--- a/packaging/nsis/ethereal.nsi
+++ b/packaging/nsis/ethereal.nsi
@@ -74,6 +74,8 @@ XPStyle on
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show News"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+!define MUI_PAGE_CUSTOMFUNCTION_SHOW myShowCallback
+
; ============================================================================
; MUI Pages
; ============================================================================
@@ -756,3 +758,29 @@ onSelChange.end:
FunctionEnd
!endif
!endif
+
+
+!include "GetWindowsVersion.nsh"
+
+
+Function myShowCallback
+!ifdef GTK2_DIR
+ ; Enable GTK-Wimp only for Windows 2000/XP/2003
+ ; ...as Win9x/ME/NT known to have problems with it!
+
+ ; Get the Windows version
+ Call GetWindowsVersion
+ Pop $R0 ; Windows Version
+ ;DetailPrint 'Windows Version: $R0'
+ StrCmp $R0 '2000' lbl_select_wimp
+ StrCmp $R0 'XP' lbl_select_wimp
+ StrCmp $R0 '2003' lbl_select_wimp
+ DetailPrint "Windows $R0 doesn't support GTK-Wimp!"
+
+ Goto lbl_ignore_wimp
+lbl_select_wimp:
+ !insertmacro SelectSection ${SecGTKWimp}
+
+lbl_ignore_wimp:
+!endif
+FunctionEnd