~ubuntu-branches/ubuntu/lucid/warzone2100/lucid

« back to all changes in this revision

Viewing changes to pkg/nsis/warzone2100.nsi

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger, Paul Wise, Christoph Egger
  • Date: 2009-06-29 17:12:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.7 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090629171252-5ddnlfg3zfchrega
Tags: 2.2.1+dfsg1-1
[ Paul Wise ]
* New upstream release (Closes: #534962)
* Adjust the flex build-depends to take account of the conflict
  with all the versions of flex 2.5.34 (LP: #372872)
* Make the -music Recommends more strict, 2.1 music doesn't work
  with 2.2.
* Upstream moved the downloads to sourceforge, update the watch file
* Bump Standards-Version, no changes needed
* Drop use of dh_desktop since it no longer does anything
* Recommend the new warzone2100-video package, version 2.2 or similar
* Mention the warzone2100 crash reports in the -dbg package description

[ Christoph Egger ]
* Replace CC-2.0 graphic from cybersphinx, create a new tarball
* Add myself to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;  This file is part of Warzone 2100.
2
 
;  Copyright (C) 2006-2007  Warzone Resurrection Project
3
 
;  Copyright (C) 2006       Dennis Schridde
4
 
;
5
 
;  Warzone 2100 is free software; you can redistribute it and/or modify
6
 
;  it under the terms of the GNU General Public License as published by
7
 
;  the Free Software Foundation; either version 2 of the License, or
8
 
;  (at your option) any later version.
9
 
;
10
 
;  Warzone 2100 is distributed in the hope that it will be useful,
11
 
;  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
 
;  GNU General Public License for more details.
14
 
;
15
 
;  You should have received a copy of the GNU General Public License
16
 
;  along with Warzone 2100; if not, write to the Free Software
17
 
;  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
 
;
19
 
;  NSIS Modern User Interface
20
 
;  Warzone 2100 Resurrection Installer script
21
 
;
22
 
 
23
 
;--------------------------------
24
 
;Include Modern UI
25
 
 
26
 
  !include "MUI.nsh"
27
 
 
28
 
;--------------------------------
29
 
;General
30
 
 
31
 
  ;Name and file
32
 
  Name "${PACKAGE_NAME}"
33
 
  OutFile "${PACKAGE}-${PACKAGE_VERSION}.exe"
34
 
 
35
 
  ;Default installation folder
36
 
  InstallDir "$PROGRAMFILES\${PACKAGE_NAME}"
37
 
 
38
 
  ;Get installation folder from registry if available
39
 
  InstallDirRegKey HKLM "Software\${PACKAGE_NAME}" ""
40
 
 
41
 
  SetCompressor /FINAL /SOLID lzma
42
 
 
43
 
;--------------------------------
44
 
;Versioninfo
45
 
 
46
 
VIProductVersion "${VERSIONNUM}"
47
 
VIAddVersionKey "CompanyName"           "Warzone Resurrection Project"
48
 
VIAddVersionKey "FileDescription"       "${PACKAGE_NAME} Installer"
49
 
VIAddVersionKey "FileVersion"           "${PACKAGE_VERSION}"
50
 
VIAddVersionKey "InternalName"          "${PACKAGE_NAME}"
51
 
VIAddVersionKey "LegalCopyright"        "Copyright � 2006 Warzone Resurrection Project"
52
 
VIAddVersionKey "OriginalFilename"      "${PACKAGE}-${PACKAGE_VERSION}.exe"
53
 
VIAddVersionKey "ProductName"           "${PACKAGE_NAME}"
54
 
VIAddVersionKey "ProductVersion"        "${PACKAGE_VERSION}"
55
 
 
56
 
;--------------------------------
57
 
;Variables
58
 
 
59
 
  Var MUI_TEMP
60
 
  Var STARTMENU_FOLDER
61
 
 
62
 
;--------------------------------
63
 
;Interface Settings
64
 
 
65
 
  !define MUI_ICON "..\..\icons\warzone2100.ico"
66
 
  !define MUI_UNICON "..\..\icons\warzone2100.uninstall.ico"
67
 
 
68
 
  !define MUI_ABORTWARNING
69
 
 
70
 
  ; Settings for MUI_PAGE_LICENSE
71
 
  ; Purposefully commented out, as we do _not_ want to trouble users with an
72
 
  ; additional mouse click (while otherwise pressing "return" continuously
73
 
  ; would satisfy)
74
 
;  !define MUI_LICENSEPAGE_RADIOBUTTONS
75
 
 
76
 
  ;Start Menu Folder Page Configuration (for MUI_PAGE_STARTMENU)
77
 
  !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
78
 
  !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PACKAGE_NAME}"
79
 
  !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
80
 
 
81
 
  ; These indented statements modify settings for MUI_PAGE_FINISH
82
 
  !define MUI_FINISHPAGE_NOAUTOCLOSE
83
 
  !define MUI_FINISHPAGE_RUN
84
 
  !define MUI_FINISHPAGE_RUN_NOTCHECKED
85
 
  !define MUI_FINISHPAGE_RUN_TEXT $(TEXT_RunWarzone)
86
 
  !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
87
 
  !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
88
 
  !define MUI_FINISHPAGE_SHOWREADME $(TEXT_Readme)
89
 
 
90
 
;--------------------------------
91
 
;Pages
92
 
 
93
 
  !insertmacro MUI_PAGE_WELCOME
94
 
  !insertmacro MUI_PAGE_LICENSE $(MUILicense)
95
 
  !insertmacro MUI_PAGE_COMPONENTS
96
 
  !insertmacro MUI_PAGE_DIRECTORY
97
 
  !insertmacro MUI_PAGE_STARTMENU "Application" $STARTMENU_FOLDER
98
 
  !insertmacro MUI_PAGE_INSTFILES
99
 
  !insertmacro MUI_PAGE_FINISH
100
 
 
101
 
  !insertmacro MUI_UNPAGE_WELCOME
102
 
  !insertmacro MUI_UNPAGE_CONFIRM
103
 
  !insertmacro MUI_UNPAGE_INSTFILES
104
 
  !insertmacro MUI_UNPAGE_FINISH
105
 
 
106
 
;--------------------------------
107
 
;Languages
108
 
 
109
 
  !insertmacro MUI_LANGUAGE "English" # first language is the default language
110
 
  !insertmacro MUI_LANGUAGE "Dutch"
111
 
  !insertmacro MUI_LANGUAGE "German"
112
 
 
113
 
;--------------------------------
114
 
;License Language String
115
 
 
116
 
  LicenseLangString MUILicense ${LANG_ENGLISH} "..\..\COPYING"
117
 
  LicenseLangString MUILicense ${LANG_DUTCH} "..\..\COPYING"
118
 
  LicenseLangString MUILicense ${LANG_GERMAN} "..\..\COPYING"
119
 
 
120
 
;--------------------------------
121
 
;Reserve Files
122
 
 
123
 
  ;These files should be inserted before other files in the data block
124
 
  ;Keep these lines before any File command
125
 
  ;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)
