2001-04-04 04:50:05 +00:00
|
|
|
;
|
|
|
|
; ethereal.nsi
|
|
|
|
;
|
2003-12-26 11:36:43 +00:00
|
|
|
; $Id: ethereal.nsi,v 1.37 2003/12/26 11:36:43 ulfl Exp $
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
; ============================================================================
|
|
|
|
; Header configuration
|
|
|
|
; ============================================================================
|
|
|
|
; The name of the installer
|
|
|
|
Name "Ethereal"
|
|
|
|
|
|
|
|
; The file to write
|
2002-08-19 15:48:28 +00:00
|
|
|
OutFile "ethereal-setup-${VERSION}.exe"
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2003-04-09 18:58:37 +00:00
|
|
|
; Icon of installer and uninstaller
|
2001-04-04 04:50:05 +00:00
|
|
|
Icon "..\..\image\ethereal.ico"
|
2003-04-09 18:58:37 +00:00
|
|
|
UninstallIcon "..\..\image\ethereal.ico"
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
; Uninstall stuff
|
2002-01-04 06:57:10 +00:00
|
|
|
UninstallText "This will uninstall Ethereal. Hit 'Next' to continue."
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2003-04-09 18:58:37 +00:00
|
|
|
XPStyle on
|
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
; ============================================================================
|
|
|
|
; License page configuration
|
|
|
|
; ============================================================================
|
|
|
|
LicenseText "Ethereal is distributed under the GNU General Public License."
|
|
|
|
LicenseData "GPL.txt"
|
|
|
|
|
|
|
|
; ============================================================================
|
|
|
|
; Component page configuration
|
|
|
|
; ============================================================================
|
2001-04-05 05:36:47 +00:00
|
|
|
ComponentText "The following components are available for installation."
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2002-04-08 02:18:14 +00:00
|
|
|
; Component check boxes
|
2003-04-09 18:58:37 +00:00
|
|
|
; Commented out for NSIS v 2.0
|
|
|
|
; EnabledBitmap "..\..\image\nsis-checked.bmp"
|
|
|
|
; DisabledBitmap "..\..\image\nsis-unchecked.bmp"
|
2002-04-08 02:18:14 +00:00
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
; ============================================================================
|
|
|
|
; Directory selection page configuration
|
|
|
|
; ============================================================================
|
|
|
|
; The text to prompt the user to enter a directory
|
|
|
|
DirText "Choose a directory in which to install Ethereal."
|
|
|
|
|
|
|
|
; The default installation directory
|
|
|
|
InstallDir $PROGRAMFILES\Ethereal\
|
|
|
|
|
|
|
|
; See if this is an upgrade; if so, use the old InstallDir as default
|
|
|
|
InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal "InstallDir"
|
|
|
|
|
|
|
|
|
|
|
|
; ============================================================================
|
|
|
|
; Install page configuration
|
|
|
|
; ============================================================================
|
|
|
|
ShowInstDetails show
|
|
|
|
|
|
|
|
|
2002-08-19 15:48:28 +00:00
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
; ============================================================================
|
|
|
|
; Installation execution commands
|
|
|
|
; ============================================================================
|
|
|
|
|
|
|
|
Section "-Required"
|
|
|
|
;-------------------------------------------
|
2002-08-19 15:48:28 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Install for every user
|
|
|
|
;
|
|
|
|
SetShellVarContext all
|
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
SetOutPath $INSTDIR
|
2002-08-19 15:48:28 +00:00
|
|
|
File "..\..\wiretap\wiretap-${WTAP_VERSION}.dll"
|
2003-12-22 21:41:40 +00:00
|
|
|
File "${GLIB_DIR}\bin\libglib-2.0-0.dll"
|
|
|
|
File "${GLIB_DIR}\bin\libgmodule-2.0-0.dll"
|
|
|
|
File "${GLIB_DIR}\bin\libgobject-2.0-0.dll"
|
|
|
|
File "${ICONV_DIR}\bin\iconv.dll"
|
|
|
|
File "${GETTEXT_DIR}\bin\intl.dll"
|
|
|
|
!ifdef ZLIB_DIR
|
|
|
|
File "${ZLIB_DIR}\zlib1.dll"
|
|
|
|
!endif
|
|
|
|
!ifdef ADNS_DIR
|
|
|
|
File "${ADNS_DIR}\adns_win32\LIB\adns_dll.dll"
|
|
|
|
!endif
|
|
|
|
!ifdef PCRE_DIR
|
|
|
|
File "${PCRE_DIR}\bin\pcre.dll"
|
|
|
|
File "${PCRE_DIR}\man\cat3\pcrepattern.3.txt"
|
|
|
|
!endif
|
2002-08-20 00:59:42 +00:00
|
|
|
File "..\..\FAQ"
|
2001-04-04 04:50:05 +00:00
|
|
|
File "..\..\README"
|
|
|
|
File "..\..\README.win32"
|
2001-10-11 01:04:19 +00:00
|
|
|
File "..\..\manuf"
|
2002-06-01 22:17:22 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Install the Diameter DTD and XML files in the "diameter" subdirectory
|
|
|
|
; of the installation directory.
|
|
|
|
;
|
|
|
|
SetOutPath $INSTDIR\diameter
|
2001-11-01 21:55:08 +00:00
|
|
|
File "..\..\dictionary.dtd"
|
|
|
|
File "..\..\dictionary.xml"
|
|
|
|
File "..\..\mobileipv4.xml"
|
|
|
|
File "..\..\nasreq.xml"
|
|
|
|
File "..\..\sunping.xml"
|
2002-06-01 22:17:22 +00:00
|
|
|
SetOutPath $INSTDIR
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
; Write the uninstall keys for Windows
|
2003-12-10 19:05:06 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "DisplayVersion" "${VERSION}"
|
2002-08-30 15:32:27 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "DisplayName" "Ethereal ${VERSION}"
|
2001-04-04 04:50:05 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
2003-12-16 06:25:56 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "Publisher" "The Ethereal developer community, http://www.ethereal.com"
|
2003-12-19 23:25:05 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "HelpLink" "mailto:ethereal-users@ethereal.com"
|
2003-12-10 19:05:06 +00:00
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "URLInfoAbout" "http://www.ethereal.com"
|
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "URLUpdateInfo" "http://www.ethereal.com/distribution/win32/"
|
|
|
|
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "NoModify" 1
|
|
|
|
WriteRegDWORD HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "NoRepair" 1
|
2002-01-04 06:57:10 +00:00
|
|
|
WriteUninstaller "uninstall.exe"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
Section "Ethereal"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
File "..\..\ethereal.exe"
|
|
|
|
File "..\..\doc\ethereal.html"
|
2003-10-02 22:28:04 +00:00
|
|
|
File "..\..\doc\ethereal-filter.html"
|
2003-07-22 22:00:38 +00:00
|
|
|
!ifndef GTK2
|
2003-12-22 21:41:40 +00:00
|
|
|
File "${GTK_DIR}\lib\libgtk-0.dll"
|
|
|
|
File "${GTK_DIR}\lib\libgdk-0.dll"
|
2003-07-22 22:00:38 +00:00
|
|
|
!else
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\bin\libgdk-win32-2.0-0.dll"
|
|
|
|
File "${GTK_DIR}\bin\libgdk_pixbuf-2.0-0.dll"
|
|
|
|
File "${GTK_DIR}\bin\libgtk-win32-2.0-0.dll"
|
|
|
|
File "${GTK_DIR}\bin\libatk-1.0-0.dll"
|
|
|
|
File "${GTK_DIR}\bin\libpango-1.0-0.dll"
|
|
|
|
File "${GTK_DIR}\bin\libpangowin32-1.0-0.dll"
|
2003-07-22 22:00:38 +00:00
|
|
|
SetOutPath $INSTDIR\etc\gtk-2.0
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\etc\gtk-2.0\gdk-pixbuf.loaders"
|
|
|
|
File "${GTK_DIR}\etc\gtk-2.0\gtk.immodules"
|
2003-07-22 22:00:38 +00:00
|
|
|
SetOutPath $INSTDIR\etc\pango
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\etc\pango\pango.modules"
|
2003-07-22 22:00:38 +00:00
|
|
|
SetOutPath $INSTDIR\lib\gtk-2.0\2.2.0\loaders
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\lib\gtk-2.0\2.2.0\loaders\libpixbufloader-*.dll"
|
2003-07-22 22:00:38 +00:00
|
|
|
SetOutPath $INSTDIR\lib\gtk-2.0\2.2.0\immodules
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\lib\gtk-2.0\2.2.0\immodules\im-*.dll"
|
2003-07-22 22:00:38 +00:00
|
|
|
SetOutPath $INSTDIR\lib\pango\1.2.0\modules
|
2003-12-15 04:28:57 +00:00
|
|
|
File "${GTK_DIR}\lib\pango\1.2.0\modules\pango-*.dll"
|
2003-07-22 22:00:38 +00:00
|
|
|
!endif
|
2003-12-22 07:57:43 +00:00
|
|
|
SetOutPath $INSTDIR\help
|
2003-12-22 22:17:30 +00:00
|
|
|
File "..\..\help\toc"
|
2003-12-22 07:57:43 +00:00
|
|
|
File "..\..\help\overview.txt"
|
|
|
|
File "..\..\help\capture_filters.txt"
|
|
|
|
File "..\..\help\display_filters.txt"
|
|
|
|
File "..\..\help\well_known.txt"
|
|
|
|
File "..\..\help\faq.txt"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
Section "Tethereal"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
File "..\..\tethereal.exe"
|
|
|
|
File "..\..\doc\tethereal.html"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
Section "Editcap"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
File "..\..\editcap.exe"
|
|
|
|
File "..\..\doc\editcap.html"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2001-05-22 16:19:45 +00:00
|
|
|
Section "Text2Pcap"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
File "..\..\text2pcap.exe"
|
|
|
|
File "..\..\doc\text2pcap.html"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-05-22 16:19:45 +00:00
|
|
|
|
2001-07-12 22:45:23 +00:00
|
|
|
Section "Mergecap"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR
|
|
|
|
File "..\..\mergecap.exe"
|
|
|
|
File "..\..\doc\mergecap.html"
|
|
|
|
SectionEnd
|
2001-05-22 16:19:45 +00:00
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
Section "Plugins"
|
|
|
|
;-------------------------------------------
|
2002-08-19 15:48:28 +00:00
|
|
|
SetOutPath $INSTDIR\plugins\${VERSION}
|
2003-10-14 01:18:11 +00:00
|
|
|
File "..\..\plugins\acn\acn.dll"
|
2003-04-21 21:28:39 +00:00
|
|
|
File "..\..\plugins\artnet\artnet.dll"
|
2003-10-28 07:02:38 +00:00
|
|
|
File "..\..\plugins\asn1\asn1.dll"
|
2002-07-12 22:52:43 +00:00
|
|
|
File "..\..\plugins\docsis\docsis.dll"
|
2003-11-17 20:57:14 +00:00
|
|
|
File "..\..\plugins\enttec\enttec.dll"
|
2002-07-12 22:52:43 +00:00
|
|
|
File "..\..\plugins\giop\coseventcomm.dll"
|
|
|
|
File "..\..\plugins\giop\cosnaming.dll"
|
2001-04-04 04:50:05 +00:00
|
|
|
File "..\..\plugins\gryphon\gryphon.dll"
|
2003-12-18 19:07:14 +00:00
|
|
|
File "..\..\plugins\irda\irda.dll"
|
2003-08-05 05:09:37 +00:00
|
|
|
File "..\..\plugins\lwres\lwres.dll"
|
2003-01-28 22:18:06 +00:00
|
|
|
File "..\..\plugins\megaco\megaco.dll"
|
2001-04-04 04:50:05 +00:00
|
|
|
File "..\..\plugins\mgcp\mgcp.dll"
|
2003-01-28 22:18:06 +00:00
|
|
|
File "..\..\plugins\pcli\pcli.dll"
|
2003-11-17 20:57:14 +00:00
|
|
|
File "..\..\plugins\rdm\rdm.dll"
|
2003-06-11 09:17:03 +00:00
|
|
|
File "..\..\plugins\rtnet\rtnet.dll"
|
2003-12-17 05:16:21 +00:00
|
|
|
File "..\..\plugins\v5ua\v5ua.dll"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2002-12-07 21:10:22 +00:00
|
|
|
Section "SNMP MIBs"
|
|
|
|
;-------------------------------------------
|
|
|
|
SetOutPath $INSTDIR\snmp\mibs
|
2003-04-18 04:46:38 +00:00
|
|
|
File "${NET_SNMP_DIR}\mibs\*.txt"
|
2002-12-07 21:10:22 +00:00
|
|
|
SectionEnd
|
|
|
|
|
2003-04-09 18:58:37 +00:00
|
|
|
; SectionDivider
|
2001-04-05 05:36:47 +00:00
|
|
|
;-------------------------------------------
|
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
Section "Start Menu Shortcuts"
|
|
|
|
;-------------------------------------------
|
|
|
|
CreateDirectory "$SMPROGRAMS\Ethereal"
|
|
|
|
|
2002-09-29 18:16:42 +00:00
|
|
|
Delete "$SMPROGRAMS\Ethereal\Ethereal Web Site.lnk"
|
|
|
|
WriteINIStr "$SMPROGRAMS\Ethereal\Ethereal Web Site.url" \
|
2002-08-30 15:32:27 +00:00
|
|
|
"InternetShortcut" "URL" "http://www.ethereal.com/"
|
2001-04-05 05:36:47 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal.lnk" "$INSTDIR\ethereal.exe"
|
2003-10-02 22:28:04 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal Manual.lnk" "$INSTDIR\ethereal.html"
|
2003-11-04 01:08:03 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Display Filters Manual.lnk" "$INSTDIR\ethereal-filter.html"
|
2001-04-05 05:36:47 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
2002-08-30 15:32:27 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal Program Directory.lnk" \
|
|
|
|
"$INSTDIR"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-05 05:36:47 +00:00
|
|
|
|
|
|
|
Section "Desktop Icon"
|
|
|
|
;-------------------------------------------
|
|
|
|
CreateShortCut "$DESKTOP\Ethereal.lnk" "$INSTDIR\Ethereal.exe"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
Section "Uninstall"
|
|
|
|
;-------------------------------------------
|
2003-04-09 18:58:37 +00:00
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal"
|
|
|
|
DeleteRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal
|
|
|
|
|
2003-06-03 02:32:56 +00:00
|
|
|
;
|
|
|
|
; UnInstall for every user
|
|
|
|
;
|
|
|
|
SetShellVarContext all
|
|
|
|
|
2003-07-22 22:00:38 +00:00
|
|
|
!ifdef GTK2
|
|
|
|
Delete "$INSTDIR\etc\gtk-2.0\*.*"
|
|
|
|
Delete "$INSTDIR\etc\pango\*.*"
|
|
|
|
Delete "$INSTDIR\lib\gtk-2.0\2.2.0\loaders\*.*"
|
|
|
|
Delete "$INSTDIR\lib\gtk-2.0\2.2.0\immodules\*.*"
|
|
|
|
Delete "$INSTDIR\lib\pango\1.2.0\modules\*.*"
|
|
|
|
!endif
|
2003-12-26 11:36:43 +00:00
|
|
|
Delete "$INSTDIR\help\*.*"
|
2002-09-30 14:43:18 +00:00
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\*.*"
|
|
|
|
Delete "$INSTDIR\plugins\*.*"
|
|
|
|
Delete "$INSTDIR\diameter\*.*"
|
2002-12-07 21:10:22 +00:00
|
|
|
Delete "$INSTDIR\snmp\mibs\*.*"
|
|
|
|
Delete "$INSTDIR\snmp\*.*"
|
2002-09-30 14:43:18 +00:00
|
|
|
Delete "$INSTDIR\*.*"
|
2001-04-04 04:50:05 +00:00
|
|
|
Delete "$SMPROGRAMS\Ethereal\*.*"
|
2001-04-05 05:36:47 +00:00
|
|
|
Delete "$DESKTOP\Ethereal.lnk"
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2003-07-22 22:00:38 +00:00
|
|
|
!ifdef GTK2
|
|
|
|
RMDir "$INSTDIR\etc\gtk-2.0"
|
|
|
|
RMDir "$INSTDIR\etc\pango"
|
|
|
|
RMDir "$INSTDIR\etc"
|
|
|
|
RMDir "$INSTDIR\lib\gtk-2.0\2.2.0\loaders"
|
|
|
|
RMDir "$INSTDIR\lib\gtk-2.0\2.2.0\immodules"
|
|
|
|
RMDir "$INSTDIR\lib\gtk-2.0\2.2.0"
|
|
|
|
RMDir "$INSTDIR\lib\gtk-2.0"
|
|
|
|
RMDir "$INSTDIR\lib\pango\1.2.0\modules"
|
|
|
|
RMDir "$INSTDIR\lib\pango\1.2.0"
|
|
|
|
RMDir "$INSTDIR\lib\pango"
|
|
|
|
RMDir "$INSTDIR\lib"
|
|
|
|
!endif
|
2001-04-04 04:50:05 +00:00
|
|
|
RMDir "$SMPROGRAMS\Ethereal"
|
2003-12-26 11:36:43 +00:00
|
|
|
RMDir "$INSTDIR\help"
|
2002-08-19 15:48:28 +00:00
|
|
|
RMDir "$INSTDIR\plugins\${VERSION}"
|
2001-04-04 04:50:05 +00:00
|
|
|
RMDir "$INSTDIR\plugins"
|
2002-09-30 14:43:18 +00:00
|
|
|
RMDir "$INSTDIR\diameter"
|
2002-12-07 21:10:22 +00:00
|
|
|
RMDir "$INSTDIR\snmp\mibs"
|
|
|
|
RMDir "$INSTDIR\snmp"
|
2001-04-04 04:50:05 +00:00
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2002-01-04 06:57:10 +00:00
|
|
|
SectionEnd
|