speed-dreams-code/packaging/windows/speed-dreams-unmaintained.nsi
pouillot a79fd08de7 Merged from tags/2.0.0 : Final 2.0.0 packaging
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4694 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 1e2eb58d3909d03867fe9f4bece7b0fb8cead5a0
Former-commit-id: aa23ec481d6100ca9516be1201b22067078e380c
2012-04-14 07:57:40 +00:00

100 lines
2.7 KiB
Text

;
; Windows NSIS configuration file for the "Unmaintained contents" installer
; (obsolete physics engines, ...)
;
; copyright : (C) 2012 onwards Jean-Philippe Meuret
; $Id$
;
; This program 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.
; Common definitions.
!include "speed-dreams.nsh"
; MUI Settings
!define MUI_WELCOMEPAGE_TITLE "${GAME_NAME}\n ${GAME_SUBTITLE}\nUnmaintained contents"
!define MUI_WELCOMEPAGE_TITLE_3LINES
; Installer pages
;Page custom EnterXXXPage LeaveXXXPage
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
; Language files (Warning: Can't be upper in the script)
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "Dutch"
!insertmacro MUI_LANGUAGE "Danish"
!insertmacro MUI_LANGUAGE "Swedish"
!insertmacro MUI_LANGUAGE "Finnish"
!insertmacro MUI_LANGUAGE "Norwegian"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "Czech"
!insertmacro MUI_LANGUAGE "Slovak"
!insertmacro MUI_LANGUAGE "Hungarian"
!insertmacro MUI_LANGUAGE "Romanian"
!insertmacro MUI_LANGUAGE "Greek"
!insertmacro MUI_LANGUAGE "Turkish"
!insertmacro MUI_LANGUAGE "Arabic"
!insertmacro MUI_LANGUAGE "Farsi"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro MUI_LANGUAGE "SimpChinese"
; Global installer settings.
Name "${GAME_VERSIONNED_NAME}"
Caption "Install Unmaintained contents for ${GAME_VERSIONNED_NAME}"
OutFile "speed-dreams-${UNMAINTAINED_SETUP_KEY}-${GAME_LONG_VERSION}-win32-setup.exe"
InstallDir "$PROGRAMFILES\${INST_INST_DIR_SUFFIX}" ; TODO: Detect base package install dir
InstallDirRegKey ${GAME_ROOT_REGKEY} "${GAME_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Section -CoreBinaries
SetOverwrite on
; Obsolete physics engines.
SetOutPath "$INSTDIR\lib\modules\simu"
File "${BUILD_INST_DIR}\lib\modules\simu\simuv2.dll"
File "${BUILD_INST_DIR}\lib\modules\simu\simuv3.dll"
SectionEnd
Section -CoreData
SetOverwrite on
SectionEnd
Section -Drivers
SetOverwrite on
SectionEnd
Section -Cars
SetOverwrite on
SectionEnd
Section -Tracks
SetOverwrite on
SectionEnd
; This function is called at installer startup.
Function .onInit
; Check if the base package is installed and OK, and abort if not.
!insertmacro CheckIfBasePackageInstalled
FunctionEnd