126
 
 
127
 
  !insertmacro MUI_RESERVEFILE_LANGDLL
128
 
 
129
 
 
130
 
 
131
 
;--------------------------------
132
 
;Installer Sections
133
 
 
134
 
Section $(TEXT_SecBase) SecBase
135
 
 
136
 
  SectionIn RO
137
 
 
138
 
  SetOutPath "$INSTDIR"
139
 
 
140
 
  ;ADD YOUR OWN FILES HERE...
141
 
 
142
 
  ; Main executable
143
 
  File "..\..\src\${PACKAGE}.exe"
144
 
 
145
 
  ; Windows dbghelp library
146
 
  File "${EXTDIR}\bin\dbghelp.dll.license.txt"
147
 
  File "${EXTDIR}\bin\dbghelp.dll"
148
 
 
149
 
  ; Data files
150
 
  File "..\..\data\mp.wz"
151
 
  File "..\..\data\warzone.wz"
152
 
 
153
 
  ; Information/documentation files
154
 
  File "/oname=ChangeLog.txt" "..\..\ChangeLog"
155
 
  File "/oname=Authors.txt" "..\..\AUTHORS"
156
 
  File "/oname=License.txt" "..\..\COPYING"
157
 
  File "/oname=Readme.en.txt" "..\..\doc\Readme.en"
158
 
  File "/oname=Readme.de.txt" "..\..\doc\Readme.de"
159
 
  File "/oname=Readme.en.html" "..\..\doc\Readme.en.xhtml"
160
 
  File "/oname=Readme.de.html" "..\..\doc\Readme.de.xhtml"
161
 
 
162
 
  ; Music files
163
 
  SetOutPath "$INSTDIR\mods\global\autoload\music\music"
164
 
  File "..\..\data\mods\global\autoload\music\music\menu.ogg"
165
 
  File "..\..\data\mods\global\autoload\music\music\track1.ogg"
166
 
  File "..\..\data\mods\global\autoload\music\music\track2.ogg"
167
 
  File "..\..\data\mods\global\autoload\music\music\music.wpl"
168
 
 
169
 
  SetOutPath "$INSTDIR\styles"
170
 
 
171
 
  File "/oname=readme.print.css" "..\..\doc\styles\readme.print.css"
172
 
  File "/oname=readme.screen.css" "..\..\doc\styles\readme.screen.css"
173
 
 
174
 
  SetOutPath "$INSTDIR\fonts"
175
 
 
176
 
  File "${EXTDIR}\etc\fonts\fonts.conf"
177
 
  File "${EXTDIR}\etc\fonts\DejaVuSansMono.ttf"
178
 
  File "${EXTDIR}\etc\fonts\DejaVuSansMono-Bold.ttf"
179
 
 
180
 
  ;Store installation folder
181
 
  WriteRegStr HKLM "Software\${PACKAGE_NAME}" "" $INSTDIR
182
 
 
183
 
  ; Write the Windows-uninstall keys
