Package mergecap.exe and its HTML documentation.
[obnox/wireshark/wip.git] / packaging / nsis / ethereal.nsi.in
1 ;
2 ; ethereal.nsi
3 ;
4 ; $Id: ethereal.nsi.in,v 1.4 2001/07/12 22:45:23 gram Exp $
5
6 ; ============================================================================
7 ; Header configuration
8 ; ============================================================================
9 ; The name of the installer
10 Name "Ethereal"
11
12 ; The file to write
13 OutFile "ethereal-setup.exe"
14
15 ; Icon of installer
16 Icon "..\..\image\ethereal.ico"
17
18 ; Uninstall stuff
19 UninstallText "This will uninstall Etheral. Hit 'Next' to continue."
20 UninstallExeName "uninstall.exe"
21
22 ; ============================================================================
23 ; License page configuration
24 ; ============================================================================
25 LicenseText "Ethereal is distributed under the GNU General Public License."
26 LicenseData "GPL.txt"
27
28 ; ============================================================================
29 ; Component page configuration
30 ; ============================================================================
31 ComponentText "The following components are available for installation."
32
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."
38
39 ; The default installation directory
40 InstallDir $PROGRAMFILES\Ethereal\
41
42 ; See if this is an upgrade; if so, use the old InstallDir as default
43 InstallDirRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal "InstallDir"
44
45
46 ; ============================================================================
47 ; Install page configuration
48 ; ============================================================================
49 ShowInstDetails show
50
51
52 ; ============================================================================
53 ; Installation execution commands
54 ; ============================================================================
55
56 Section "-Required"
57 ;-------------------------------------------
58 SetOutPath $INSTDIR
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"
64 File "..\..\README"
65 File "..\..\README.win32"
66
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"'
70 SectionEnd
71
72 Section "Ethereal"
73 ;-------------------------------------------
74 SetOutPath $INSTDIR
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"
79 SectionEnd
80
81 Section "Tethereal"
82 ;-------------------------------------------
83 SetOutPath $INSTDIR
84 File "..\..\tethereal.exe"
85 File "..\..\doc\tethereal.html"
86 SectionEnd
87
88 Section "Editcap"
89 ;-------------------------------------------
90 SetOutPath $INSTDIR
91 File "..\..\editcap.exe"
92 File "..\..\doc\editcap.html"
93 SectionEnd
94
95 Section "Text2Pcap"
96 ;-------------------------------------------
97 SetOutPath $INSTDIR
98 File "..\..\text2pcap.exe"
99 File "..\..\doc\text2pcap.html"
100 SectionEnd
101
102 Section "Mergecap"
103 ;-------------------------------------------
104 SetOutPath $INSTDIR
105 File "..\..\mergecap.exe"
106 File "..\..\doc\mergecap.html"
107 SectionEnd
108
109
110 Section "Plugins"
111 ;-------------------------------------------
112 SetOutPath $INSTDIR\plugins\@VERSION@
113 File "..\..\plugins\gryphon\gryphon.dll"
114 File "..\..\plugins\mgcp\mgcp.dll"
115 SectionEnd
116
117 Section "Debug PDB Files"
118 ;-------------------------------------------
119 SetOutPath $INSTDIR
120 File "..\..\ethereal.pdb"
121 File "..\..\tethereal.pdb"
122 File "..\..\editcap.pdb"
123 SectionEnd
124
125 SectionDivider
126 ;-------------------------------------------
127
128 Section "Start Menu Shortcuts"
129 ;-------------------------------------------
130 CreateDirectory "$SMPROGRAMS\Ethereal"
131
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"
135 SectionEnd
136
137 Section "Desktop Icon"
138 ;-------------------------------------------
139 CreateShortCut "$DESKTOP\Ethereal.lnk" "$INSTDIR\Ethereal.exe"
140 SectionEnd
141
142 Section "Uninstall"
143 ;-------------------------------------------
144 DeleteRegKey HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal"
145 DeleteRegKey HKEY_LOCAL_MACHINE SOFTWARE\Ethereal
146
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"
156
157 RMDir "$SMPROGRAMS\Ethereal"
158 RMDir "$INSTDIR\plugins\@VERSION@"
159 RMDir "$INSTDIR\plugins"
160 RMDir "$INSTDIR"
161 SectionEnd
162