2007-09-29 07:10:43 -07:00
; This file is part of Warzone 2100.
2007-06-22 04:44:13 -07:00
; Copyright (C) 2006-2007 Warzone Resurrection Project
; Copyright (C) 2006 Dennis Schridde
;
; Warzone 2100 is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; Warzone 2100 is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Warzone 2100; if not, write to the Free Software
; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
;
; NSIS Modern User Interface
; Warzone 2100 Resurrection Installer script
;
2006-12-26 11:59:34 -08:00
;--------------------------------
;Include Modern UI
!include "MUI.nsh"
;--------------------------------
;General
;Name and file
2007-09-22 14:47:22 -07:00
Name "${PACKAGE_NAME}"
OutFile "${PACKAGE}-${PACKAGE_VERSION}.exe"
2006-12-26 11:59:34 -08:00
;Default installation folder
2007-09-22 14:47:22 -07:00
InstallDir "$PROGRAMFILES\${PACKAGE_NAME}"
2006-12-26 11:59:34 -08:00
;Get installation folder from registry if available
2007-09-22 14:47:22 -07:00
InstallDirRegKey HKLM "Software\${PACKAGE_NAME}" ""
2006-12-26 11:59:34 -08:00
SetCompressor /FINAL /SOLID lzma
2006-12-27 07:26:44 -08:00
;--------------------------------
;Versioninfo
2006-12-27 07:48:28 -08:00
VIProductVersion "${VERSIONNUM}"
2006-12-27 07:26:44 -08:00
VIAddVersionKey "CompanyName" "Warzone Resurrection Project"
2007-09-22 14:47:22 -07:00
VIAddVersionKey "FileDescription" "${PACKAGE_NAME} Installer"
VIAddVersionKey "FileVersion" "${PACKAGE_VERSION}"
VIAddVersionKey "InternalName" "${PACKAGE_NAME}"
2007-02-06 05:20:05 -08:00
VIAddVersionKey "LegalCopyright" "Copyright © 2006 Warzone Resurrection Project"
2007-09-22 14:47:22 -07:00
VIAddVersionKey "OriginalFilename" "${PACKAGE}-${PACKAGE_VERSION}.exe"
VIAddVersionKey "ProductName" "${PACKAGE_NAME}"
VIAddVersionKey "ProductVersion" "${PACKAGE_VERSION}"
2006-12-27 07:26:44 -08:00
2006-12-26 11:59:34 -08:00
;--------------------------------
;Variables
Var MUI_TEMP
Var STARTMENU_FOLDER
;--------------------------------
;Interface Settings
2008-02-18 07:39:42 -08:00
!define MUI_ICON "..\..\icons\warzone2100.ico"
!define MUI_UNICON "..\..\icons\warzone2100.uninstall.ico"
2007-12-29 05:55:17 -08:00
2006-12-26 11:59:34 -08:00
!define MUI_ABORTWARNING
; Settings for MUI_PAGE_LICENSE
2007-12-01 15:51:52 -08:00
; Purposefully commented out, as we do _not_ want to trouble users with an
; additional mouse click (while otherwise pressing "return" continuously
; would satisfy)
; !define MUI_LICENSEPAGE_RADIOBUTTONS
2006-12-26 11:59:34 -08:00
;Start Menu Folder Page Configuration (for MUI_PAGE_STARTMENU)
2007-03-31 17:19:03 -07:00
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
2007-09-22 14:47:22 -07:00
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PACKAGE_NAME}"
2006-12-26 11:59:34 -08:00
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
; These indented statements modify settings for MUI_PAGE_FINISH
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT $(TEXT_RunWarzone)
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
2007-12-02 05:58:11 -08:00
!define MUI_FINISHPAGE_SHOWREADME $(TEXT_Readme)
2006-12-26 11:59:34 -08:00
;--------------------------------
;Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE $(MUILicense)
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
2007-09-22 14:47:22 -07:00
!insertmacro MUI_PAGE_STARTMENU "Application" $STARTMENU_FOLDER
2006-12-26 11:59:34 -08:00
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English" # first language is the default language
2007-06-22 05:51:29 -07:00
!insertmacro MUI_LANGUAGE "Dutch"
2006-12-26 11:59:34 -08:00
!insertmacro MUI_LANGUAGE "German"
;--------------------------------
;License Language String
2008-02-18 07:39:42 -08:00
LicenseLangString MUILicense ${LANG_ENGLISH} "..\..\COPYING"
LicenseLangString MUILicense ${LANG_DUTCH} "..\..\COPYING"
LicenseLangString MUILicense ${LANG_GERMAN} "..\..\COPYING"
2006-12-26 11:59:34 -08:00
;--------------------------------
;Reserve Files
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
;These files should be inserted before other files in the data block
;Keep these lines before any File command
;Only for solid compression (by default, solid compression is enabled for BZIP2 and LZMA)
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
!insertmacro MUI_RESERVEFILE_LANGDLL
;--------------------------------
;Installer Sections
Section $(TEXT_SecBase) SecBase
SectionIn RO
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
2006-12-27 06:57:41 -08:00
; Main executable
2008-02-18 07:39:42 -08:00
File "..\..\src\${PACKAGE}.exe"
2006-12-26 11:59:34 -08:00
2007-03-31 11:04:43 -07:00
; Windows dbghelp library
2008-02-18 07:39:42 -08:00
File "${EXTDIR}\bin\dbghelp.dll.license.txt"
File "${EXTDIR}\bin\dbghelp.dll"
2007-03-31 11:04:43 -07:00
2006-12-27 06:57:41 -08:00
; Data files
2008-02-18 07:39:42 -08:00
File "..\..\data\mp.wz"
2008-05-23 14:42:44 -07:00
File "..\..\data\base.wz"
2006-12-27 06:57:41 -08:00
; Information/documentation files
2008-02-18 07:39:42 -08:00
File "/oname=ChangeLog.txt" "..\..\ChangeLog"
File "/oname=Authors.txt" "..\..\AUTHORS"
File "/oname=License.txt" "..\..\COPYING"
File "/oname=Readme.en.txt" "..\..\doc\Readme.en"
File "/oname=Readme.de.txt" "..\..\doc\Readme.de"
File "/oname=Readme.en.html" "..\..\doc\Readme.en.xhtml"
File "/oname=Readme.de.html" "..\..\doc\Readme.de.xhtml"
2006-12-26 11:59:34 -08:00
2007-12-29 05:55:17 -08:00
SetOutPath "$INSTDIR\styles"
2008-02-18 07:39:42 -08:00
File "/oname=readme.print.css" "..\..\doc\styles\readme.print.css"
File "/oname=readme.screen.css" "..\..\doc\styles\readme.screen.css"
2007-12-29 05:55:17 -08:00
2008-02-18 07:39:42 -08:00
SetOutPath "$INSTDIR\fonts"
File "${EXTDIR}\etc\fonts\fonts.conf"
File "${EXTDIR}\etc\fonts\DejaVuSansMono.ttf"
2006-12-26 11:59:34 -08:00
;Store installation folder
2007-09-22 14:47:22 -07:00
WriteRegStr HKLM "Software\${PACKAGE_NAME}" "" $INSTDIR
2006-12-26 11:59:34 -08:00
2006-12-27 06:57:41 -08:00
; Write the Windows-uninstall keys
2007-09-22 14:47:22 -07:00
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayName" "${PACKAGE_NAME}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayVersion" "${PACKAGE_VERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "DisplayIcon" "$INSTDIR\${PACKAGE}.exe,0"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "Publisher" "Warzone Resurrection Project"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "URLInfoAbout" "${PACKAGE_BUGREPORT}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "InstallLocation" "$INSTDIR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "UninstallString" "$INSTDIR\uninstall.exe"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "NoRepair" 1
2006-12-27 06:57:41 -08:00
2006-12-26 11:59:34 -08:00
;Create uninstaller
2006-12-27 06:57:41 -08:00
WriteUninstaller "$INSTDIR\uninstall.exe"
2006-12-26 11:59:34 -08:00
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
2006-12-27 06:57:41 -08:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"
2007-09-22 14:47:22 -07:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk" "$INSTDIR\${PACKAGE}.exe"
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2007-06-22 09:01:46 -07:00
2007-06-22 04:32:50 -07:00
; Installs OpenAL runtime libraries, using Creative's installer
Section $(TEXT_SecOpenAL) SecOpenAL
2007-12-29 05:55:17 -08:00
SetOutPath "$INSTDIR"
2008-02-18 07:39:42 -08:00
File "${EXTDIR}\bin\oalinst.exe"
2007-06-22 04:32:50 -07:00
2007-06-22 09:01:46 -07:00
ExecWait "$INSTDIR\oalinst.exe"
2007-06-22 04:32:50 -07:00
SectionEnd
2006-12-26 11:59:34 -08:00
2007-06-22 09:01:46 -07:00
2007-03-31 11:04:43 -07:00
SectionGroup /e $(TEXT_SecMods) secMods
2006-12-26 11:59:34 -08:00
Section $(TEXT_SecGrimMod) SecGrimMod
SetOutPath "$INSTDIR\mods\global"
2008-02-18 07:39:42 -08:00
File "..\..\data\mods\global\grim.wz"
2006-12-26 11:59:34 -08:00
SetOutPath "$INSTDIR"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
2007-09-22 14:47:22 -07:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Grim's GFX.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod grim.wz"
2006-12-26 11:59:34 -08:00
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2008-03-06 09:12:41 -08:00
Section $(TEXT_SecAivolutionMod) SecAivolutionMod
2007-08-20 08:39:11 -07:00
SetOutPath "$INSTDIR\mods\global"
2008-02-18 07:39:42 -08:00
File "..\..\data\mods\global\aivolution.wz"
2007-08-20 08:39:11 -07:00
SetOutPath "$INSTDIR"
2007-09-22 14:47:22 -07:00
!insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
2008-03-06 09:12:41 -08:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Aivolution.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod aivolution.wz"
2007-08-20 08:39:11 -07:00
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2008-04-14 11:33:31 -07:00
Section $(TEXT_SecMusicMod) SecMusicMod
SetOutPath "$INSTDIR\mods\global\autoload"
2008-04-14 12:23:06 -07:00
NSISdl::download "http://download.gna.org/warzone/releases/mods/music_1.0.AUTHORS" "music_1.0.AUTHORS.txt"
NSISdl::download "http://download.gna.org/warzone/releases/mods/music_1.0.wz" "music_1.0.wz"
2008-04-14 11:33:31 -07:00
Pop $R0 ; Get the return value
2008-04-14 12:28:57 -07:00
StrCmp $R0 "success" +2
2008-04-14 11:33:31 -07:00
MessageBox MB_OK|MB_ICONSTOP "Download of Music mod failed: $R0"
SetOutPath "$INSTDIR"
SectionEnd
2006-12-26 11:59:34 -08:00
SectionGroupEnd
2007-08-17 11:51:06 -07:00
Section $(TEXT_SecNLS) SecNLS
2007-09-22 14:47:22 -07:00
SetOutPath "$INSTDIR\locale\da\LC_MESSAGES"
2008-02-18 07:39:42 -08:00
File "/oname=${PACKAGE}.mo" "..\..\po\da.gmo"
2007-08-17 11:51:06 -07:00
2007-09-22 14:47:22 -07:00
SetOutPath "$INSTDIR\locale\de\LC_MESSAGES"
2008-02-18 07:39:42 -08:00
File "/oname=${PACKAGE}.mo" "..\..\po\de.gmo"
2007-08-17 11:51:06 -07:00
2008-03-15 10:03:16 -07:00
SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "..\..\po\fr.gmo"
SetOutPath "$INSTDIR\locale\it\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "..\..\po\it.gmo"
2007-09-22 14:47:22 -07:00
SetOutPath "$INSTDIR\locale\la\LC_MESSAGES"
2008-02-18 07:39:42 -08:00
File "/oname=${PACKAGE}.mo" "..\..\po\la.gmo"
2007-08-17 11:51:06 -07:00
2007-09-22 14:47:22 -07:00
SetOutPath "$INSTDIR\locale\nb\LC_MESSAGES"
2008-02-18 07:39:42 -08:00
File "/oname=${PACKAGE}.mo" "..\..\po\nb.gmo"
2007-08-17 11:51:06 -07:00
2007-09-22 14:47:22 -07:00
SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES"
2008-02-18 07:39:42 -08:00
File "/oname=${PACKAGE}.mo" "..\..\po\nl.gmo"
2007-08-17 11:51:06 -07:00
2008-03-23 12:18:38 -07:00
SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "..\..\po\pt.gmo"
2008-03-15 10:03:16 -07:00
SetOutPath "$INSTDIR\locale\ru\LC_MESSAGES"
File "/oname=${PACKAGE}.mo" "..\..\po\ru.gmo"
2007-08-17 11:51:06 -07:00
SectionEnd
2006-12-26 11:59:34 -08:00
;--------------------------------
;Installer Functions
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd
Function LaunchLink
2007-09-22 14:47:22 -07:00
ExecShell "" "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk"
2006-12-26 11:59:34 -08:00
FunctionEnd
;--------------------------------
;Descriptions
;Language strings
LangString TEXT_SecBase ${LANG_ENGLISH} "Standard installation"
LangString DESC_SecBase ${LANG_ENGLISH} "Standard installation."
2007-06-22 04:32:50 -07:00
LangString TEXT_SecOpenAL ${LANG_ENGLISH} "OpenAL libraries"
2007-06-22 09:01:46 -07:00
LangString DESC_SecOpenAL ${LANG_ENGLISH} "Runtime libraries for OpenAL, a free Audio interface. Implementation by Creative Labs."
2007-06-22 04:32:50 -07:00
2006-12-26 11:59:34 -08:00
LangString TEXT_SecMods ${LANG_ENGLISH} "Mods"
LangString DESC_SecMods ${LANG_ENGLISH} "Various mods."
2007-02-14 08:23:24 -08:00
LangString TEXT_SecGrimMod ${LANG_ENGLISH} "Grim's graphics-update"
2007-09-22 14:47:22 -07:00
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}."
2006-12-26 11:59:34 -08:00
2008-03-06 09:12:41 -08:00
LangString TEXT_SecAivolutionMod ${LANG_ENGLISH} "Aivolution"
LangString DESC_SecAivolutionMod ${LANG_ENGLISH} "Improved artificial intelligence that learns."
2007-08-20 08:39:11 -07:00
2008-04-14 11:33:31 -07:00
LangString TEXT_SecMusicMod ${LANG_ENGLISH} "Music"
LangString DESC_SecMusicMod ${LANG_ENGLISH} "Download and install music."
2007-08-17 11:51:06 -07:00
LangString TEXT_SecNLS ${LANG_ENGLISH} "NLS"
LangString DESC_SecNLS ${LANG_ENGLISH} "Support for languages other than English."
2006-12-26 11:59:34 -08:00
2007-06-22 05:51:29 -07:00
LangString TEXT_SecBase ${LANG_DUTCH} "Standaard installatie"
LangString DESC_SecBase ${LANG_DUTCH} "Standaard installatie."
LangString TEXT_SecOpenAL ${LANG_DUTCH} "OpenAL bibliotheken"
LangString DESC_SecOpenAL ${LANG_DUTCH} "Vereiste bibliotheken voor OpenAL, een opensource/vrije Audio Bibliotheek."
LangString TEXT_SecMods ${LANG_DUTCH} "Mods"
LangString DESC_SecMods ${LANG_DUTCH} "Verschillende mods."
LangString TEXT_SecGrimMod ${LANG_DUTCH} "Grim's grafische-update"
2007-09-22 14:47:22 -07:00
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}."
2007-06-22 05:51:29 -07:00
2008-03-06 09:12:41 -08:00
LangString TEXT_SecAivolutionMod ${LANG_DUTCH} "Aivolution"
LangString DESC_SecAivolutionMod ${LANG_DUTCH} "Verbeterde kunstmatige intelligentie die leert."
2007-08-20 08:39:11 -07:00
2008-04-14 11:33:31 -07:00
LangString TEXT_SecMusicMod ${LANG_DUTCH} "Muziek"
LangString DESC_SecMusicMod ${LANG_DUTCH} "Muziek downloaden en installeren."
2007-08-17 11:51:06 -07:00
LangString TEXT_SecNLS ${LANG_DUTCH} "NLS"
LangString DESC_SecNLS ${LANG_DUTCH} "Ondersteuning voor andere talen dan Engels (Nederlands inbegrepen)."
2007-06-22 05:51:29 -07:00
2007-04-06 05:47:41 -07:00
LangString TEXT_SecBase ${LANG_GERMAN} "Standardinstallation"
LangString DESC_SecBase ${LANG_GERMAN} "Standardinstallation."
2006-12-26 11:59:34 -08:00
2007-06-22 04:32:50 -07:00
LangString TEXT_SecOpenAL ${LANG_GERMAN} "OpenAL Bibliotheken"
2007-06-22 09:01:46 -07:00
LangString DESC_SecOpenAL ${LANG_GERMAN} "Bibliotheken für OpenAL, ein freies Audio Interface. Implementation von Creative Labs."
2007-06-22 04:32:50 -07:00
2006-12-26 11:59:34 -08:00
LangString TEXT_SecMods ${LANG_GERMAN} "Mods"
LangString DESC_SecMods ${LANG_GERMAN} "Verschiedene Mods."
2007-02-14 08:23:24 -08:00
LangString TEXT_SecGrimMod ${LANG_GERMAN} "Grims Grafik-Update"
2007-09-22 14:47:22 -07:00
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."
2006-12-26 11:59:34 -08:00
2008-03-06 09:12:41 -08:00
LangString TEXT_SecAivolutionMod ${LANG_GERMAN} "Aivolution"
LangString DESC_SecAivolutionMod ${LANG_GERMAN} "Verbesserte künstliche Intelligenz die erlernt."
2007-08-20 08:39:11 -07:00
2008-04-14 11:33:31 -07:00
LangString TEXT_SecMusicMod ${LANG_GERMAN} "Musik"
LangString DESC_SecMusicMod ${LANG_GERMAN} "Musik herunterladen und installieren."
2007-08-17 11:51:06 -07:00
LangString TEXT_SecNLS ${LANG_GERMAN} "NLS"
2007-08-17 12:04:24 -07:00
LangString DESC_SecNLS ${LANG_GERMAN} "Unterstützung für Sprachen anders als Englisch (Deutsch inbegriffen)."
2007-08-17 11:51:06 -07:00
2006-12-26 11:59:34 -08:00
2007-09-22 14:47:22 -07:00
LangString TEXT_RunWarzone ${LANG_ENGLISH} "Run ${PACKAGE_NAME}"
LangString TEXT_RunWarzone ${LANG_DUTCH} "Start ${PACKAGE_NAME}"
LangString TEXT_RunWarzone ${LANG_GERMAN} "Starte ${PACKAGE_NAME}"
2006-12-26 11:59:34 -08:00
2007-12-02 05:58:11 -08:00
LangString TEXT_Readme ${LANG_ENGLISH} "$INSTDIR\Readme.en.html"
2008-02-18 07:39:42 -08:00
LangString TEXT_Readme ${LANG_DUTCH} "$INSTDIR\Readme.en.html"
2007-12-02 05:58:11 -08:00
LangString TEXT_Readme ${LANG_GERMAN} "$INSTDIR\Readme.de.html"
2006-12-26 11:59:34 -08:00
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecBase} $(DESC_SecBase)
2007-06-22 04:32:50 -07:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecOpenAL} $(DESC_SecOpenAL)
2006-12-26 11:59:34 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecMods} $(DESC_SecMods)
!insertmacro MUI_DESCRIPTION_TEXT ${SecGrimMod} $(DESC_SecGrimMod)
2008-03-06 09:12:41 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecAivolutionMod} $(DESC_SecAivolutionMod)
2008-04-14 11:33:31 -07:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecMusicMod} $(DESC_SecMusicMod)
2007-08-17 11:51:06 -07:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecNLS} $(DESC_SecNLS)
2006-12-26 11:59:34 -08:00
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\${PACKAGE}.exe"
2007-03-31 11:04:43 -07:00
2007-06-22 09:01:46 -07:00
Delete "$INSTDIR\oalinst.exe"
2007-03-31 11:04:43 -07:00
Delete "$INSTDIR\dbghelp.dll.license.txt"
Delete "$INSTDIR\dbghelp.dll"
2008-05-23 14:42:44 -07:00
Delete "$INSTDIR\base.wz"
2006-12-26 11:59:34 -08:00
Delete "$INSTDIR\mp.wz"
2007-12-01 15:51:52 -08:00
Delete "$INSTDIR\Readme.en.txt"
Delete "$INSTDIR\Readme.de.txt"
Delete "$INSTDIR\Readme.en.html"
Delete "$INSTDIR\Readme.de.html"
2006-12-26 11:59:34 -08:00
Delete "$INSTDIR\License.txt"
2007-04-02 06:18:38 -07:00
Delete "$INSTDIR\Authors.txt"
Delete "$INSTDIR\ChangeLog.txt"
2006-12-26 11:59:34 -08:00
2006-12-27 06:57:41 -08:00
Delete "$INSTDIR\uninstall.exe"
2006-12-26 11:59:34 -08:00
2007-12-29 05:55:17 -08:00
Delete "$INSTDIR\styles\readme.print.css"
Delete "$INSTDIR\styles\readme.screen.css"
2008-03-15 20:32:15 -07:00
RMDir "$INSTDIR\styles"
2007-12-29 05:55:17 -08:00
2008-02-18 07:39:42 -08:00
Delete "$INSTDIR\fonts\fonts.conf"
Delete "$INSTDIR\fonts\DejaVuSansMono.ttf"
2008-03-15 20:32:15 -07:00
RMDir "$INSTDIR\fonts"
2008-02-18 07:39:42 -08:00
2008-04-14 12:23:06 -07:00
Delete "$INSTDIR\mods\global\autoload\music_1.0.AUTHORS.txt"
Delete "$INSTDIR\mods\global\autoload\music_1.0.wz"
2008-04-14 11:33:31 -07:00
RMDir "$INSTDIR\mods\global\autoload"
2008-04-26 06:54:08 -07:00
2008-04-14 10:41:30 -07:00
Delete "$INSTDIR\mods\global\aivolution.wz"
2006-12-26 11:59:34 -08:00
Delete "$INSTDIR\mods\global\grim.wz"
2008-03-15 20:32:15 -07:00
RMDir "$INSTDIR\mods\global"
RMDir "$INSTDIR\mods"
2006-12-26 11:59:34 -08:00
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\locale\da\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\da\LC_MESSAGES"
RMDir "$INSTDIR\locale\da"
2006-12-26 11:59:34 -08:00
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\locale\de\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\de\LC_MESSAGES"
RMDir "$INSTDIR\locale\de"
2007-08-17 11:51:06 -07:00
2008-03-15 20:32:15 -07:00
Delete "$INSTDIR\locale\fr\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\fr\LC_MESSAGES"
RMDir "$INSTDIR\locale\fr"
Delete "$INSTDIR\locale\it\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\it\LC_MESSAGES"
RMDir "$INSTDIR\locale\it"
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\locale\la\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\la\LC_MESSAGES"
RMDir "$INSTDIR\locale\la"
2007-08-17 11:51:06 -07:00
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\locale\nb\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\nb\LC_MESSAGES"
RMDir "$INSTDIR\locale\nb"
2007-08-17 11:51:06 -07:00
2007-09-22 14:47:22 -07:00
Delete "$INSTDIR\locale\nl\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\nl\LC_MESSAGES"
RMDir "$INSTDIR\locale\nl"
2007-08-17 11:51:06 -07:00
2008-03-23 12:18:38 -07:00
Delete "$INSTDIR\locale\pt\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\pt\LC_MESSAGES"
RMDir "$INSTDIR\locale\pt"
2008-03-15 20:32:15 -07:00
Delete "$INSTDIR\locale\ru\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\ru\LC_MESSAGES"
RMDir "$INSTDIR\locale\ru"
2007-08-17 11:51:06 -07:00
2008-03-15 20:32:15 -07:00
RMDir "$INSTDIR\locale"
2007-09-22 14:47:22 -07:00
RMDir "$INSTDIR"
2007-08-17 11:51:06 -07:00
2007-06-22 09:01:46 -07:00
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk"
2007-09-22 14:47:22 -07:00
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk"
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Grim's GFX.lnk"
2008-03-15 20:32:15 -07:00
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Aivolution.lnk"
RMDir "$SMPROGRAMS\$STARTMENU_FOLDER"
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
;Delete empty start menu parent diretories
2007-06-22 09:01:46 -07:00
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
2006-12-26 11:59:34 -08:00
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
startMenuDeleteLoop:
ClearErrors
RMDir $MUI_TEMP
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
IfErrors startMenuDeleteLoopDone
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
startMenuDeleteLoopDone:
2007-09-22 14:47:22 -07:00
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" "Start Menu Folder"
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" ""
DeleteRegKey /ifempty HKLM "Software\${PACKAGE_NAME}"
2006-12-26 11:59:34 -08:00
2006-12-27 06:57:41 -08:00
; Unregister with Windows' uninstall system
2007-09-22 14:47:22 -07:00
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}"
2006-12-27 06:57:41 -08:00
2006-12-26 11:59:34 -08:00
SectionEnd
;--------------------------------
;Uninstaller Functions
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
2007-02-06 05:20:05 -08:00
2006-12-26 11:59:34 -08:00
FunctionEnd