184
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayName" "${PACKAGE_NAME}"
185
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayVersion" "${PACKAGE_VERSION}"
186
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayIcon" "$INSTDIR\${PACKAGE}.exe,0"
187
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "Publisher" "Warzone Resurrection Project"
188
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "URLInfoAbout" "${PACKAGE_BUGREPORT}"
189
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "InstallLocation" "$INSTDIR"
190
 
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "UninstallString" "$INSTDIR\uninstall.exe"
191
 
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "NoModify" 1
192
 
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "NoRepair" 1
193
 
 
194
 
  ;Create uninstaller
195
 
  WriteUninstaller "$INSTDIR\uninstall.exe"
196
 
 
197
 
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
198
 
 
199
 
    ;Create shortcuts
200
 
    CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
201
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"
202
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk" "$INSTDIR\${PACKAGE}.exe"
203
 
 
204
 
  !insertmacro MUI_STARTMENU_WRITE_END
205
 
 
206
 
SectionEnd
207
 
 
208
 
 
209
 
; Installs OpenAL runtime libraries, using Creative's installer
210
 
Section $(TEXT_SecOpenAL) SecOpenAL
211
 
 
212
 
  SetOutPath "$INSTDIR"
213
 
 
214
 
  File "${EXTDIR}\bin\oalinst.exe"
215
 
 
216
 
  ExecWait "$INSTDIR\oalinst.exe"
217
 
 
218
 
SectionEnd
219
 
 
220
 
 
221
 
SectionGroup /e $(TEXT_SecMods) secMods
222
 
 
223
 
Section $(TEXT_SecGrimMod) SecGrimMod
224
 
 
225
 
  SetOutPath "$INSTDIR\mods\global"
226
 
 
227
 
  File "..\..\data\mods\global\grim.wz"
228
 
 
229
 
  SetOutPath "$INSTDIR"
230
 
 
231
 
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
232
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Grim's GFX.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod grim.wz"
233
 
  !insertmacro MUI_STARTMENU_WRITE_END
234
 
 
235
 
SectionEnd
236
 
 
237
 
Section $(TEXT_SecAivolutionMod) SecAivolutionMod
238
 
 
239
 
  SetOutPath "$INSTDIR\mods\global"
240
 
 
241
 
  File "..\..\data\mods\global\aivolution.wz"
242
 
 
243
 
  SetOutPath "$INSTDIR"
244
 
 
245
 
  !insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
246
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Aivolution.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod aivolution.wz"
247
 
  !insertmacro MUI_STARTMENU_WRITE_END
248
 
 
249
 
SectionEnd
250
 
 
251
 
Section $(TEXT_SecMusicMod) SecMusicMod
252
 
 
253
 
  SetOutPath "$INSTDIR\mods\global\autoload"
254
 
 
255
 
  NSISdl::download "http://download.gna.org/warzone/releases/mods/community-music_1.0.AUTHORS"          "music_1.0.AUTHORS.txt"
256
 
  NSISdl::download "http://download.gna.org/warzone/releases/mods/community-music_1.0.wz"               "music_1.0.wz"
257
 
  Pop $R0 ; Get the return value
258
 
  StrCmp $R0 "success" +2
259
 
    MessageBox MB_OK|MB_ICONSTOP "Download of Music mod failed: $R0"
260
 
 
261
 
  SetOutPath "$INSTDIR"
262
 
 
263
 
SectionEnd
264
 
 
265
 
Section $(TEXT_SecNTWMod) SecNTWMod
266
 
 
267
 
  SetOutPath "$INSTDIR\mods\multiplay"
268
 
 
269
 
  File "..\..\data\mods\multiplay\ntw.wz"
270
 
 
271
 
  SetOutPath "$INSTDIR"
272
 
 
273
 
  !insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
274
 
    CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - NTW.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod_mp ntw.wz"
275
 
  !insertmacro MUI_STARTMENU_WRITE_END
276
 
 
277
 
SectionEnd
278
 
 
279
 
SectionGroupEnd
280
 
 
281
 
Section $(TEXT_SecNLS) SecNLS
282
 
  SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
283
 
  File "/oname=${PACKAGE}.mo" "..\..\po\cs.gmo"
284
 
 
285
 
  SetOutPath "$INSTDIR\locale\da\LC_MESSAGES"
286
 
  File "/oname=${PACKAGE}.mo" "..\..\po\da.gmo"
287
 
 
288
 
  SetOutPath "$INSTDIR\locale\de\LC_MESSAGES"
289
 
  File "/oname=${PACKAGE}.mo" "..\..\po\de.gmo"
290
 
 
291
 
  SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES"
292
 
  File "/oname=${PACKAGE}.mo" "..\..\po\en_GB.gmo"
293
 
 
294
 
  SetOutPath "$INSTDIR\locale\es\LC_MESSAGES"
295
 
  File "/oname=${PACKAGE}.mo" "..\..\po\es.gmo"
296
 
 
297
 
  SetOutPath "$INSTDIR\locale\eu\LC_MESSAGES"
298
 
  File "/oname=${PACKAGE}.mo" "..\..\po\eu.gmo"
299
 
 
300
 
  SetOutPath "$INSTDIR\locale\fi\LC_MESSAGES"
