aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2003-12-26 12:27:47 +0000
committerUlf Lamping <ulf.lamping@web.de>2003-12-26 12:27:47 +0000
commitf849df17e656779e27f1e8be056cd7b8522a1198 (patch)
tree02c88dc7ea889ad2e91b96a62bd68b1beb67f7f5 /packaging
parentb6092e26fdea08468e9823ad0f2908f62fe6942c (diff)
conditionally use modern UI for NSIS installer
svn path=/trunk/; revision=9448
Diffstat (limited to 'packaging')
-rw-r--r--packaging/nsis/Makefile.nmake5
-rw-r--r--packaging/nsis/ethereal.nsi85
2 files changed, 79 insertions, 11 deletions
diff --git a/packaging/nsis/Makefile.nmake b/packaging/nsis/Makefile.nmake
index 670f9bebc3..fe19f776b2 100644
--- a/packaging/nsis/Makefile.nmake
+++ b/packaging/nsis/Makefile.nmake
@@ -1,5 +1,5 @@
#
-# $Id: Makefile.nmake,v 1.31 2003/12/22 21:41:40 ulfl Exp $
+# $Id: Makefile.nmake,v 1.32 2003/12/26 12:27:47 ulfl Exp $
#
# NSIS is a free packager/installer/uninstaller program for Win32.
# It was originally written for the Winamp package, but various
@@ -44,6 +44,9 @@ DELIVERABLES=$(EXE) $(DLL) $(DOC) $(GPL) $(PLUGINS)
ethereal-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES)
$(MAKENSIS) \
+!IF "$(MAKENSIS_MODERN_UI)" != ""
+ /DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
+!ENDIF
!IF "$(GTK_VERSION)" == "2.0"
/DGTK2 \
!ENDIF
diff --git a/packaging/nsis/ethereal.nsi b/packaging/nsis/ethereal.nsi
index 8a4d2f91f9..f0043d03d3 100644
--- a/packaging/nsis/ethereal.nsi
+++ b/packaging/nsis/ethereal.nsi
@@ -1,7 +1,7 @@
;
; ethereal.nsi
;
-; $Id: ethereal.nsi,v 1.37 2003/12/26 11:36:43 ulfl Exp $
+; $Id: ethereal.nsi,v 1.38 2003/12/26 12:27:47 ulfl Exp $
; ============================================================================
; Header configuration
@@ -21,6 +21,55 @@ UninstallText "This will uninstall Ethereal. Hit 'Next' to continue."
XPStyle on
+
+!ifdef MAKENSIS_MODERN_UI
+
+; ============================================================================
+; Modern UI
+; ============================================================================
+; The modern user interface will look much better than the common one.
+; However, as the development of the modern UI is still going on, and the script
+; syntax changes, you will need exactly that NSIS version, which this script is
+; made for. This is the current (December 2003) latest version: V2.0b4
+; If you are using a different version, it's not predictable what will happen.
+
+!include "MUI.nsh"
+
+!define MUI_ICON "..\..\image\ethereal.ico"
+!define MUI_UNICON "..\..\image\ethereal.ico"
+
+!define MUI_COMPONENTSPAGE_SMALLDESC
+!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of Ethereal.\r\n\r\nBefore starting the installation, make sure Ethereal is not running.\r\n\r\nClick next to continue."
+!define MUI_FINISHPAGE_LINK "Install WinPcap to be able to capture packets from a network!"
+!define MUI_FINISHPAGE_LINK_LOCATION "http://winpcap.polito.it"
+; show readme doesn't seem to work with NSIS 2.0b4
+;!define MUI_FINISHPAGE_SHOWREADME "..\..\README.win32"
+;!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+
+; ============================================================================
+; MUI Pages
+; ============================================================================
+
+!insertmacro MUI_PAGE_WELCOME
+!insertmacro MUI_PAGE_LICENSE "GPL.txt"
+!insertmacro MUI_PAGE_COMPONENTS
+!insertmacro MUI_PAGE_DIRECTORY
+!insertmacro MUI_PAGE_INSTFILES
+!insertmacro MUI_PAGE_FINISH
+
+!insertmacro MUI_UNPAGE_WELCOME
+!insertmacro MUI_UNPAGE_CONFIRM
+!insertmacro MUI_UNPAGE_INSTFILES
+!insertmacro MUI_UNPAGE_FINISH
+
+; ============================================================================
+; MUI Languages
+; ============================================================================
+
+!insertmacro MUI_LANGUAGE "English"
+
+!endif ; MAKENSIS_MODERN_UI
+
; ============================================================================
; License page configuration
; ============================================================================
@@ -116,7 +165,7 @@ WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Unin
WriteUninstaller "uninstall.exe"
SectionEnd
-Section "Ethereal"
+Section "Ethereal" SecEthereal
;-------------------------------------------
SetOutPath $INSTDIR
File "..\..\ethereal.exe"
@@ -153,28 +202,28 @@ File "..\..\help\well_known.txt"
File "..\..\help\faq.txt"
SectionEnd
-Section "Tethereal"
+Section "Tethereal" SecTethereal
;-------------------------------------------
SetOutPath $INSTDIR
File "..\..\tethereal.exe"
File "..\..\doc\tethereal.html"
SectionEnd
-Section "Editcap"
+Section "Editcap" SecEditcap
;-------------------------------------------
SetOutPath $INSTDIR
File "..\..\editcap.exe"
File "..\..\doc\editcap.html"
SectionEnd
-Section "Text2Pcap"
+Section "Text2Pcap" SecText2Pcap
;-------------------------------------------
SetOutPath $INSTDIR
File "..\..\text2pcap.exe"
File "..\..\doc\text2pcap.html"
SectionEnd
-Section "Mergecap"
+Section "Mergecap" SecMergecap
;-------------------------------------------
SetOutPath $INSTDIR
File "..\..\mergecap.exe"
@@ -182,7 +231,7 @@ File "..\..\doc\mergecap.html"
SectionEnd
-Section "Plugins"
+Section "Plugins" SecPlugins
;-------------------------------------------
SetOutPath $INSTDIR\plugins\${VERSION}
File "..\..\plugins\acn\acn.dll"
@@ -203,7 +252,7 @@ File "..\..\plugins\rtnet\rtnet.dll"
File "..\..\plugins\v5ua\v5ua.dll"
SectionEnd
-Section "SNMP MIBs"
+Section "SNMP MIBs" SecMIBs
;-------------------------------------------
SetOutPath $INSTDIR\snmp\mibs
File "${NET_SNMP_DIR}\mibs\*.txt"
@@ -212,7 +261,7 @@ SectionEnd
; SectionDivider
;-------------------------------------------
-Section "Start Menu Shortcuts"
+Section "Start Menu Shortcuts" SecShortcuts
;-------------------------------------------
CreateDirectory "$SMPROGRAMS\Ethereal"
@@ -227,7 +276,7 @@ CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal Program Directory.lnk" \
"$INSTDIR"
SectionEnd
-Section "Desktop Icon"
+Section "Desktop Icon" SecDesktopIcon
;-------------------------------------------
CreateShortCut "$DESKTOP\Ethereal.lnk" "$INSTDIR\Ethereal.exe"
SectionEnd
@@ -283,3 +332,19 @@ RMDir "$INSTDIR\snmp"
RMDir "$INSTDIR"
SectionEnd
+
+
+!ifdef MAKENSIS_MODERN_UI
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecEthereal} "Ethereal is a GUI network protocol analyzer."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecTethereal} "Tethereal is a network protocol analyzer."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecEditCap} "Editcap is a program that reads a capture file and writes some or all of the packets into another capture file."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecText2Pcap} "Text2pcap is a program that reads in an ASCII hex dump and writes the data into a libpcap-style capture file."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecMergecap} "Mergecap is a program that combines multiple saved capture files into a single output file."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecPlugins} "Plugins with some extended dissections."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecMIBs} "SNMP MIBs for better SNMP dissection."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Start menu shortcuts."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecDesktopIcon} "Ethereal desktop icon."
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+!endif ; MAKENSIS_MODERN_UI
+