4 ; $Id: ethereal.nsi.in,v 1.4 2001/07/12 22:45:23 gram Exp $
6 ; ============================================================================
8 ; ============================================================================
9 ; The name of the installer
13 OutFile "ethereal-setup.exe"
16 Icon "..\..\image\ethereal.ico"
19 UninstallText "This will uninstall Etheral. Hit 'Next' to continue."
20 UninstallExeName "uninstall.exe"
22 ; ============================================================================
23 ; License page configuration
24 ; ============================================================================
25 LicenseText "Ethereal is distributed under the GNU General Public License."
28 ; ============================================================================
29 ; Component page configuration
30 ; ============================================================================
31 ComponentText "The following components are available for installation."
33 ; ============================================================================
34 ; Directory selection page configuration
35 ; ============================================================================
36 ; The text to prompt the user to enter a directory
37 DirText "Choose a directory in which to install Ethereal."
39 ; The default installation directory
40 InstallDir $PROGRAMFILES\Ethereal\
42 ; See if this is an upgrade; if so, use the old InstallDir as default
43 InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal "InstallDir"
46 ; ============================================================================
47 ; Install page configuration
48 ; ============================================================================
52 ; ============================================================================
53 ; Installation execution commands
54 ; ============================================================================
57 ;-------------------------------------------
59 File "..\..\wiretap\wiretap-@WTAP_VERSION@.dll"
60 File "c:\program files\common files\GNU\iconv-1.3.dll"
61 File "c:\program files\common files\GNU\glib-1.3.dll"
62 File "c:\program files\common files\GNU\gmodule-1.3.dll"
63 File "c:\program files\common files\GNU\gnu-intl.dll"
65 File "..\..\README.win32"
67 ; Write the uninstall keys for Windows
68 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "DisplayName" "Ethereal"
69 WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal" "UninstallString" '"$INSTDIR\uninstall.exe"'
73 ;-------------------------------------------
75 File "..\..\ethereal.exe"
76 File "..\..\doc\ethereal.html"
77 File "c:\program files\common files\GNU\gtk-1.3.dll"
78 File "c:\program files\common files\GNU\gdk-1.3.dll"
82 ;-------------------------------------------
84 File "..\..\tethereal.exe"
85 File "..\..\doc\tethereal.html"
89 ;-------------------------------------------
91 File "..\..\editcap.exe"
92 File "..\..\doc\editcap.html"
96 ;-------------------------------------------
98 File "..\..\text2pcap.exe"
99 File "..\..\doc\text2pcap.html"
103 ;-------------------------------------------
105 File "..\..\mergecap.exe"
106 File "..\..\doc\mergecap.html"
111 ;-------------------------------------------
112 SetOutPath $INSTDIR\plugins\@VERSION@
113 File "..\..\plugins\gryphon\gryphon.dll"
114 File "..\..\plugins\mgcp\mgcp.dll"
117 Section "Debug PDB Files"
118 ;-------------------------------------------
120 File "..\..\ethereal.pdb"
121 File "..\..\tethereal.pdb"
122 File "..\..\editcap.pdb"
126 ;-------------------------------------------
128 Section "Start Menu Shortcuts"
129 ;-------------------------------------------
130 CreateDirectory "$SMPROGRAMS\Ethereal"
132 CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal.lnk" "$INSTDIR\ethereal.exe"
133 CreateShortCut "$SMPROGRAMS\Ethereal\Ethereal Documentation.lnk" "$INSTDIR\ethereal.html"
134 CreateShortCut "$SMPROGRAMS\Ethereal\Uninstall.lnk" "$INSTDIR\uninstall.exe"
137 Section "Desktop Icon"
138 ;-------------------------------------------
139 CreateShortCut "$DESKTOP\Ethereal.lnk" "$INSTDIR\Ethereal.exe"
143 ;-------------------------------------------
144 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal"
145 DeleteRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal
147 Delete "$INSTDIR\README*"
148 Delete "$INSTDIR\*.exe"
149 Delete "$INSTDIR\*.pdb"
150 Delete "$INSTDIR\*.html"
151 Delete "$INSTDIR\*.dll"
152 Delete "$INSTDIR\plugins\@VERSION@\gryphon.dll"
153 Delete "$INSTDIR\plugins\@VERSION@\mgcp.dll"
154 Delete "$SMPROGRAMS\Ethereal\*.*"
155 Delete "$DESKTOP\Ethereal.lnk"
157 RMDir "$SMPROGRAMS\Ethereal"
158 RMDir "$INSTDIR\plugins\@VERSION@"
159 RMDir "$INSTDIR\plugins"