301
 
  File "/oname=${PACKAGE}.mo" "..\..\po\fi.gmo"
302
 
 
303
 
  SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES"
304
 
  File "/oname=${PACKAGE}.mo" "..\..\po\fr.gmo"
305
 
 
306
 
  SetOutPath "$INSTDIR\locale\fy\LC_MESSAGES"
307
 
  File "/oname=${PACKAGE}.mo" "..\..\po\fy.gmo"
308
 
 
309
 
  SetOutPath "$INSTDIR\locale\ga\LC_MESSAGES"
310
 
  File "/oname=${PACKAGE}.mo" "..\..\po\ga.gmo"
311
 
 
312
 
  SetOutPath "$INSTDIR\locale\it\LC_MESSAGES"
313
 
  File "/oname=${PACKAGE}.mo" "..\..\po\it.gmo"
314
 
 
315
 
  SetOutPath "$INSTDIR\locale\la\LC_MESSAGES"
316
 
  File "/oname=${PACKAGE}.mo" "..\..\po\la.gmo"
317
 
 
318
 
  SetOutPath "$INSTDIR\locale\lt\LC_MESSAGES"
319
 
  File "/oname=${PACKAGE}.mo" "..\..\po\lt.gmo"
320
 
 
321
 
  SetOutPath "$INSTDIR\locale\lv\LC_MESSAGES"
322
 
  File "/oname=${PACKAGE}.mo" "..\..\po\lv.gmo"
323
 
 
324
 
  SetOutPath "$INSTDIR\locale\nb\LC_MESSAGES"
325
 
  File "/oname=${PACKAGE}.mo" "..\..\po\nb.gmo"
326
 
 
327
 
  SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES"
328
 
  File "/oname=${PACKAGE}.mo" "..\..\po\nl.gmo"
329
 
 
330
 
  SetOutPath "$INSTDIR\locale\nn\LC_MESSAGES"
331
 
  File "/oname=${PACKAGE}.mo" "..\..\po\nn.gmo"
332
 
 
333
 
  SetOutPath "$INSTDIR\locale\pl\LC_MESSAGES"
334
 
  File "/oname=${PACKAGE}.mo" "..\..\po\pl.gmo"
335
 
 
336
 
  SetOutPath "$INSTDIR\locale\pt_BR\LC_MESSAGES"
337
 
  File "/oname=${PACKAGE}.mo" "..\..\po\pt_BR.gmo"
338
 
 
339
 
  SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
340
 
  File "/oname=${PACKAGE}.mo" "..\..\po\pt.gmo"
341
 
 
342
 
  SetOutPath "$INSTDIR\locale\ro\LC_MESSAGES"
343
 
  File "/oname=${PACKAGE}.mo" "..\..\po\ro.gmo"
344
 
 
345
 
  SetOutPath "$INSTDIR\locale\ru\LC_MESSAGES"
346
 
  File "/oname=${PACKAGE}.mo" "..\..\po\ru.gmo"
347
 
 
348
 
  SetOutPath "$INSTDIR\locale\sl\LC_MESSAGES"
349
 
  File "/oname=${PACKAGE}.mo" "..\..\po\sl.gmo"
350
 
 
351
 
  SetOutPath "$INSTDIR\locale\sv\LC_MESSAGES"
352
 
  File "/oname=${PACKAGE}.mo" "..\..\po\sv.gmo"
353
 
 
354
 
  SetOutPath "$INSTDIR\locale\sv_SE\LC_MESSAGES"
355
 
  File "/oname=${PACKAGE}.mo" "..\..\po\sv_SE.gmo"
356
 
 
357
 
  SetOutPath "$INSTDIR\locale\tr\LC_MESSAGES"
358
 
  File "/oname=${PACKAGE}.mo" "..\..\po\tr.gmo"
359
 
 
360
 
  SetOutPath "$INSTDIR\locale\uz\LC_MESSAGES"
361
 
  File "/oname=${PACKAGE}.mo" "..\..\po\uz.gmo"
362
 
 
363
 
  SetOutPath "$INSTDIR\locale\zh_CN\LC_MESSAGES"
364
 
  File "/oname=${PACKAGE}.mo" "..\..\po\zh_CN.gmo"
365
 
 
366
 
SectionEnd
367
 
 
368
 
 
369
 
 
370
 
;--------------------------------
371
 
;Installer Functions
372
 
 
373
 
Function .onInit
374
 
 
375
 
  !insertmacro MUI_LANGDLL_DISPLAY
376
 
 
377
 
FunctionEnd
378
 
 
379
 
Function LaunchLink
380
 
  ExecShell "" "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk"
381
 
FunctionEnd
382
 
 
383
 
;--------------------------------
384
 
;Descriptions
385
 
 
386
 
  ;Language strings
387
 
  LangString TEXT_SecBase ${LANG_ENGLISH} "Standard installation"
388
 
  LangString DESC_SecBase ${LANG_ENGLISH} "Standard installation."
389
 
 
390
 
  LangString TEXT_SecOpenAL ${LANG_ENGLISH} "OpenAL libraries"
