2001-04-04 04:50:05 +00:00
|
|
|
;
|
|
|
|
; ethereal.nsi
|
|
|
|
;
|
2002-08-20 00:59:42 +00:00
|
|
|
; $Id: ethereal.nsi,v 1.4 2002/08/20 00:59:39 jmayer 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
|
|
|
|
|
|
|
; Icon of installer
|
|
|
|
Icon "..\..\image\ethereal.ico"
|
|
|
|
|
|
|
|
; 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
|
|
|
|
|
|
|
; ============================================================================
|
|
|
|
; 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
|
|
|
|
EnabledBitmap "..\..\image\nsis-checked.bmp"
|
|
|
|
DisabledBitmap "..\..\image\nsis-unchecked.bmp"
|
|
|
|
|
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"
|
|
|
|
File "${COMMON_FILES_GNU}\iconv-1.3.dll"
|
|
|
|
File "${COMMON_FILES_GNU}\glib-1.3.dll"
|
|
|
|
File "${COMMON_FILES_GNU}\gmodule-1.3.dll"
|
|
|
|
File "${COMMON_FILES_GNU}\gnu-intl.dll"
|
|
|
|
;File "${COMMON_FILES_GNU}\zlib.dll"
|
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
|
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "DisplayName" "Ethereal"
|
|
|
|
WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
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"
|
2002-08-19 15:48:28 +00:00
|
|
|
File "${COMMON_FILES_GNU}\gtk-1.3.dll"
|
|
|
|
File "${COMMON_FILES_GNU}\gdk-1.3.dll"
|
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}
|
2002-07-12 22:52:43 +00:00
|
|
|
File "..\..\plugins\docsis\docsis.dll"
|
|
|
|
File "..\..\plugins\giop\coseventcomm.dll"
|
|
|
|
File "..\..\plugins\giop\cosnaming.dll"
|
2001-04-04 04:50:05 +00:00
|
|
|
File "..\..\plugins\gryphon\gryphon.dll"
|
|
|
|
File "..\..\plugins\mgcp\mgcp.dll"
|
2001-07-12 22:45:23 +00:00
|
|
|
SectionEnd
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2001-04-05 05:36:47 +00:00
|
|
|
SectionDivider
|
|
|
|
;-------------------------------------------
|
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
Section "Start Menu Shortcuts"
|
|
|
|
;-------------------------------------------
|
|
|
|
CreateDirectory "$SMPROGRAMS\Ethereal"
|
|
|
|
|
2001-04-05 05:36:47 +00:00
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal.lnk" "$INSTDIR\ethereal.exe"
|
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal Documentation.lnk" "$INSTDIR\ethereal.html"
|
|
|
|
CreateShortCut "$SMPROGRAMS\Ethereal\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
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"
|
|
|
|
;-------------------------------------------
|
|
|
|
DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal"
|
|
|
|
DeleteRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal
|
|
|
|
|
2002-08-20 00:59:42 +00:00
|
|
|
Delete "$INSTDIR\FAQ"
|
2001-04-04 04:50:05 +00:00
|
|
|
Delete "$INSTDIR\README*"
|
2001-12-12 07:52:23 +00:00
|
|
|
Delete "$INSTDIR\manuf"
|
|
|
|
Delete "$INSTDIR\dictionary.dtd"
|
|
|
|
Delete "$INSTDIR\dictionary.xml"
|
|
|
|
Delete "$INSTDIR\mobileipv4.xml"
|
|
|
|
Delete "$INSTDIR\nasreq.xml"
|
|
|
|
Delete "$INSTDIR\sunping.xml"
|
2001-04-04 04:50:05 +00:00
|
|
|
Delete "$INSTDIR\*.exe"
|
|
|
|
Delete "$INSTDIR\*.html"
|
2001-04-05 05:36:47 +00:00
|
|
|
Delete "$INSTDIR\*.dll"
|
2002-08-19 15:48:28 +00:00
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\coseventcomm.dll"
|
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\cosnaming.dll"
|
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\docsis.dll"
|
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\gryphon.dll"
|
|
|
|
Delete "$INSTDIR\plugins\${VERSION}\mgcp.dll"
|
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
|
|
|
|
|
|
|
RMDir "$SMPROGRAMS\Ethereal"
|
2002-08-19 15:48:28 +00:00
|
|
|
RMDir "$INSTDIR\plugins\${VERSION}"
|
2001-04-04 04:50:05 +00:00
|
|
|
RMDir "$INSTDIR\plugins"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2002-01-04 06:57:10 +00:00
|
|
|
SectionEnd
|