2009-03-20 17:53:00 -07:00
; This file is part of Warzone 2100.
2009-11-24 17:03:35 -08:00
; Copyright (C) 2006-2009 Warzone 2100 Project
2009-03-20 17:53:00 -07:00
; 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
2009-11-24 17:03:35 -08:00
; Warzone 2100 Project Installer script
2009-03-20 17:53:00 -07:00
;
;--------------------------------
2010-02-07 11:12:26 -08:00
;Include section
2009-03-20 17:53:00 -07:00
!include "MUI.nsh"
2009-05-04 20:59:01 -07:00
!include "FileFunc.nsh"
2010-02-07 11:12:26 -08:00
!include "LogicLib.nsh"
2009-03-20 17:53:00 -07:00
;--------------------------------
;General
2010-02-07 11:12:26 -08:00
CRCCheck on ;make sure this isn't corrupted
SetCompressor /SOLID lzma
2009-03-20 17:53:00 -07:00
;Name and file
Name "${PACKAGE_NAME}"
OutFile "${OUTFILE}"
;Default installation folder
InstallDir "$PROGRAMFILES\${PACKAGE_NAME}"
;Get installation folder from registry if available
InstallDirRegKey HKLM "Software\${PACKAGE_NAME}" ""
2010-02-07 11:12:26 -08:00
;Request application privileges for Windows Vista
2010-02-09 15:15:16 -08:00
RequestExecutionLevel admin
2010-02-07 11:12:26 -08:00
2009-03-20 17:53:00 -07:00
;--------------------------------
;Versioninfo
VIProductVersion "${VERSIONNUM}"
2009-11-24 17:03:35 -08:00
VIAddVersionKey "CompanyName" "Warzone 2100 Project"
2009-03-20 17:53:00 -07:00
VIAddVersionKey "FileDescription" "${PACKAGE_NAME} Installer"
VIAddVersionKey "FileVersion" "${PACKAGE_VERSION}"
VIAddVersionKey "InternalName" "${PACKAGE_NAME}"
2010-02-25 15:33:15 -08:00
VIAddVersionKey "LegalCopyright" "Copyright <20> 2006-2010 Warzone 2100 Project"
2009-03-20 17:53:00 -07:00
VIAddVersionKey "OriginalFilename" "${PACKAGE}-${PACKAGE_VERSION}.exe"
VIAddVersionKey "ProductName" "${PACKAGE_NAME}"
VIAddVersionKey "ProductVersion" "${PACKAGE_VERSION}"
;--------------------------------
;Variables
Var MUI_TEMP
Var STARTMENU_FOLDER
;--------------------------------
;Interface Settings
2009-05-31 22:06:47 -07:00
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${TOP_SRCDIR}\icons\wz2100header.bmp"
!define MUI_HEADERIMAGE_RIGHT
2010-02-07 11:12:26 -08:00
!define MUI_WELCOMEFINISHPAGE_BITMAP "${TOP_SRCDIR}\icons\wz2100welcome.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${TOP_SRCDIR}\icons\wz2100welcome.bmp"
2009-05-31 22:06:47 -07:00
2009-03-20 17:53:00 -07:00
!define MUI_ICON "${TOP_SRCDIR}\icons\warzone2100.ico"
!define MUI_UNICON "${TOP_SRCDIR}\icons\warzone2100.uninstall.ico"
!define MUI_ABORTWARNING
;Start Menu Folder Page Configuration (for MUI_PAGE_STARTMENU)
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${PACKAGE_NAME}"
!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
!define MUI_FINISHPAGE_SHOWREADME $(TEXT_Readme)
;--------------------------------
;Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU "Application" $STARTMENU_FOLDER
!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
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_LANGUAGE "German"
2010-02-07 11:12:26 -08:00
!insertmacro MUI_LANGUAGE "Russian"
2009-03-20 17:53:00 -07:00
;--------------------------------
;Reserve Files
;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)
!insertmacro MUI_RESERVEFILE_LANGDLL
;--------------------------------
;Installer Sections
Section $(TEXT_SecBase) SecBase
SectionIn RO
SetOutPath "$INSTDIR"
2010-02-09 15:15:16 -08:00
SetShellVarContext all
; Clean-up section for no-longer supported stuff
Delete "$INSTDIR\mods\multiplay\original.wz"
Delete "$INSTDIR\mods\multiplay\aivolution.wz"
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Aivolution.lnk"
Delete "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Original.lnk"
2009-03-20 17:53:00 -07:00
;ADD YOUR OWN FILES HERE...
; Main executable
File "${TOP_BUILDDIR}\src\${PACKAGE}.exe"
; Windows dbghelp library
File "${EXTDIR}\bin\dbghelp.dll.license.txt"
File "${EXTDIR}\bin\dbghelp.dll"
; Data files
File "${TOP_BUILDDIR}\data\mp.wz"
File "${TOP_BUILDDIR}\data\base.wz"
2010-02-07 11:12:26 -08:00
; Information/documentation files (convert eols for text files)
File "${TOP_SRCDIR}\ChangeLog"
Push "ChangeLog"
Push "ChangeLog.txt"
Call unix2dos
File "${TOP_SRCDIR}\AUTHORS"
Push "AUTHORS"
Push "Authors.txt"
Call unix2dos
File "${TOP_SRCDIR}\COPYING"
Push "COPYING"
Push "License.txt"
Call unix2dos
File "${TOP_SRCDIR}\doc\Readme.en"
Push "Readme.en"
Push "Readme.en.txt"
Call unix2dos
File "${TOP_SRCDIR}\doc\Readme.de"
Push "Readme.de"
Push "Readme.de.txt"
Call unix2dos
2009-03-20 17:53:00 -07:00
File "/oname=Readme.en.html" "${TOP_SRCDIR}\doc\Readme.en.xhtml"
File "/oname=Readme.de.html" "${TOP_SRCDIR}\doc\Readme.de.xhtml"
2009-05-30 11:14:46 -07:00
; Create mod directories
CreateDirectory "$INSTDIR\mods\campaign"
CreateDirectory "$INSTDIR\mods\music"
CreateDirectory "$INSTDIR\mods\global"
CreateDirectory "$INSTDIR\mods\multiplay"
2009-03-20 17:53:00 -07:00
; Music files
SetOutPath "$INSTDIR\music"
File "${TOP_SRCDIR}\data\music\menu.ogg"
File "${TOP_SRCDIR}\data\music\track1.ogg"
File "${TOP_SRCDIR}\data\music\track2.ogg"
File "${TOP_SRCDIR}\data\music\music.wpl"
SetOutPath "$INSTDIR\styles"
File "/oname=readme.print.css" "${TOP_SRCDIR}\doc\styles\readme.print.css"
File "/oname=readme.screen.css" "${TOP_SRCDIR}\doc\styles\readme.screen.css"
SetOutPath "$INSTDIR\fonts"
2009-05-31 22:06:47 -07:00
File "/oname=fonts.conf" "${EXTDIR}\etc\fonts\fonts.conf.wd_disable"
2009-04-28 14:53:35 -07:00
File "${EXTDIR}\etc\fonts\DejaVuSans.ttf"
File "${EXTDIR}\etc\fonts\DejaVuSans-Bold.ttf"
2009-03-20 17:53:00 -07:00
;Store installation folder
WriteRegStr HKLM "Software\${PACKAGE_NAME}" "" $INSTDIR
; Write the Windows-uninstall keys
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"
2009-11-24 17:03:35 -08:00
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}" "Publisher" "Warzone 2100 Project"
2009-03-20 17:53:00 -07:00
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
;Create uninstaller
WriteUninstaller "$INSTDIR\uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
2009-05-31 22:06:47 -07:00
SetOutPath "$INSTDIR"
2009-03-20 17:53:00 -07:00
;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME}.lnk" "$INSTDIR\${PACKAGE}.exe"
!insertmacro MUI_STARTMENU_WRITE_END
2009-05-31 22:06:47 -07:00
SetOutPath "$INSTDIR"
CreateShortCut "$DESKTOP\${PACKAGE_NAME}.lnk" "$INSTDIR\${PACKAGE}.exe"
2009-03-20 17:53:00 -07:00
SectionEnd
; Installs OpenAL runtime libraries, using Creative's installer
Section $(TEXT_SecOpenAL) SecOpenAL
SetOutPath "$INSTDIR"
File "${EXTDIR}\bin\oalinst.exe"
2009-05-04 20:59:01 -07:00
ExecWait '"$INSTDIR\oalinst.exe" --silent'
2009-03-20 17:53:00 -07:00
SectionEnd
SectionGroup /e $(TEXT_SecMods) secMods
2010-02-20 21:30:35 -08:00
Section $(TEXT_SecDyDoAIMod) SecDyDoAIMod
SetOutPath "$INSTDIR\mods\multiplay"
File "${TOP_BUILDDIR}\data\mods\multiplay\dydo-ai.wz"
SetOutPath "$INSTDIR"
!insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
2010-02-25 15:33:15 -08:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - DyDo-AI.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod_mp dydo-ai.wz"
2010-02-20 21:30:35 -08:00
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2009-03-20 17:53:00 -07:00
Section $(TEXT_SecNTWMod) SecNTWMod
SetOutPath "$INSTDIR\mods\multiplay"
File "${TOP_BUILDDIR}\data\mods\multiplay\ntw.wz"
SetOutPath "$INSTDIR"
!insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - NTW.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod_mp ntw.wz"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2009-11-24 17:03:35 -08:00
Section $(TEXT_SecOriginalMod) SecOriginalMod
SetOutPath "$INSTDIR\mods\multiplay"
2010-02-06 20:47:18 -08:00
File "${TOP_BUILDDIR}\data\mods\multiplay\old-1.10-balance.wz"
2009-11-24 17:03:35 -08:00
SetOutPath "$INSTDIR"
!insertmacro MUI_STARTMENU_WRITE_BEGIN "Application"
2010-02-06 20:47:18 -08:00
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\${PACKAGE_NAME} - Old 1.10 Balance.lnk" "$INSTDIR\${PACKAGE}.exe" "--mod_mp old-1.10-balance.wz"
2009-11-24 17:03:35 -08:00
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
2009-03-20 17:53:00 -07:00
SectionGroupEnd
2010-02-07 11:12:26 -08:00
SectionGroup $(TEXT_SecFMVs) SecFMVs
Section /o $(TEXT_SecFMVs_Eng) SecFMVs_Eng
2009-05-13 16:06:41 -07:00
IfFileExists "sequences.wz" +5
2009-11-24 17:03:35 -08:00
NSISdl::download "http://www.il.fontys.nl/~giel/warzone/videos/warzone2100-sequences-en-hi-2.2-1.wz" "sequences.wz"
2009-05-13 16:06:41 -07:00
Pop $R0 ; Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK|MB_ICONSTOP "Download of videos failed: $R0"
SectionEnd
2010-02-07 11:12:26 -08:00
Section /o $(TEXT_SecFMVs_EngLo) SecFMVs_EngLo
IfFileExists "sequences.wz" +5
NSISdl::download "http://www.il.fontys.nl/~giel/warzone/videos/warzone2100-sequences-en-lo-2.2-1.wz" "sequences.wz"
Pop $R0 ; Get the return value
StrCmp $R0 "success" +2
MessageBox MB_OK|MB_ICONSTOP "Download of videos failed: $R0"
SectionEnd
;Section /o $(TEXT_SecFMVs_Ger) SecFMVs_Ger
;
; IfFileExists "sequences.wz" +5
; NSISdl::download "http://download.gna.org/warzone/videos/2.2/warzone2100-sequences-ger-hi-2.2.wz" "sequences.wz"
; Pop $R0 ; Get the return value
; StrCmp $R0 "success" +2
; MessageBox MB_OK|MB_ICONSTOP "Download of videos failed: $R0"
;
;SectionEnd
SectionGroupEnd
2009-11-24 17:03:35 -08:00
SectionGroup $(TEXT_SecNLS) SecNLS
2009-03-20 17:53:00 -07:00
2009-11-24 17:03:35 -08:00
Section "-NLS files" SecNLS_files
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\cs\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\cs.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\da\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\da.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\de\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\de.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\en_GB\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\en_GB.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\es\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\es.gmo"
2009-03-20 17:53:00 -07:00
2009-11-24 17:03:35 -08:00
SetOutPath "$INSTDIR\locale\et\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\et_EE.gmo"
2009-11-24 17:03:35 -08:00
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\fi\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\fi.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\fr.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\fy\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\fy.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\ga\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\ga.gmo"
2009-03-20 17:53:00 -07:00
2010-01-24 11:04:08 -08:00
SetOutPath "$INSTDIR\locale\hr\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\hr.gmo"
2010-01-24 11:04:08 -08:00
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\it\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\it.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\la\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\la.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\lt\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\lt.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\nb\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\nb.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\nl.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\pl\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\pl.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\pt_BR\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\pt_BR.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\pt\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\pt.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\ro\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\ro.gmo"
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\ru\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\ru.gmo"
2009-03-20 17:53:00 -07:00
2009-05-31 22:06:47 -07:00
SetOutPath "$INSTDIR\locale\sl\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\sl.gmo"
2009-05-31 22:06:47 -07:00
2010-01-18 09:21:19 -08:00
SetOutPath "$INSTDIR\locale\uk\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\uk_UA.gmo"
2010-01-18 09:21:19 -08:00
2009-05-31 22:06:47 -07:00
SetOutPath "$INSTDIR\locale\zh_TW\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\zh_TW.gmo"
2009-05-31 22:06:47 -07:00
2009-03-20 17:53:00 -07:00
SetOutPath "$INSTDIR\locale\zh_CN\LC_MESSAGES"
2010-02-19 10:29:47 -08:00
File "/oname=${PACKAGE}.mo" "${TOP_BUILDDIR}\po\zh_CN.gmo"
2009-03-20 17:53:00 -07:00
SectionEnd
2009-11-24 17:03:35 -08:00
;Replace fonts.conf with Windows 'fonts' enabled one
Section /o $(TEXT_SecNLS_WinFonts) SecNLS_WinFonts
SetOutPath "$INSTDIR\fonts"
Delete "$INSTDIR\fonts\fonts.conf"
File "/oname=fonts.conf" "${EXTDIR}\etc\fonts\fonts.conf.wd_enable"
SectionEnd
2009-03-20 17:53:00 -07:00
2009-11-24 17:03:35 -08:00
SectionGroupEnd
2009-03-20 17:53:00 -07:00
;--------------------------------
;Installer Functions
Function .onInit
!insertmacro MUI_LANGDLL_DISPLAY
2010-02-07 11:12:26 -08:00
# increase required size of section 'SecFMVs_Eng' by file size
SectionGetSize ${SecFMVs_Eng} $0
IntOp $0 $0 + 571937;134
SectionSetSize ${SecFMVs_Eng} $0
# increase required size of section 'SecFMVs_EngLo' by file size
SectionGetSize ${SecFMVs_EngLo} $0
IntOp $0 $0 + 165681;436
SectionSetSize ${SecFMVs_EngLo} $0
# increase required size of section 'SecFMVs_Ger' by file size
; SectionGetSize ${SecFMVs_Ger} $0
; IntOp $0 $0 + 499187;492
; SectionSetSize ${SecFMVs_Ger} $0
;HACK: Set section 'Video' as read-only
SectionGetFlags ${SecFMVs} $0
IntOp $0 $0 ^ ${SF_SELECTED}
IntOp $0 $0 | ${SF_RO}
SectionSetFlags ${SecFMVs} $0
;FIXME: Select default video sub-component
StrCpy $5 ${SecFMVs_Eng}
FunctionEnd
Function .onSelChange
${If} ${SectionIsSelected} ${SecFMVs_Eng}
${OrIf} ${SectionIsSelected} ${SecFMVs_EngLo}
;${OrIf} ${SectionIsSelected} ${SecFMVs_Ger}
!insertmacro StartRadioButtons $5
!insertmacro RadioButton ${SecFMVs_Eng}
!insertmacro RadioButton ${SecFMVs_EngLo}
; !insertmacro RadioButton ${SecFMVs_Ger}
!insertmacro EndRadioButtons
${EndIf}
2009-03-20 17:53:00 -07:00
FunctionEnd
Function LaunchLink
2009-05-31 22:06:47 -07:00
Exec '$INSTDIR\${PACKAGE}.exe'
2009-03-20 17:53:00 -07:00
FunctionEnd
2010-02-07 11:12:26 -08:00
Function unix2dos
; strips all CRs and then converts all LFs into CRLFs
; (this is roughly equivalent to "cat file | dos2unix | unix2dos")
; beware that this function destroys $0 $1 $2
;
; usage:
; Push "infile"
; Push "outfile"
; Call unix2dos
ClearErrors
Pop $2
FileOpen $1 $2 w ;$1 = file output (opened for writing)
Pop $2
FileOpen $0 $2 r ;$0 = file input (opened for reading)
Push $2 ;save name for deleting
IfErrors unix2dos_done
unix2dos_loop:
FileReadByte $0 $2 ; read a byte (stored in $2)
IfErrors unix2dos_done ; EOL
StrCmp $2 13 unix2dos_loop ; skip CR
StrCmp $2 10 unix2dos_cr unix2dos_write ; if LF write an extra CR
unix2dos_cr:
FileWriteByte $1 13
unix2dos_write:
FileWriteByte $1 $2 ; write byte
Goto unix2dos_loop ; read next byte
unix2dos_done:
FileClose $0 ; close files
FileClose $1
Pop $0
Delete $0 ; delete original
FunctionEnd
2009-03-20 17:53:00 -07:00
;--------------------------------
;Descriptions
2010-02-07 11:12:26 -08:00
;English
LangString TEXT_SecBase ${LANG_ENGLISH} "Core files"
LangString DESC_SecBase ${LANG_ENGLISH} "The core files required to run Warzone 2100."
2009-03-20 17:53:00 -07:00
LangString TEXT_SecOpenAL ${LANG_ENGLISH} "OpenAL libraries"
LangString DESC_SecOpenAL ${LANG_ENGLISH} "Runtime libraries for OpenAL, a free Audio interface. Implementation by Creative Labs."
LangString TEXT_SecMods ${LANG_ENGLISH} "Mods"
2010-02-07 11:12:26 -08:00
LangString DESC_SecMods ${LANG_ENGLISH} "Various mods for Warzone 2100."
2009-03-20 17:53:00 -07:00
2009-05-04 20:59:01 -07:00
LangString TEXT_SecFMVs ${LANG_ENGLISH} "Videos"
2010-02-07 11:12:26 -08:00
LangString DESC_SecFMVs ${LANG_ENGLISH} "Download and install in-game cutscenes."
2009-05-04 20:59:01 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_SecFMVs_Eng ${LANG_ENGLISH} "English"
LangString DESC_SecFMVs_Eng ${LANG_ENGLISH} "Download and install English in-game cutscenes (545 MB)."
LangString TEXT_SecFMVs_EngLo ${LANG_ENGLISH} "English (LQ)"
LangString DESC_SecFMVs_EngLo ${LANG_ENGLISH} "Download and install a low-quality version of English in-game cutscenes (162 MB)."
LangString TEXT_SecFMVs_Ger ${LANG_ENGLISH} "German"
LangString DESC_SecFMVs_Ger ${LANG_ENGLISH} "Download and install German in-game cutscenes (460 MB)."
LangString TEXT_SecNLS ${LANG_ENGLISH} "Language files"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNLS ${LANG_ENGLISH} "Support for languages other than English."
2009-11-24 17:03:35 -08:00
LangString TEXT_SecNLS_WinFonts ${LANG_ENGLISH} "WinFonts"
LangString DESC_SecNLS_WinFonts ${LANG_ENGLISH} "Include Windows Fonts folder into the search path. Enable this if you want to use custom fonts in config file or having troubles with standard font. Can be slow on Vista and later!"
2010-02-20 21:30:35 -08:00
LangString TEXT_SecDyDoAIMod ${LANG_ENGLISH} "DyDo-AI"
LangString DESC_SecDyDoAIMod ${LANG_ENGLISH} "DyDo-AI: New computer opponent"
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNTWMod ${LANG_ENGLISH} "NTW"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNTWMod ${LANG_ENGLISH} "NTW: New Team War mod. Modifies most of the weapons and research."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecOriginalMod ${LANG_ENGLISH} "1.10 balance"
LangString DESC_SecOriginalMod ${LANG_ENGLISH} "Play the game as it was back in the 1.10 days."
2009-03-20 17:53:00 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_RunWarzone ${LANG_ENGLISH} "Run ${PACKAGE_NAME}"
LangString TEXT_Readme ${LANG_ENGLISH} "$INSTDIR\Readme.en.html"
;Dutch
LangString TEXT_SecBase ${LANG_DUTCH} "Core files"
LangString DESC_SecBase ${LANG_DUTCH} "The core files required to run Warzone 2100."
2009-03-20 17:53:00 -07:00
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."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecFMVs ${LANG_DUTCH} "Videos"
LangString DESC_SecFMVs ${LANG_DUTCH} "Download and install in-game cutscenes."
LangString TEXT_SecFMVs_Eng ${LANG_DUTCH} "English"
LangString DESC_SecFMVs_Eng ${LANG_DUTCH} "Download and install English in-game cutscenes (545 MB)."
LangString TEXT_SecFMVs_EngLo ${LANG_DUTCH} "English (LQ)"
LangString DESC_SecFMVs_EngLo ${LANG_DUTCH} "Download and install a low-quality version of English in-game cutscenes (162 MB)."
LangString TEXT_SecFMVs_Ger ${LANG_DUTCH} "German"
LangString DESC_SecFMVs_Ger ${LANG_DUTCH} "Download and install German in-game cutscenes (460 MB)."
2009-05-04 20:59:01 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNLS ${LANG_DUTCH} "Language files"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNLS ${LANG_DUTCH} "Ondersteuning voor andere talen dan Engels (Nederlands inbegrepen)."
2009-11-24 17:03:35 -08:00
LangString TEXT_SecNLS_WinFonts ${LANG_DUTCH} "WinFonts"
LangString DESC_SecNLS_WinFonts ${LANG_DUTCH} "Include Windows Fonts folder into the search path. Enable this if you want to use custom fonts in config file or having troubles with standard font. Can be slow on Vista and later!"
2010-02-20 21:30:35 -08:00
LangString TEXT_SecDyDoAIMod ${LANG_DUTCH} "DyDo-AI"
LangString DESC_SecDyDoAIMod ${LANG_DUTCH} "DyDo-AI: Nieuwe computertegenstander"
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNTWMod ${LANG_DUTCH} "NTW"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNTWMod ${LANG_DUTCH} "NTW: New Team War mod. Wijzigd de meeste wapens en onderzoeken."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecOriginalMod ${LANG_DUTCH} "1.10 balance"
2009-11-24 17:03:35 -08:00
LangString DESC_SecOriginalMod ${LANG_DUTCH} "Speel het spel met de originele 1.10 versie balans stats."
2009-03-20 17:53:00 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_RunWarzone ${LANG_DUTCH} "Start ${PACKAGE_NAME}"
LangString TEXT_Readme ${LANG_DUTCH} "$INSTDIR\Readme.en.html"
;German
LangString TEXT_SecBase ${LANG_GERMAN} "Core files"
LangString DESC_SecBase ${LANG_GERMAN} "Die Kerndateien, die f<> r Warzone 2100 ben<65> tigt werden."
2009-03-20 17:53:00 -07:00
LangString TEXT_SecOpenAL ${LANG_GERMAN} "OpenAL Bibliotheken"
LangString DESC_SecOpenAL ${LANG_GERMAN} "Bibliotheken f<> r OpenAL, ein freies Audio Interface. Implementation von Creative Labs."
LangString TEXT_SecMods ${LANG_GERMAN} "Mods"
LangString DESC_SecMods ${LANG_GERMAN} "Verschiedene Mods."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecFMVs ${LANG_GERMAN} "Videos"
LangString DESC_SecFMVs ${LANG_GERMAN} "Videos herunterladen und installieren."
2009-05-04 20:59:01 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_SecFMVs_Eng ${LANG_GERMAN} "English"
LangString DESC_SecFMVs_Eng ${LANG_GERMAN} "Die englischen Videos herunterladen und installieren (545 MiB)."
LangString TEXT_SecFMVs_EngLo ${LANG_GERMAN} "English (LQ)"
LangString DESC_SecFMVs_EngLo ${LANG_GERMAN} "Die englischen Videos in geringer Qualit<69> t herunterladen und installieren (162 MiB)."
LangString TEXT_SecFMVs_Ger ${LANG_GERMAN} "German"
LangString DESC_SecFMVs_Ger ${LANG_GERMAN} "Die deutschen Videos herunterladen und installieren (460 MiB)."
LangString TEXT_SecNLS ${LANG_GERMAN} "Language files"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNLS ${LANG_GERMAN} "Unterst<73> tzung f<> r Sprachen au<61> er Englisch (Deutsch inbegriffen)."
2009-11-24 17:03:35 -08:00
LangString TEXT_SecNLS_WinFonts ${LANG_GERMAN} "WinFonts"
2010-02-07 11:12:26 -08:00
LangString DESC_SecNLS_WinFonts ${LANG_GERMAN} "Den Windows-Schriftarten-Ordner in den Suchpfad aufnehmen. Nutzen Sie dies, falls Sie sp<73> ter eigene Schriftarten in der Konfigurationsdatei eingeben wollen oder es zu Problemen mit der Standardschriftart kommt. Kann unter Vista und sp<73> ter langsam sein!"
2009-11-24 17:03:35 -08:00
2010-02-20 21:30:35 -08:00
LangString TEXT_SecDyDoAIMod ${LANG_GERMAN} "DyDo-AI"
LangString DESC_SecDyDoAIMod ${LANG_GERMAN} "DyDo-AI: Neuer Computergegner"
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNTWMod ${LANG_GERMAN} "NTW"
2009-03-20 17:53:00 -07:00
LangString DESC_SecNTWMod ${LANG_GERMAN} "NTW: New Team War mod. Ver<65> ndert die meisten Forschungen und Waffen."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecOriginalMod ${LANG_GERMAN} "1.10 balance"
2009-11-24 17:03:35 -08:00
LangString DESC_SecOriginalMod ${LANG_GERMAN} "Spielen Sie das Spiel mit dem Balancing aus der Originalversion 1.10."
2009-03-20 17:53:00 -07:00
LangString TEXT_RunWarzone ${LANG_GERMAN} "Starte ${PACKAGE_NAME}"
2010-02-07 11:12:26 -08:00
LangString TEXT_Readme ${LANG_GERMAN} "$INSTDIR\Readme.de.html"
2009-03-20 17:53:00 -07:00
2010-02-07 11:12:26 -08:00
;Russian
LangString TEXT_SecBase ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecBase ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Warzone 2100."
2009-03-20 17:53:00 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_SecOpenAL ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> OpenAL"
LangString DESC_SecOpenAL ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> - <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (API) <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> Creative Labs."
LangString TEXT_SecMods ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecMods ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> Warzone 2100."
LangString TEXT_SecFMVs ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecFMVs ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
LangString TEXT_SecFMVs_Eng ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecFMVs_Eng ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> (545 MB)."
LangString TEXT_SecFMVs_EngLo ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (LQ)"
LangString DESC_SecFMVs_EngLo ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ) <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> (162 MB)."
LangString TEXT_SecFMVs_Ger ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecFMVs_Ger ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> (460 MB)."
LangString TEXT_SecNLS ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecNLS ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
2009-03-20 17:53:00 -07:00
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNLS_WinFonts ${LANG_RUSSIAN} "Win<69> <6E> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "
LangString DESC_SecNLS_WinFonts ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Windows <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> !"
2009-03-20 17:53:00 -07:00
2010-02-20 21:30:35 -08:00
LangString TEXT_SecDyDoAIMod ${LANG_RUSSIAN} "DyDo-AI"
LangString DESC_SecDyDoAIMod ${LANG_RUSSIAN} "DyDo-AI: <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
2010-02-07 11:12:26 -08:00
LangString TEXT_SecNTWMod ${LANG_RUSSIAN} "NTW"
LangString DESC_SecNTWMod ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> New Team War. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ."
LangString TEXT_SecOriginalMod ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 1.10"
LangString DESC_SecOriginalMod ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 1.10."
LangString TEXT_RunWarzone ${LANG_RUSSIAN} "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ${PACKAGE_NAME}"
LangString TEXT_Readme ${LANG_RUSSIAN} "$INSTDIR\Readme.en.html"
2009-03-20 17:53:00 -07:00
;Assign language strings to sections
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SecBase} $(DESC_SecBase)
!insertmacro MUI_DESCRIPTION_TEXT ${SecOpenAL} $(DESC_SecOpenAL)
!insertmacro MUI_DESCRIPTION_TEXT ${SecMods} $(DESC_SecMods)
2010-02-20 21:30:35 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecDyDoAIMod} $(DESC_SecDyDoAIMod)
2009-03-20 17:53:00 -07:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecNTWMod} $(DESC_SecNTWMod)
2009-11-24 17:03:35 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecOriginalMod} $(DESC_SecOriginalMod)
2010-02-07 11:12:26 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecFMVs} $(DESC_SecFMVs)
!insertmacro MUI_DESCRIPTION_TEXT ${SecFMVs_Eng} $(DESC_SecFMVs_Eng)
!insertmacro MUI_DESCRIPTION_TEXT ${SecFMVs_EngLo} $(DESC_SecFMVs_EngLo)
; !insertmacro MUI_DESCRIPTION_TEXT ${SecFMVs_Ger} $(DESC_SecFMVs_Ger)
2009-03-20 17:53:00 -07:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecNLS} $(DESC_SecNLS)
2009-11-24 17:03:35 -08:00
!insertmacro MUI_DESCRIPTION_TEXT ${SecNLS_WinFonts} $(DESC_SecNLS_WinFonts)
2009-03-20 17:53:00 -07:00
!insertmacro MUI_FUNCTION_DESCRIPTION_END
2010-02-07 11:12:26 -08:00
2009-03-20 17:53:00 -07:00
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
Delete "$INSTDIR\${PACKAGE}.exe"
Delete "$INSTDIR\oalinst.exe"
Delete "$INSTDIR\dbghelp.dll.license.txt"
Delete "$INSTDIR\dbghelp.dll"
Delete "$INSTDIR\base.wz"
Delete "$INSTDIR\mp.wz"
2009-05-25 19:17:11 -07:00
Delete "$INSTDIR\sequences.wz"
Delete "$INSTDIR\stderr.txt"
Delete "$INSTDIR\stdout.txt"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\Readme.en.txt"
Delete "$INSTDIR\Readme.de.txt"
Delete "$INSTDIR\Readme.en.html"
Delete "$INSTDIR\Readme.de.html"
Delete "$INSTDIR\License.txt"
Delete "$INSTDIR\Authors.txt"
Delete "$INSTDIR\ChangeLog.txt"
Delete "$INSTDIR\music\menu.ogg"
Delete "$INSTDIR\music\track1.ogg"
Delete "$INSTDIR\music\track2.ogg"
Delete "$INSTDIR\music\music.wpl"
2009-05-25 19:17:11 -07:00
RMDir "$INSTDIR\music"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\styles\readme.print.css"
Delete "$INSTDIR\styles\readme.screen.css"
RMDir "$INSTDIR\styles"
Delete "$INSTDIR\fonts\fonts.conf"
Delete "$INSTDIR\fonts\DejaVuSansMono.ttf"
Delete "$INSTDIR\fonts\DejaVuSansMono-Bold.ttf"
2009-05-25 19:17:11 -07:00
Delete "$INSTDIR\fonts\DejaVuSans.ttf"
Delete "$INSTDIR\fonts\DejaVuSans-Bold.ttf"
2009-03-20 17:53:00 -07:00
RMDir "$INSTDIR\fonts"
2009-05-30 11:14:46 -07:00
Delete "$INSTDIR\mods\music\music_1.0.AUTHORS.txt"
Delete "$INSTDIR\mods\music\music_1.0.wz"
2009-03-20 17:53:00 -07:00
2010-02-25 15:33:15 -08:00
Delete "$INSTDIR\mods\multiplay\dydo-ai.wz"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\mods\multiplay\ntw.wz"
2010-02-07 11:12:26 -08:00
Delete "$INSTDIR\mods\multiplay\old-1.10-balance.wz"
2009-05-30 11:14:46 -07:00
2009-03-20 17:53:00 -07:00
RMDir "$INSTDIR\mods\multiplay"
2009-05-30 11:14:46 -07:00
RMDir "$INSTDIR\mods\music"
RMDir "$INSTDIR\mods\campaign"
RMDir "$INSTDIR\mods\global"
2009-03-20 17:53:00 -07:00
RMDir "$INSTDIR\mods"
2009-05-30 11:14:46 -07:00
; remove all the locales
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\locale\cs\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\cs\LC_MESSAGES"
RMDir "$INSTDIR\locale\cs"
Delete "$INSTDIR\locale\da\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\da\LC_MESSAGES"
RMDir "$INSTDIR\locale\da"
Delete "$INSTDIR\locale\de\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\de\LC_MESSAGES"
RMDir "$INSTDIR\locale\de"
Delete "$INSTDIR\locale\en_GB\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\en_GB\LC_MESSAGES"
RMDir "$INSTDIR\locale\en_GB"
Delete "$INSTDIR\locale\es\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\es\LC_MESSAGES"
RMDir "$INSTDIR\locale\es"
2009-11-24 17:03:35 -08:00
Delete "$INSTDIR\locale\et\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\et\LC_MESSAGES"
RMDir "$INSTDIR\locale\et"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\locale\fi\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\fi\LC_MESSAGES"
RMDir "$INSTDIR\locale\fi"
Delete "$INSTDIR\locale\fr\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\fr\LC_MESSAGES"
RMDir "$INSTDIR\locale\fr"
Delete "$INSTDIR\locale\fy\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\fy\LC_MESSAGES"
RMDir "$INSTDIR\locale\fy"
Delete "$INSTDIR\locale\ga\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\ga\LC_MESSAGES"
RMDir "$INSTDIR\locale\ga"
2010-01-24 11:04:08 -08:00
Delete "$INSTDIR\locale\hr\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\hr\LC_MESSAGES"
RMDir "$INSTDIR\locale\hr"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\locale\it\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\it\LC_MESSAGES"
RMDir "$INSTDIR\locale\it"
Delete "$INSTDIR\locale\la\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\la\LC_MESSAGES"
RMDir "$INSTDIR\locale\la"
Delete "$INSTDIR\locale\lt\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\lt\LC_MESSAGES"
RMDir "$INSTDIR\locale\lt"
Delete "$INSTDIR\locale\nb\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\nb\LC_MESSAGES"
RMDir "$INSTDIR\locale\nb"
Delete "$INSTDIR\locale\nl\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\nl\LC_MESSAGES"
RMDir "$INSTDIR\locale\nl"
Delete "$INSTDIR\locale\pl\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\pl\LC_MESSAGES"
RMDir "$INSTDIR\locale\pl"
Delete "$INSTDIR\locale\pt_BR\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\pt_BR\LC_MESSAGES"
RMDir "$INSTDIR\locale\pt_BR"
Delete "$INSTDIR\locale\pt\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\pt\LC_MESSAGES"
RMDir "$INSTDIR\locale\pt"
Delete "$INSTDIR\locale\ro\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\ro\LC_MESSAGES"
RMDir "$INSTDIR\locale\ro"
Delete "$INSTDIR\locale\ru\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\ru\LC_MESSAGES"
RMDir "$INSTDIR\locale\ru"
2009-05-31 22:06:47 -07:00
Delete "$INSTDIR\locale\sl\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\sl\LC_MESSAGES"
RMDir "$INSTDIR\locale\sl"
2010-01-18 09:21:19 -08:00
Delete "$INSTDIR\locale\uk\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\uk\LC_MESSAGES"
RMDir "$INSTDIR\locale\uk"
2009-05-31 22:06:47 -07:00
Delete "$INSTDIR\locale\zh_TW\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\zh_TW\LC_MESSAGES"
RMDir "$INSTDIR\locale\zh_TW"
2009-03-20 17:53:00 -07:00
Delete "$INSTDIR\locale\zh_CN\LC_MESSAGES\${PACKAGE}.mo"
RMDir "$INSTDIR\locale\zh_CN\LC_MESSAGES"
RMDir "$INSTDIR\locale\zh_CN"
RMDir "$INSTDIR\locale"
RMDir "$INSTDIR"
2010-02-09 15:15:16 -08:00
SetShellVarContext all
2009-05-31 22:06:47 -07:00
; remove the desktop shortcut icon
Delete "$DESKTOP\${PACKAGE_NAME}.lnk"
; and now, lets really remove the startmenu entries...
2009-03-20 17:53:00 -07:00
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
2009-05-31 22:06:47 -07:00
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\${PACKAGE_NAME}.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\${PACKAGE_NAME} - NTW.lnk"
2010-02-07 11:12:26 -08:00
Delete "$SMPROGRAMS\$MUI_TEMP\${PACKAGE_NAME} - Old 1.10 Balance.lnk"
2010-02-25 15:33:15 -08:00
Delete "$SMPROGRAMS\$MUI_TEMP\${PACKAGE_NAME} - DyDo-AI.lnk"
2009-05-31 22:06:47 -07:00
;Delete empty start menu parent diretories
2009-03-20 17:53:00 -07:00
StrCpy $MUI_TEMP "$SMPROGRAMS\$MUI_TEMP"
startMenuDeleteLoop:
ClearErrors
RMDir $MUI_TEMP
GetFullPathName $MUI_TEMP "$MUI_TEMP\.."
IfErrors startMenuDeleteLoopDone
StrCmp $MUI_TEMP $SMPROGRAMS startMenuDeleteLoopDone startMenuDeleteLoop
startMenuDeleteLoopDone:
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" "Start Menu Folder"
DeleteRegValue HKLM "Software\${PACKAGE_NAME}" ""
DeleteRegKey /ifempty HKLM "Software\${PACKAGE_NAME}"
; Unregister with Windows' uninstall system
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PACKAGE_NAME}"
SectionEnd
;--------------------------------
;Uninstaller Functions
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
FunctionEnd