391
 
  LangString DESC_SecOpenAL ${LANG_ENGLISH} "Runtime libraries for OpenAL, a free Audio interface. Implementation by Creative Labs."
392
 
 
393
 
  LangString TEXT_SecMods ${LANG_ENGLISH} "Mods"
394
 
  LangString DESC_SecMods ${LANG_ENGLISH} "Various mods."
395
 
 
396
 
  LangString TEXT_SecGrimMod ${LANG_ENGLISH} "Grim's graphics-update"
397
 
  LangString DESC_SecGrimMod ${LANG_ENGLISH} "Grim's graphics-update. Contains more detailed textures for campaign 1 as well as additional texture- and model-updates. Copyright (C) 2005-2007 Grim Moroe, Use is only permited for ${PACKAGE_NAME}."
398
 
 
399
 
  LangString TEXT_SecAivolutionMod ${LANG_ENGLISH} "Aivolution"
400
 
  LangString DESC_SecAivolutionMod ${LANG_ENGLISH} "Improved artificial intelligence that learns."
401
 
 
402
 
  LangString TEXT_SecMusicMod ${LANG_ENGLISH} "Music"
403
 
  LangString DESC_SecMusicMod ${LANG_ENGLISH} "Download and install music."
404
 
 
405
 
  LangString TEXT_SecNLS ${LANG_ENGLISH} "NLS"
406
 
  LangString DESC_SecNLS ${LANG_ENGLISH} "Support for languages other than English."
407
 
 
408
 
  LangString TEXT_SecNTWMod ${LANG_ENGLISH} "NTW: New Team War mod"
409
 
  LangString DESC_SecNTWMod ${LANG_ENGLISH} "NTW: New Team War mod. Modifies most of the weapons and research."
410
 
 
411
 
 
412
 
 
413
 
  LangString TEXT_SecBase ${LANG_DUTCH} "Standaard installatie"
414
 
  LangString DESC_SecBase ${LANG_DUTCH} "Standaard installatie."
415
 
 
416
 
  LangString TEXT_SecOpenAL ${LANG_DUTCH} "OpenAL bibliotheken"
417
 
  LangString DESC_SecOpenAL ${LANG_DUTCH} "Vereiste bibliotheken voor OpenAL, een opensource/vrije Audio Bibliotheek."
418
 
 
419
 
  LangString TEXT_SecMods ${LANG_DUTCH} "Mods"
420
 
  LangString DESC_SecMods ${LANG_DUTCH} "Verschillende mods."
421
 
 
422
 
  LangString TEXT_SecGrimMod ${LANG_DUTCH} "Grim's grafische-update"
423
 
  LangString DESC_SecGrimMod ${LANG_DUTCH} "Grim's grafische-update. Bevat meer gedeta�leerde textures voor campaign 1 en extra texture- en model-updates. Copyright (C) 2005-2007 Grim Moroe, gebruik is alleen toegestaan voor ${PACKAGE_NAME}."
424
 
 
425
 
  LangString TEXT_SecAivolutionMod ${LANG_DUTCH} "Aivolution"
426
 
  LangString DESC_SecAivolutionMod ${LANG_DUTCH} "Verbeterde kunstmatige intelligentie die leert."
427
 
 
428
 
  LangString TEXT_SecMusicMod ${LANG_DUTCH} "Muziek"
429
 
  LangString DESC_SecMusicMod ${LANG_DUTCH} "Muziek downloaden en installeren."
430
 
 
431
 
  LangString TEXT_SecNLS ${LANG_DUTCH} "NLS"
432
 
  LangString DESC_SecNLS ${LANG_DUTCH} "Ondersteuning voor andere talen dan Engels (Nederlands inbegrepen)."
433
 
 
434
 
  LangString TEXT_SecNTWMod ${LANG_DUTCH} "NTW: New Team War mod"
435
 
  LangString DESC_SecNTWMod ${LANG_DUTCH} "NTW: New Team War mod. Wijzigd de meeste wapens en onderzoeken."
436
 
 
437
 
 
438
 
 
439
 
  LangString TEXT_SecBase ${LANG_GERMAN} "Standardinstallation"
440
 
  LangString DESC_SecBase ${LANG_GERMAN} "Standardinstallation."
441
 
 
442
 
  LangString TEXT_SecOpenAL ${LANG_GERMAN} "OpenAL Bibliotheken"
443
 
  LangString DESC_SecOpenAL ${LANG_GERMAN} "Bibliotheken f�r OpenAL, ein freies Audio Interface. Implementation von Creative Labs."
444
 
 
445
 
  LangString TEXT_SecMods ${LANG_GERMAN} "Mods"
446
 
  LangString DESC_SecMods ${LANG_GERMAN} "Verschiedene Mods."
447
 
 
448
 
  LangString TEXT_SecGrimMod ${LANG_GERMAN} "Grims Grafik-Update"
449
 
  LangString DESC_SecGrimMod ${LANG_GERMAN} "Grims Grafik-Update. Enth�lt detailliertere Texturen f�r Kampagne 1 sowie einige andere Textur- und Model-Updates. Copyright (C) 2005-2007 Grim Moroe, Verwendung nur f�r ${PACKAGE_NAME} gestattet."
