1
; This file is part of Warzone 2100.
2
; Copyright (C) 2006-2007 Warzone Resurrection Project
3
; Copyright (C) 2006 Dennis Schridde
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.
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.
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
19
; NSIS Modern User Interface
20
; Warzone 2100 Resurrection Installer script
23
;--------------------------------
28
;--------------------------------
32
Name "${PACKAGE_NAME}"
33
OutFile "${PACKAGE}-${PACKAGE_VERSION}.exe"
35
;Default installation folder
36
InstallDir "$PROGRAMFILES\${PACKAGE_NAME}"
38
;Get installation folder from registry if available
39
InstallDirRegKey HKLM "Software\${PACKAGE_NAME}" ""
41
SetCompressor /FINAL /SOLID lzma
43
;--------------------------------
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}"
56
;--------------------------------
62
;--------------------------------
65
!define MUI_ICON "..\..\icons\warzone2100.ico"
66
!define MUI_UNICON "..\..\icons\warzone2100.uninstall.ico"
68
!define MUI_ABORTWARNING
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
74
; !define MUI_LICENSEPAGE_RADIOBUTTONS
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"
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)
90
;--------------------------------
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
101
!insertmacro MUI_UNPAGE_WELCOME
102
!insertmacro MUI_UNPAGE_CONFIRM
103
!insertmacro MUI_UNPAGE_INSTFILES
104
!insertmacro MUI_UNPAGE_FINISH
106
;--------------------------------
109
!insertmacro MUI_LANGUAGE "English" # first language is the default language
110
!insertmacro MUI_LANGUAGE "Dutch"
111
!insertmacro MUI_LANGUAGE "German"
113
;--------------------------------
114
;License Language String
116
LicenseLangString MUILicense ${LANG_ENGLISH} "..\..\COPYING"
117
LicenseLangString MUILicense ${LANG_DUTCH} "..\..\COPYING"
118
LicenseLangString MUILicense ${LANG_GERMAN} "..\..\COPYING"
120
;--------------------------------
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)
127
!insertmacro MUI_RESERVEFILE_LANGDLL
131
;--------------------------------
134
Section $(TEXT_SecBase) SecBase
138
SetOutPath "$INSTDIR"
140
;ADD YOUR OWN FILES HERE...
143
File "..\..\src\${PACKAGE}.exe"
145
; Windows dbghelp library
146
File "${EXTDIR}\bin\dbghelp.dll.license.txt"
147
File "${EXTDIR}\bin\dbghelp.dll"
150
File "..\..\data\mp.wz"
151
File "..\..\data\warzone.wz"
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"
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"
169
SetOutPath "$INSTDIR\styles"
171
File "/oname=readme.print.css" "..\..\doc\styles\readme.print.css"
172
File "/oname=readme.screen.css" "..\..\doc\styles\readme.screen.css"
174
SetOutPath "$INSTDIR\fonts"
176
File "${EXTDIR}\etc\fonts\fonts.conf"
177
File "${EXTDIR}\etc\fonts\DejaVuSansMono.ttf"
178
File "${EXTDIR}\etc\fonts\DejaVuSansMono-Bold.ttf"
180
;Store installation folder
181
WriteRegStr HKLM "Software\${PACKAGE_NAME}" "" $INSTDIR
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
195
WriteUninstaller "$INSTDIR\uninstall.exe"
197
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
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"
204
!insertmacro MUI_STARTMENU_WRITE_END
209
; Installs OpenAL runtime libraries, using Creative's installer
210
Section $(TEXT_SecOpenAL) SecOpenAL
212
SetOutPath "$INSTDIR"
214
File "${EXTDIR}\bin\oalinst.exe"
216
ExecWait "$INSTDIR\oalinst.exe"
221
SectionGroup /e $(TEXT_SecMods) secMods
223
Section $(TEXT_SecGrimMod) SecGrimMod
225
SetOutPath "$INSTDIR\mods\global"
227
File "..\..\data\mods\global\grim.wz"
229
SetOutPath "$INSTDIR"
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
237
Section $(TEXT_SecAivolutionMod) SecAivolutionMod
239
SetOutPath "$INSTDIR\mods\global"
241
File "..\..\data\mods\global\aivolution.wz"
243
SetOutPath "$INSTDIR"
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
251
Section $(TEXT_SecMusicMod) SecMusicMod
253
SetOutPath "$INSTDIR\mods\global\autoload"
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"
261
SetOutPath "$INSTDIR"
265
Section $(TEXT_SecNTWMod) SecNTWMod
267
SetOutPath "$INSTDIR\mods\multiplay"
269
File "..\..\data\mods\multiplay\ntw.wz"
271
SetOutPath "$INSTDIR"
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
281
Section $(TEXT_SecNLS) SecNLS
282
SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
283
File "/oname=${PACKAGE}.mo" "..\..\po\cs.gmo"
285
SetOutPath "$INSTDIR\locale\da\LC_MESSAGES"
286
File "/oname=${PACKAGE}.mo" "..\..\po\da.gmo"
288
SetOutPath "$INSTDIR\locale\de\LC_MESSAGES"
289
File "/oname=${PACKAGE}.mo" "..\..\po\de.gmo"
291
SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES"
292
File "/oname=${PACKAGE}.mo" "..\..\po\en_GB.gmo"
294
SetOutPath "$INSTDIR\locale\es\LC_MESSAGES"
295
File "/oname=${PACKAGE}.mo" "..\..\po\es.gmo"
297
SetOutPath "$INSTDIR\locale\eu\LC_MESSAGES"
298
File "/oname=${PACKAGE}.mo" "..\..\po\eu.gmo"
300
SetOutPath "$INSTDIR\locale\fi\LC_MESSAGES"
301
File "/oname=${PACKAGE}.mo" "..\..\po\fi.gmo"
303
SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES"
304
File "/oname=${PACKAGE}.mo" "..\..\po\fr.gmo"
306
SetOutPath "$INSTDIR\locale\fy\LC_MESSAGES"
307
File "/oname=${PACKAGE}.mo" "..\..\po\fy.gmo"
309
SetOutPath "$INSTDIR\locale\ga\LC_MESSAGES"
310
File "/oname=${PACKAGE}.mo" "..\..\po\ga.gmo"
312
SetOutPath "$INSTDIR\locale\it\LC_MESSAGES"
313
File "/oname=${PACKAGE}.mo" "..\..\po\it.gmo"
315
SetOutPath "$INSTDIR\locale\la\LC_MESSAGES"
316
File "/oname=${PACKAGE}.mo" "..\..\po\la.gmo"
318
SetOutPath "$INSTDIR\locale\lt\LC_MESSAGES"
319
File "/oname=${PACKAGE}.mo" "..\..\po\lt.gmo"
321
SetOutPath "$INSTDIR\locale\lv\LC_MESSAGES"
322
File "/oname=${PACKAGE}.mo" "..\..\po\lv.gmo"
324
SetOutPath "$INSTDIR\locale\nb\LC_MESSAGES"
325
File "/oname=${PACKAGE}.mo" "..\..\po\nb.gmo"
327
SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES"
328
File "/oname=${PACKAGE}.mo" "..\..\po\nl.gmo"
330
SetOutPath "$INSTDIR\locale\nn\LC_MESSAGES"
331
File "/oname=${PACKAGE}.mo" "..\..\po\nn.gmo"
333
SetOutPath "$INSTDIR\locale\pl\LC_MESSAGES"
334
File "/oname=${PACKAGE}.mo" "..\..\po\pl.gmo"
336
SetOutPath "$INSTDIR\locale\pt_BR\LC_MESSAGES"
337
File "/oname=${PACKAGE}.mo" "..\..\po\pt_BR.gmo"
339
SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
340
File "/oname=${PACKAGE}.mo" "..\..\po\pt.gmo"
342
SetOutPath "$INSTDIR\locale\ro\LC_MESSAGES"
343
File "/oname=${PACKAGE}.mo" "..\..\po\ro.gmo"
345
SetOutPath "$INSTDIR\locale\ru\LC_MESSAGES"
346
File "/oname=${PACKAGE}.mo" "..\..\po\ru.gmo"
348
SetOutPath "$INSTDIR\locale\sl\LC_MESSAGES"
349
File "/oname=${PACKAGE}.mo" "..\..\po\sl.gmo"
351
SetOutPath "$INSTDIR\locale\sv\LC_MESSAGES"
352
File "/oname=${PACKAGE}.mo" "..\..\po\sv.gmo"
354
SetOutPath "$INSTDIR\locale\sv_SE\LC_MESSAGES"
355
File "/oname=${PACKAGE}.mo" "..\..\po\sv_SE.gmo"
357
SetOutPath "$INSTDIR\locale\tr\LC_MESSAGES"
358
File "/oname=${PACKAGE}.mo" "..\..\po\tr.gmo"
360
SetOutPath "$INSTDIR\locale\uz\LC_MESSAGES"
361
File "/oname=${PACKAGE}.mo" "..\..\po\uz.gmo"
363
SetOutPath "$INSTDIR\locale\zh_CN\LC_MESSAGES"
364
File "/oname=${PACKAGE}.mo" "..\..\po\zh_CN.gmo"
370
;--------------------------------
375
!insertmacro MUI_LANGDLL_DISPLAY
380
ExecShell "" "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk"
383
;--------------------------------
387
LangString TEXT_SecBase ${LANG_ENGLISH} "Standard installation"
388
LangString DESC_SecBase ${LANG_ENGLISH} "Standard installation."
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."
393
LangString TEXT_SecMods ${LANG_ENGLISH} "Mods"
394
LangString DESC_SecMods ${LANG_ENGLISH} "Various mods."
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}."
399
LangString TEXT_SecAivolutionMod ${LANG_ENGLISH} "Aivolution"
400
LangString DESC_SecAivolutionMod ${LANG_ENGLISH} "Improved artificial intelligence that learns."
402
LangString TEXT_SecMusicMod ${LANG_ENGLISH} "Music"
403
LangString DESC_SecMusicMod ${LANG_ENGLISH} "Download and install music."
405
LangString TEXT_SecNLS ${LANG_ENGLISH} "NLS"
406
LangString DESC_SecNLS ${LANG_ENGLISH} "Support for languages other than English."
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."
413
LangString TEXT_SecBase ${LANG_DUTCH} "Standaard installatie"
414
LangString DESC_SecBase ${LANG_DUTCH} "Standaard installatie."
416
LangString TEXT_SecOpenAL ${LANG_DUTCH} "OpenAL bibliotheken"
417
LangString DESC_SecOpenAL ${LANG_DUTCH} "Vereiste bibliotheken voor OpenAL, een opensource/vrije Audio Bibliotheek."
419
LangString TEXT_SecMods ${LANG_DUTCH} "Mods"
420
LangString DESC_SecMods ${LANG_DUTCH} "Verschillende mods."
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}."
425
LangString TEXT_SecAivolutionMod ${LANG_DUTCH} "Aivolution"
426
LangString DESC_SecAivolutionMod ${LANG_DUTCH} "Verbeterde kunstmatige intelligentie die leert."
428
LangString TEXT_SecMusicMod ${LANG_DUTCH} "Muziek"
429
LangString DESC_SecMusicMod ${LANG_DUTCH} "Muziek downloaden en installeren."
431
LangString TEXT_SecNLS ${LANG_DUTCH} "NLS"
432
LangString DESC_SecNLS ${LANG_DUTCH} "Ondersteuning voor andere talen dan Engels (Nederlands inbegrepen)."
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."
439
LangString TEXT_SecBase ${LANG_GERMAN} "Standardinstallation"
440
LangString DESC_SecBase ${LANG_GERMAN} "Standardinstallation."
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."
445
LangString TEXT_SecMods ${LANG_GERMAN} "Mods"
446
LangString DESC_SecMods ${LANG_GERMAN} "Verschiedene Mods."
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."
451
LangString TEXT_SecAivolutionMod ${LANG_GERMAN} "Aivolution"
452
LangString DESC_SecAivolutionMod ${LANG_GERMAN} "Verbesserte k�nstliche Intelligenz, die dazulernt."
454
LangString TEXT_SecMusicMod ${LANG_GERMAN} "Musik"
455
LangString DESC_SecMusicMod ${LANG_GERMAN} "Musik herunterladen und installieren."
457
LangString TEXT_SecNLS ${LANG_GERMAN} "NLS"
458
LangString DESC_SecNLS ${LANG_GERMAN} "Unterst�tzung f�r Sprachen au�er Englisch (Deutsch inbegriffen)."
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."
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}"
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"
475
;Assign language strings to sections
476
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
477
!insertmacro MUI_DESCRIPTION_TEXT ${SecBase} $(DESC_SecBase)
479
!insertmacro MUI_DESCRIPTION_TEXT ${SecOpenAL} $(DESC_SecOpenAL)
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)
487
!insertmacro MUI_DESCRIPTION_TEXT ${SecNLS} $(DESC_SecNLS)
488
!insertmacro MUI_FUNCTION_DESCRIPTION_END
492
;--------------------------------
497
;ADD YOUR OWN FILES HERE...
499
Delete "$INSTDIR\${PACKAGE}.exe"
501
Delete "$INSTDIR\oalinst.exe"
503
Delete "$INSTDIR\dbghelp.dll.license.txt"
504
Delete "$INSTDIR\dbghelp.dll"
506
Delete "$INSTDIR\warzone.wz"
507
Delete "$INSTDIR\mp.wz"
509
Delete "$INSTDIR\Readme.en.txt"
510
Delete "$INSTDIR\Readme.de.txt"
511
Delete "$INSTDIR\Readme.en.html"
512
Delete "$INSTDIR\Readme.de.html"
514
Delete "$INSTDIR\License.txt"
515
Delete "$INSTDIR\Authors.txt"
516
Delete "$INSTDIR\ChangeLog.txt"
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"
525
Delete "$INSTDIR\uninstall.exe"
527
Delete "$INSTDIR\styles\readme.print.css"
528
Delete "$INSTDIR\styles\readme.screen.css"
529
RMDir "$INSTDIR\styles"
531
Delete "$INSTDIR\fonts\fonts.conf"
532
Delete "$INSTDIR\fonts\DejaVuSansMono.ttf"
533
Delete "$INSTDIR\fonts\DejaVuSansMono-Bold.ttf"
534
RMDir "$INSTDIR\fonts"
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"
540
Delete "$INSTDIR\mods\global\aivolution.wz"
541
Delete "$INSTDIR\mods\global\grim.wz"
542
RMDir "$INSTDIR\mods\global"
544
Delete "$INSTDIR\mods\multiplay\ntw.wz"
545
RMDir "$INSTDIR\mods\multiplay"
546
RMDir "$INSTDIR\mods"
548
Delete "$INSTDIR\locale\cs\LC_MESSAGES\${PACKAGE}.mo"
549
RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
550
RMDir "$INSTDIR\locale\cs"
552
Delete "$INSTDIR\locale\da\LC_MESSAGES\${PACKAGE}.mo"
553
RMDir "$INSTDIR\locale\da\LC_MESSAGES"
554
RMDir "$INSTDIR\locale\da"
556
Delete "$INSTDIR\locale\de\LC_MESSAGES\${PACKAGE}.mo"
557
RMDir "$INSTDIR\locale\de\LC_MESSAGES"
558
RMDir "$INSTDIR\locale\de"
560
Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\${PACKAGE}.mo"
561
RMDir "$INSTDIR\locale\en_GB\LC_MESSAGES"
562
RMDir "$INSTDIR\locale\en_GB"
564
Delete "$INSTDIR\locale\es\LC_MESSAGES\${PACKAGE}.mo"
565
RMDir "$INSTDIR\locale\es\LC_MESSAGES"
566
RMDir "$INSTDIR\locale\es"
568
Delete "$INSTDIR\locale\eu\LC_MESSAGES\${PACKAGE}.mo"
569
RMDir "$INSTDIR\locale\eu\LC_MESSAGES"
570
RMDir "$INSTDIR\locale\eu"
572
Delete "$INSTDIR\locale\fi\LC_MESSAGES\${PACKAGE}.mo"
573
RMDir "$INSTDIR\locale\fi\LC_MESSAGES"
574
RMDir "$INSTDIR\locale\fi"
576
Delete "$INSTDIR\locale\fr\LC_MESSAGES\${PACKAGE}.mo"
577
RMDir "$INSTDIR\locale\fr\LC_MESSAGES"
578
RMDir "$INSTDIR\locale\fr"
580
Delete "$INSTDIR\locale\fy\LC_MESSAGES\${PACKAGE}.mo"
581
RMDir "$INSTDIR\locale\fy\LC_MESSAGES"
582
RMDir "$INSTDIR\locale\fy"
584
Delete "$INSTDIR\locale\ga\LC_MESSAGES\${PACKAGE}.mo"
585
RMDir "$INSTDIR\locale\ga\LC_MESSAGES"
586
RMDir "$INSTDIR\locale\ga"
588
Delete "$INSTDIR\locale\it\LC_MESSAGES\${PACKAGE}.mo"
589
RMDir "$INSTDIR\locale\it\LC_MESSAGES"
590
RMDir "$INSTDIR\locale\it"
592
Delete "$INSTDIR\locale\la\LC_MESSAGES\${PACKAGE}.mo"
593
RMDir "$INSTDIR\locale\la\LC_MESSAGES"
594
RMDir "$INSTDIR\locale\la"
596
Delete "$INSTDIR\locale\lt\LC_MESSAGES\${PACKAGE}.mo"
597
RMDir "$INSTDIR\locale\lt\LC_MESSAGES"
598
RMDir "$INSTDIR\locale\lt"
600
Delete "$INSTDIR\locale\lv\LC_MESSAGES\${PACKAGE}.mo"
601
RMDir "$INSTDIR\locale\lv\LC_MESSAGES"
602
RMDir "$INSTDIR\locale\lv"
604
Delete "$INSTDIR\locale\nb\LC_MESSAGES\${PACKAGE}.mo"
605
RMDir "$INSTDIR\locale\nb\LC_MESSAGES"
606
RMDir "$INSTDIR\locale\nb"
608
Delete "$INSTDIR\locale\nl\LC_MESSAGES\${PACKAGE}.mo"
609
RMDir "$INSTDIR\locale\nl\LC_MESSAGES"
610
RMDir "$INSTDIR\locale\nl"
612
Delete "$INSTDIR\locale\nn\LC_MESSAGES\${PACKAGE}.mo"
613
RMDir "$INSTDIR\locale\nn\LC_MESSAGES"
614
RMDir "$INSTDIR\locale\nn"
616
Delete "$INSTDIR\locale\pl\LC_MESSAGES\${PACKAGE}.mo"
617
RMDir "$INSTDIR\locale\pl\LC_MESSAGES"
618
RMDir "$INSTDIR\locale\pl"
620
Delete "$INSTDIR\locale\pt_BR\LC_MESSAGES\${PACKAGE}.mo"
621
RMDir "$INSTDIR\locale\pt_BR\LC_MESSAGES"
622
RMDir "$INSTDIR\locale\pt_BR"
624
Delete "$INSTDIR\locale\pt\LC_MESSAGES\${PACKAGE}.mo"
625
RMDir "$INSTDIR\locale\pt\LC_MESSAGES"
626
RMDir "$INSTDIR\locale\pt"
628
Delete "$INSTDIR\locale\ro\LC_MESSAGES\${PACKAGE}.mo"
629
RMDir "$INSTDIR\locale\ro\LC_MESSAGES"
630
RMDir "$INSTDIR\locale\ro"
632
Delete "$INSTDIR\locale\ru\LC_MESSAGES\${PACKAGE}.mo"
633
RMDir "$INSTDIR\locale\ru\LC_MESSAGES"
634
RMDir "$INSTDIR\locale\ru"
636
Delete "$INSTDIR\locale\sl\LC_MESSAGES\${PACKAGE}.mo"
637
RMDir "$INSTDIR\locale\sl\LC_MESSAGES"
638
RMDir "$INSTDIR\locale\sl"
640
Delete "$INSTDIR\locale\sv\LC_MESSAGES\${PACKAGE}.mo"
641
RMDir "$INSTDIR\locale\sv\LC_MESSAGES"
642
RMDir "$INSTDIR\locale\sv"
644
Delete "$INSTDIR\locale\sv_SE\LC_MESSAGES\${PACKAGE}.mo"
645
RMDir "$INSTDIR\locale\sv_SE\LC_MESSAGES"
646
RMDir "$INSTDIR\locale\sv_SE"
648
Delete "$INSTDIR\locale\tr\LC_MESSAGES\${PACKAGE}.mo"
649
RMDir "$INSTDIR\locale\tr\LC_MESSAGES"
650
RMDir "$INSTDIR\locale\tr"
652
Delete "$INSTDIR\locale\uz\LC_MESSAGES\${PACKAGE}.mo"
653
RMDir "$INSTDIR\locale\uz\LC_MESSAGES"
654
RMDir "$INSTDIR\locale\uz"
656
Delete "$INSTDIR\locale\zh_CN\LC_MESSAGES\${PACKAGE}.mo"
657
RMDir "$INSTDIR\locale\zh_CN\LC_MESSAGES"
658
RMDir "$INSTDIR\locale\zh_CN"
660
RMDir "$INSTDIR\locale"
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"
670
;Delete empty start menu parent diretories
671
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
672
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
677
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
679
IfErrors startMenuDeleteLoopDone
681
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
682
startMenuDeleteLoopDone:
684
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" "Start Menu Folder"
685
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" ""
686
DeleteRegKey /ifempty HKLM "Software\${PACKAGE_NAME}"
688
; Unregister with Windows' uninstall system
689
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}"
693
;--------------------------------
694
;Uninstaller Functions
698
!insertmacro MUI_UNGETLANGUAGE