450
 
 
451
 
  LangString TEXT_SecAivolutionMod ${LANG_GERMAN} "Aivolution"
452
 
  LangString DESC_SecAivolutionMod ${LANG_GERMAN} "Verbesserte k�nstliche Intelligenz, die dazulernt."
453
 
 
454
 
  LangString TEXT_SecMusicMod ${LANG_GERMAN} "Musik"
455
 
  LangString DESC_SecMusicMod ${LANG_GERMAN} "Musik herunterladen und installieren."
456
 
 
457
 
  LangString TEXT_SecNLS ${LANG_GERMAN} "NLS"
458
 
  LangString DESC_SecNLS ${LANG_GERMAN} "Unterst�tzung f�r Sprachen au�er Englisch (Deutsch inbegriffen)."
459
 
 
460
 
  LangString TEXT_SecNTWMod ${LANG_GERMAN} "NTW: New Team War mod"
461
 
  LangString DESC_SecNTWMod ${LANG_GERMAN} "NTW: New Team War mod. Ver�ndert die meisten Forschungen und Waffen."
462
 
 
463
 
 
464
 
 
465
 
  LangString TEXT_RunWarzone ${LANG_ENGLISH} "Run ${PACKAGE_NAME}"
466
 
  LangString TEXT_RunWarzone ${LANG_DUTCH} "Start ${PACKAGE_NAME}"
467
 
  LangString TEXT_RunWarzone ${LANG_GERMAN} "Starte ${PACKAGE_NAME}"
468
 
 
469
 
 
470
 
  LangString TEXT_Readme ${LANG_ENGLISH} "$INSTDIR\Readme.en.html"
471
 
  LangString TEXT_Readme ${LANG_DUTCH}   "$INSTDIR\Readme.en.html"
472
 
  LangString TEXT_Readme ${LANG_GERMAN}  "$INSTDIR\Readme.de.html"
473
 
 
474
 
 
475
 
  ;Assign language strings to sections
476
 
  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
477
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecBase} $(DESC_SecBase)
478
 
 
479
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecOpenAL} $(DESC_SecOpenAL)
480
 
 
481
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecMods} $(DESC_SecMods)
482
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecGrimMod} $(DESC_SecGrimMod)
483
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecAivolutionMod} $(DESC_SecAivolutionMod)
484
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecMusicMod} $(DESC_SecMusicMod)
485
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecNTWMod} $(DESC_SecNTWMod)
486
 
 
487
 
    !insertmacro MUI_DESCRIPTION_TEXT ${SecNLS} $(DESC_SecNLS)
488
 
  !insertmacro MUI_FUNCTION_DESCRIPTION_END
489
 
 
490
 
 
491
 
 
492
 
;--------------------------------
493
 
;Uninstaller Section
494
 
 
495
 
Section "Uninstall"
496
 
 
497
 
  ;ADD YOUR OWN FILES HERE...
498
 
 
499
 
  Delete "$INSTDIR\${PACKAGE}.exe"
500
 
 
501
 
  Delete "$INSTDIR\oalinst.exe"
502
 
 
503
 
  Delete "$INSTDIR\dbghelp.dll.license.txt"
504
 
  Delete "$INSTDIR\dbghelp.dll"
505
 
 
506
 
  Delete "$INSTDIR\warzone.wz"
507
 
  Delete "$INSTDIR\mp.wz"
508
 
 
509
 
  Delete "$INSTDIR\Readme.en.txt"
510
 
  Delete "$INSTDIR\Readme.de.txt"
511
 
  Delete "$INSTDIR\Readme.en.html"
512
 
  Delete "$INSTDIR\Readme.de.html"
513
 
 
514
 
  Delete "$INSTDIR\License.txt"
515
 
  Delete "$INSTDIR\Authors.txt"
516
 
  Delete "$INSTDIR\ChangeLog.txt"
517
 
 
518
 
  Delete "$INSTDIR\mods\global\autoload\music\music\menu.ogg"
519
 
  Delete "$INSTDIR\mods\global\autoload\music\music\track1.ogg"
520
 
  Delete "$INSTDIR\mods\global\autoload\music\music\track2.ogg"
521
 
  Delete "$INSTDIR\mods\global\autoload\music\music\music.wpl"
522
 
  RMDir "$INSTDIR\mods\global\autoload\music\music"
523
 
  RMDir "$INSTDIR\mods\global\autoload\music"
524
 
 
525
 
  Delete "$INSTDIR\uninstall.exe"
526
 
 
527
 
  Delete "$INSTDIR\styles\readme.print.css"
528
 
  Delete "$INSTDIR\styles\readme.screen.css"
529
 
  RMDir "$INSTDIR\styles"
530
 
 
531
 
  Delete "$INSTDIR\fonts\fonts.conf"
532
 
  Delete "$INSTDIR\fonts\DejaVuSansMono.ttf"
533
 
  Delete "$INSTDIR\fonts\DejaVuSansMono-Bold.ttf"
534
 
  RMDir "$INSTDIR\fonts"
535
 
 
536
 
  Delete "$INSTDIR\mods\global\autoload\music_1.0.AUTHORS.txt"
537
 
  Delete "$INSTDIR\mods\global\autoload\music_1.0.wz"
538
 
  RMDir "$INSTDIR\mods\global\autoload"
539
 
 
540
 
  Delete "$INSTDIR\mods\global\aivolution.wz"
541
 
  Delete "$INSTDIR\mods\global\grim.wz"
542
 
  RMDir "$INSTDIR\mods\global"
543
 
 
544
 
  Delete "$INSTDIR\mods\multiplay\ntw.wz"
545
 
  RMDir "$INSTDIR\mods\multiplay"
546
 
  RMDir "$INSTDIR\mods"
547
 
 
548
 
  Delete "$INSTDIR\locale\cs\LC_MESSAGES\${PACKAGE}.mo"
549
 
  RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
550
 
  RMDir "$INSTDIR\locale\cs"
551
 
 
552
 
  Delete "$INSTDIR\locale\da\LC_MESSAGES\${PACKAGE}.mo"
553
 
  RMDir "$INSTDIR\locale\da\LC_MESSAGES"
554
 
  RMDir "$INSTDIR\locale\da"
555
 
 
556
 
  Delete "$INSTDIR\locale\de\LC_MESSAGES\${PACKAGE}.mo"
557
 
  RMDir "$INSTDIR\locale\de\LC_MESSAGES"
558
 
  RMDir "$INSTDIR\locale\de"
559
 
 
560
 
  Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\${PACKAGE}.mo"
561
 
  RMDir "$INSTDIR\locale\en_GB\LC_MESSAGES"
562
 
  RMDir "$INSTDIR\locale\en_GB"
563
 
 
564
 
  Delete "$INSTDIR\locale\es\LC_MESSAGES\${PACKAGE}.mo"
565
 
  RMDir "$INSTDIR\locale\es\LC_MESSAGES"
566
 
  RMDir "$INSTDIR\locale\es"
567
 
 
568
 
  Delete "$INSTDIR\locale\eu\LC_MESSAGES\${PACKAGE}.mo"
569
 
  RMDir "$INSTDIR\locale\eu\LC_MESSAGES"
570
 
  RMDir "$INSTDIR\locale\eu"
571
 
 
572
 
  Delete "$INSTDIR\locale\fi\LC_MESSAGES\${PACKAGE}.mo"
573
 
  RMDir "$INSTDIR\locale\fi\LC_MESSAGES"
574
 
  RMDir "$INSTDIR\locale\fi"
575
 
 
576
 
  Delete "$INSTDIR\locale\fr\LC_MESSAGES\${PACKAGE}.mo"
577
 
  RMDir "$INSTDIR\locale\fr\LC_MESSAGES"
578
 
  RMDir "$INSTDIR\locale\fr"
579
 
 
580
 
  Delete "$INSTDIR\locale\fy\LC_MESSAGES\${PACKAGE}.mo"
581
 
  RMDir "$INSTDIR\locale\fy\LC_MESSAGES"
582
 
  RMDir "$INSTDIR\locale\fy"
583
 
 
584
 
  Delete "$INSTDIR\locale\ga\LC_MESSAGES\${PACKAGE}.mo"
585
 
  RMDir "$INSTDIR\locale\ga\LC_MESSAGES"
586
 
  RMDir "$INSTDIR\locale\ga"
587
 
 
588
 
  Delete "$INSTDIR\locale\it\LC_MESSAGES\${PACKAGE}.mo"
589
 
  RMDir "$INSTDIR\locale\it\LC_MESSAGES"
590
 
  RMDir "$INSTDIR\locale\it"
591
 
 
592
 
  Delete "$INSTDIR\locale\la\LC_MESSAGES\${PACKAGE}.mo"
593
 
  RMDir "$INSTDIR\locale\la\LC_MESSAGES"
594
 
  RMDir "$INSTDIR\locale\la"
595
 
 
596
 
  Delete "$INSTDIR\locale\lt\LC_MESSAGES\${PACKAGE}.mo"
597
 
  RMDir "$INSTDIR\locale\lt\LC_MESSAGES"
598
 
  RMDir "$INSTDIR\locale\lt"
599
 
 
600
 
  Delete "$INSTDIR\locale\lv\LC_MESSAGES\${PACKAGE}.mo"
601
 
  RMDir "$INSTDIR\locale\lv\LC_MESSAGES"
602
 
  RMDir "$INSTDIR\locale\lv"
603
 
 
604
 
  Delete "$INSTDIR\locale\nb\LC_MESSAGES\${PACKAGE}.mo"
605
 
  RMDir "$INSTDIR\locale\nb\LC_MESSAGES"
606
 
  RMDir "$INSTDIR\locale\nb"
607
 
 
608
 
  Delete "$INSTDIR\locale\nl\LC_MESSAGES\${PACKAGE}.mo"
609
 
  RMDir "$INSTDIR\locale\nl\LC_MESSAGES"
610
 
  RMDir "$INSTDIR\locale\nl"
611
 
 
612
 
  Delete "$INSTDIR\locale\nn\LC_MESSAGES\${PACKAGE}.mo"
613
 
  RMDir "$INSTDIR\locale\nn\LC_MESSAGES"
614
 
  RMDir "$INSTDIR\locale\nn"
615
 
 
616
 
  Delete "$INSTDIR\locale\pl\LC_MESSAGES\${PACKAGE}.mo"
617
 
  RMDir "$INSTDIR\locale\pl\LC_MESSAGES"
618
 
  RMDir "$INSTDIR\locale\pl"
619
 
 
620
 
  Delete "$INSTDIR\locale\pt_BR\LC_MESSAGES\${PACKAGE}.mo"
621
 
  RMDir "$INSTDIR\locale\pt_BR\LC_MESSAGES"
622
 
  RMDir "$INSTDIR\locale\pt_BR"
623
 
 
624
 
  Delete "$INSTDIR\locale\pt\LC_MESSAGES\${PACKAGE}.mo"
625
 
  RMDir "$INSTDIR\locale\pt\LC_MESSAGES"
626
 
  RMDir "$INSTDIR\locale\pt"
627
 
 
628
 
  Delete "$INSTDIR\locale\ro\LC_MESSAGES\${PACKAGE}.mo"
629
 
  RMDir "$INSTDIR\locale\ro\LC_MESSAGES"
630
 
  RMDir "$INSTDIR\locale\ro"
631
 
 
632
 
  Delete "$INSTDIR\locale\ru\LC_MESSAGES\${PACKAGE}.mo"
633
 
  RMDir "$INSTDIR\locale\ru\LC_MESSAGES"
634
 
  RMDir "$INSTDIR\locale\ru"
635
 
 
636
 
  Delete "$INSTDIR\locale\sl\LC_MESSAGES\${PACKAGE}.mo"
637
 
  RMDir "$INSTDIR\locale\sl\LC_MESSAGES"
638
 
  RMDir "$INSTDIR\locale\sl"
639
 
 
640
 
  Delete "$INSTDIR\locale\sv\LC_MESSAGES\${PACKAGE}.mo"
641
 
  RMDir "$INSTDIR\locale\sv\LC_MESSAGES"
642
 
  RMDir "$INSTDIR\locale\sv"
643
 
 
644
 
  Delete "$INSTDIR\locale\sv_SE\LC_MESSAGES\${PACKAGE}.mo"
645
 
  RMDir "$INSTDIR\locale\sv_SE\LC_MESSAGES"
646
 
  RMDir "$INSTDIR\locale\sv_SE"
647
 
 
648
 
  Delete "$INSTDIR\locale\tr\LC_MESSAGES\${PACKAGE}.mo"
649
 
  RMDir "$INSTDIR\locale\tr\LC_MESSAGES"
650
 
  RMDir "$INSTDIR\locale\tr"
651
 
 
652
 
  Delete "$INSTDIR\locale\uz\LC_MESSAGES\${PACKAGE}.mo"
653
 
  RMDir "$INSTDIR\locale\uz\LC_MESSAGES"
654
 
  RMDir "$INSTDIR\locale\uz"
655
 
 
656
 
  Delete "$INSTDIR\locale\zh_CN\LC_MESSAGES\${PACKAGE}.mo"
657
 
  RMDir "$INSTDIR\locale\zh_CN\LC_MESSAGES"
658
 
  RMDir "$INSTDIR\locale\zh_CN"
659
 
 
660
 
  RMDir "$INSTDIR\locale"
661
 
  RMDir "$INSTDIR"
662
 
 
663
 
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk"
664
 
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk"
665
 
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Grim's GFX.lnk"
666
 
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Aivolution.lnk"
667
 
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - NTW.lnk"
668
 
  RMDir "$SMPROGRAMS\$STARTMENU_FOLDER"
669
 
 
670
 
  ;Delete empty start menu parent diretories
671
 
  !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
672
 
  StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
673
 
 
674
 
  startMenuDeleteLoop:
675
 
        ClearErrors
676
 
    RMDir $MUI_TEMP
677
 
    GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
678
 
 
679
 
    IfErrors startMenuDeleteLoopDone
680
 
 
681
 
    StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
682
 
  startMenuDeleteLoopDone:
683
 
 
684
 
  DeleteRegValue HKLM "Software\${PACKAGE_NAME}" "Start Menu Folder"
685
 
  DeleteRegValue HKLM "Software\${PACKAGE_NAME}" ""
686
 
  DeleteRegKey /ifempty HKLM "Software\${PACKAGE_NAME}"
687
 
 
688
 
  ; Unregister with Windows' uninstall system
689
 
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}"
690
 
 
691
 
SectionEnd
692
 
 
693
 
;--------------------------------
694
 
;Uninstaller Functions
695
 
 
696
 
Function un.onInit
697
 
 
698
 
  !insertmacro MUI_UNGETLANGUAGE
699
 
 
700
 
FunctionEnd