summaryrefslogtreecommitdiff
path: root/packaging/windows
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-10 22:14:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-10 22:15:57 +0300
commitaa3f63fd497558a02feb3ddbc44f31eac091f39b (patch)
tree0e28b9b1f0501dd8be9e1a38db4ec1777fa3fbfa /packaging/windows
parent7c10a6b61e9d06a4ae9cc9f942dfacb6fcfd9d3d (diff)
downloadplus-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.gz
plus-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.bz2
plus-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.xz
plus-aa3f63fd497558a02feb3ddbc44f31eac091f39b.zip
Remove most unused files.
Diffstat (limited to 'packaging/windows')
-rw-r--r--packaging/windows/FileAssociation.nsh190
-rw-r--r--packaging/windows/evol.nsi497
-rwxr-xr-xpackaging/windows/make-translations.sh6
-rw-r--r--packaging/windows/make-translations.vbs42
-rw-r--r--packaging/windows/portable.xml6
-rw-r--r--packaging/windows/setup.nsi514
-rw-r--r--packaging/windows/setup_finish.bmpbin206038 -> 0 bytes
-rw-r--r--packaging/windows/setup_welcome.bmpbin206038 -> 0 bytes
-rw-r--r--packaging/windows/tmw.nsi486
9 files changed, 0 insertions, 1741 deletions
diff --git a/packaging/windows/FileAssociation.nsh b/packaging/windows/FileAssociation.nsh
deleted file mode 100644
index 71a9162ef..000000000
--- a/packaging/windows/FileAssociation.nsh
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
-_____________________________________________________________________________
-
- File Association
-_____________________________________________________________________________
-
- Based on code taken from http://nsis.sourceforge.net/File_Association
-
- Usage in script:
- 1. !include "FileAssociation.nsh"
- 2. [Section|Function]
- ${FileAssociationFunction} "Param1" "Param2" "..." $var
- [SectionEnd|FunctionEnd]
-
- FileAssociationFunction=[RegisterExtension|UnRegisterExtension]
-
-_____________________________________________________________________________
-
- ${RegisterExtension} "[executable]" "[extension]" "[description]"
-
-"[executable]" ; executable which opens the file format
- ;
-"[extension]" ; extension, which represents the file format to open
- ;
-"[description]" ; description for the extension. This will be display in Windows Explorer.
- ;
-
-
- ${UnRegisterExtension} "[extension]" "[description]"
-
-"[extension]" ; extension, which represents the file format to open
- ;
-"[description]" ; description for the extension. This will be display in Windows Explorer.
- ;
-
-_____________________________________________________________________________
-
- Macros
-_____________________________________________________________________________
-
- Change log window verbosity (default: 3=no script)
-
- Example:
- !include "FileAssociation.nsh"
- !insertmacro RegisterExtension
- ${FileAssociation_VERBOSE} 4 # all verbosity
- !insertmacro UnRegisterExtension
- ${FileAssociation_VERBOSE} 3 # no script
-*/
-
-
-!ifndef FileAssociation_INCLUDED
-!define FileAssociation_INCLUDED
-
-!include Util.nsh
-
-!verbose push
-!verbose 3
-!ifndef _FileAssociation_VERBOSE
- !define _FileAssociation_VERBOSE 3
-!endif
-!verbose ${_FileAssociation_VERBOSE}
-!define FileAssociation_VERBOSE `!insertmacro FileAssociation_VERBOSE`
-!verbose pop
-
-!macro FileAssociation_VERBOSE _VERBOSE
- !verbose push
- !verbose 3
- !undef _FileAssociation_VERBOSE
- !define _FileAssociation_VERBOSE ${_VERBOSE}
- !verbose pop
-!macroend
-
-
-
-!macro RegisterExtensionCall _EXECUTABLE _EXTENSION _DESCRIPTION
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
- Push `${_DESCRIPTION}`
- Push `${_EXTENSION}`
- Push `${_EXECUTABLE}`
- ${CallArtificialFunction} RegisterExtension_
- !verbose pop
-!macroend
-
-!macro UnRegisterExtensionCall _EXTENSION _DESCRIPTION
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
- Push `${_EXTENSION}`
- Push `${_DESCRIPTION}`
- ${CallArtificialFunction} UnRegisterExtension_
- !verbose pop
-!macroend
-
-
-
-!define RegisterExtension `!insertmacro RegisterExtensionCall`
-!define un.RegisterExtension `!insertmacro RegisterExtensionCall`
-
-!macro RegisterExtension
-!macroend
-
-!macro un.RegisterExtension
-!macroend
-
-!macro RegisterExtension_
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
-
- Exch $R2 ;exe
- Exch
- Exch $R1 ;ext
- Exch
- Exch 2
- Exch $R0 ;desc
- Exch 2
- Push $0
- Push $1
-
- ReadRegStr $1 HKCR $R1 "" ; read current file association
- StrCmp "$1" "" NoBackup ; is it empty
- StrCmp "$1" "$R0" NoBackup ; is it our own
- WriteRegStr HKCR $R1 "backup_val" "$1" ; backup current value
-NoBackup:
- WriteRegStr HKCR $R1 "" "$R0" ; set our file association
-
- ReadRegStr $0 HKCR $R0 ""
- StrCmp $0 "" 0 Skip
- WriteRegStr HKCR "$R0" "" "$R0"
- WriteRegStr HKCR "$R0\shell" "" "open"
- WriteRegStr HKCR "$R0\DefaultIcon" "" "$R2,0"
-Skip:
- WriteRegStr HKCR "$R0\shell\open\command" "" '"$R2" "%1"'
- WriteRegStr HKCR "$R0\shell\edit" "" "Edit $R0"
- WriteRegStr HKCR "$R0\shell\edit\command" "" '"$R2" "%1"'
-
- Pop $1
- Pop $0
- Pop $R2
- Pop $R1
- Pop $R0
-
- !verbose pop
-!macroend
-
-
-
-!define UnRegisterExtension `!insertmacro UnRegisterExtensionCall`
-!define un.UnRegisterExtension `!insertmacro UnRegisterExtensionCall`
-
-!macro UnRegisterExtension
-!macroend
-
-!macro un.UnRegisterExtension
-!macroend
-
-!macro UnRegisterExtension_
- !verbose push
- !verbose ${_FileAssociation_VERBOSE}
-
- Exch $R1 ;desc
- Exch
- Exch $R0 ;ext
- Exch
- Push $0
- Push $1
-
- ReadRegStr $1 HKCR $R0 ""
- StrCmp $1 $R1 0 NoOwn ; only do this if we own it
- ReadRegStr $1 HKCR $R0 "backup_val"
- StrCmp $1 "" 0 Restore ; if backup="" then delete the whole key
- DeleteRegKey HKCR $R0
- Goto NoOwn
-
-Restore:
- WriteRegStr HKCR $R0 "" $1
- DeleteRegValue HKCR $R0 "backup_val"
- DeleteRegKey HKCR $R1 ;Delete key with association name settings
-
-NoOwn:
-
- Pop $1
- Pop $0
- Pop $R1
- Pop $R0
-
- !verbose pop
-!macroend
-
-!endif # !FileAssociation_INCLUDED
diff --git a/packaging/windows/evol.nsi b/packaging/windows/evol.nsi
deleted file mode 100644
index 84b9cae9e..000000000
--- a/packaging/windows/evol.nsi
+++ /dev/null
@@ -1,497 +0,0 @@
-; This script allows the following parameters being overwritten from
-; command line. When called without any parameters it behaves exactly
-; like the old install script.
-;
-; DLLDIR - directory containing required dlls
-; EXEDIR - directory containing manaplus.exe
-; EXESUFFIX - offset to SRCDIR pointing to a directory containing manaplus.exe
-; PRODUCT_VERSION - software version
-; UPX - upx binary name
-;
-; For a cmake build on UNIX the following should give you a working installer:
-; makensis -DDLLDIR=/path/to/dlls \
-; -DPRODUCT_VERSION=0.1.`date +%Y%m%d`
-; -DUPX=upx
-; -DEXESUFFIX=/src
-
-CRCCheck on
-SetCompress off
-SetCompressor /SOLID lzma
-
-RequestExecutionLevel admin
-
-!define SRCDIR "..\.."
-!ifndef UPX
- !define "UPX upx\upx.exe"
-!endif
-
-!ifdef EXESUFFIX
- !define EXEDIR ${SRCDIR}/${EXESUFFIX}
-!endif
-
-!ifndef EXEDIR
- !define EXEDIR ${SRCDIR}
-!endif
-
-!ifndef DLLDIR
- !define DLLDIR ${SRCDIR}/dll
-!endif
-
-!ifndef BITS
- !define BITS 32
-!endif
-
-!ifndef SEHDLL
- !define SEHDLL "libgcc_s_sjlj-1.dll"
-!endif
-
-;--- (and without !defines ) ---
-!System "${UPX} --best --crp-ms=999999 --compress-icons=0 --nrv2d ${EXEDIR}\manaplus.exe"
-
-!define MULTIUSER_INSTALLMODE_COMMANDLINE
-!include "MultiUser.nsh"
-
-; HM NIS Edit helper defines
-!define PRODUCT_NAME "EvolClient"
-!ifndef PRODUCT_VERSION
- !define PRODUCT_VERSION "1.1"
-!endif
-!define PRODUCT_PUBLISHER "Evol Online Delopment Team"
-!define PRODUCT_WEB_SITE "http://www.evolonline.org/"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\manaplus.exe"
-!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
-!define PRODUCT_UNINST_ROOT_KEY "SHCTX"
-
-!include "FileAssociation.nsh"
-
-; MUI 1.67 compatible ------
-!include "MUI.nsh"
-
-; MUI Settings
-!define MUI_ABORTWARNING
-;!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
-!define MUI_ICON "${SRCDIR}\data\evol\icons\evol-client.ico"
-;!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
-!define MUI_UNICON "${SRCDIR}\data\evol\icons\evol-client.ico"
-
-;Language Selection Dialog Settings
-;Remember the installer language
-!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
-!define MUI_LANGDLL_REGISTRY_KEY "Software\EvolOnline"
-!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
-
-!define MUI_WELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-
-; Welcome page
-
-!define MUI_WELCOMEPAGE_TITLE_3LINES
-!insertmacro MUI_PAGE_WELCOME
-; License page
-!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
-; Directory page
-!insertmacro MUI_PAGE_DIRECTORY
-; Components page
-!insertmacro MUI_PAGE_COMPONENTS
-; Instfiles page
-!insertmacro MUI_PAGE_INSTFILES
-; Finish page
-!define MUI_FINISHPAGE_RUN
-!define MUI_FINISHPAGE_RUN_FUNCTION RunEvol
-!define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$\"$INSTDIR\README$\""'
-!define MUI_PAGE_CUSTOMFUNCTION_PRE changeFinishImage
-!define MUI_FINISHPAGE_LINK "Visit EvolOnline website for the latest news, FAQs and support"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://www.evolonline.org/"
-!insertmacro MUI_PAGE_FINISH
-
-Function RunEvol
-SetOutPath $INSTDIR
-Exec "$INSTDIR\manaplus.exe $INSTDIR\evol.manaplus"
-FunctionEnd
-
-Function changeFinishImage
-!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" "$PLUGINSDIR\setup_finish.bmp"
-FunctionEnd
-
-; Uninstaller pages
-
-!insertmacro MUI_UNPAGE_CONFIRM
-!insertmacro MUI_UNPAGE_INSTFILES
-!define MUI_FINISHPAGE_TITLE_3LINES
-!insertmacro MUI_UNPAGE_FINISH
-
-;Languages
-!insertmacro MUI_LANGUAGE "English" # first language is the default language
-!insertmacro MUI_LANGUAGE "French"
-!insertmacro MUI_LANGUAGE "German"
-!insertmacro MUI_LANGUAGE "Spanish"
-!insertmacro MUI_LANGUAGE "SimpChinese"
-!insertmacro MUI_LANGUAGE "TradChinese"
-!insertmacro MUI_LANGUAGE "Japanese"
-!insertmacro MUI_LANGUAGE "Korean"
-!insertmacro MUI_LANGUAGE "Italian"
-!insertmacro MUI_LANGUAGE "Dutch"
-!insertmacro MUI_LANGUAGE "Danish"
-!insertmacro MUI_LANGUAGE "Swedish"
-!insertmacro MUI_LANGUAGE "Norwegian"
-!insertmacro MUI_LANGUAGE "Finnish"
-!insertmacro MUI_LANGUAGE "Greek"
-!insertmacro MUI_LANGUAGE "Russian"
-!insertmacro MUI_LANGUAGE "Portuguese"
-!insertmacro MUI_LANGUAGE "PortugueseBR"
-!insertmacro MUI_LANGUAGE "Polish"
-!insertmacro MUI_LANGUAGE "Ukrainian"
-!insertmacro MUI_LANGUAGE "Czech"
-!insertmacro MUI_LANGUAGE "Slovak"
-!insertmacro MUI_LANGUAGE "Croatian"
-!insertmacro MUI_LANGUAGE "Bulgarian"
-!insertmacro MUI_LANGUAGE "Hungarian"
-!insertmacro MUI_LANGUAGE "Thai"
-!insertmacro MUI_LANGUAGE "Romanian"
-!insertmacro MUI_LANGUAGE "Latvian"
-!insertmacro MUI_LANGUAGE "Macedonian"
-!insertmacro MUI_LANGUAGE "Estonian"
-!insertmacro MUI_LANGUAGE "Turkish"
-!insertmacro MUI_LANGUAGE "Lithuanian"
-!insertmacro MUI_LANGUAGE "Catalan"
-!insertmacro MUI_LANGUAGE "Slovenian"
-!insertmacro MUI_LANGUAGE "Serbian"
-!insertmacro MUI_LANGUAGE "SerbianLatin"
-!insertmacro MUI_LANGUAGE "Arabic"
-!insertmacro MUI_LANGUAGE "Farsi"
-!insertmacro MUI_LANGUAGE "Hebrew"
-!insertmacro MUI_LANGUAGE "Indonesian"
-!insertmacro MUI_LANGUAGE "Mongolian"
-!insertmacro MUI_LANGUAGE "Luxembourgish"
-!insertmacro MUI_LANGUAGE "Albanian"
-!insertmacro MUI_LANGUAGE "Breton"
-!insertmacro MUI_LANGUAGE "Belarusian"
-!insertmacro MUI_LANGUAGE "Icelandic"
-!insertmacro MUI_LANGUAGE "Malay"
-!insertmacro MUI_LANGUAGE "Bosnian"
-!insertmacro MUI_LANGUAGE "Kurdish"
-
-!insertmacro MUI_RESERVEFILE_LANGDLL
-
-ReserveFile "setup_finish.bmp"
-
-; MUI end ------
-
-Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "evol-${PRODUCT_VERSION}-win${BITS}.exe"
-InstallDir "$PROGRAMFILES\EvolOnline"
-InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
-ShowInstDetails show
-ShowUnInstDetails show
-RequestExecutionLevel admin
-
-Function .onInit
- !insertmacro MULTIUSER_INIT
- !insertmacro MUI_LANGDLL_DISPLAY
- InitPluginsDir
- File /oname=$PLUGINSDIR\setup_finish.bmp "setup_finish.bmp"
-
- ReadRegStr $R0 SHCTX \
- "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" \
- "UninstallString"
- StrCmp $R0 "" done
-
- MessageBox MB_YESNO|MB_ICONEXCLAMATION \
- "${PRODUCT_NAME} is already installed. $\n$\nClick `YES` (recomended) to remove the \
- previous version or `NO` to install new version over old version." \
- IDNO done
-
-;Run the uninstaller
-uninst:
- ClearErrors
- ExecWait '$R0' ;Do not copy the uninstaller to a temp file
-
- IfErrors no_remove_uninstaller done
- ;You can either use Delete /REBOOTOK in the uninstaller or add some code
- ;here to remove the uninstaller. Use a registry key to check
- ;whether the user has chosen to uninstall. If you are using an uninstaller
- ;components page, make sure all sections are uninstalled.
- no_remove_uninstaller:
-
-done:
-
-FunctionEnd
-
-
-Section "Core files (required)" SecCore
- SectionIn RO
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$INSTDIR\data"
- CreateDirectory "$INSTDIR\data\evol"
- CreateDirectory "$INSTDIR\data\evol\icons"
- CreateDirectory "$INSTDIR\data\evol\images"
- CreateDirectory "$INSTDIR\data\fonts"
- CreateDirectory "$INSTDIR\data\graphics"
- CreateDirectory "$INSTDIR\data\help"
- CreateDirectory "$INSTDIR\data\help\idx"
- CreateDirectory "$INSTDIR\data\help\tips"
- CreateDirectory "$INSTDIR\data\icons"
- CreateDirectory "$INSTDIR\data\music"
- CreateDirectory "$INSTDIR\data\perserver"
- CreateDirectory "$INSTDIR\data\perserver\default"
- CreateDirectory "$INSTDIR\data\graphics\badges"
- CreateDirectory "$INSTDIR\data\graphics\gui"
- CreateDirectory "$INSTDIR\data\graphics\flags"
- CreateDirectory "$INSTDIR\data\graphics\images"
- CreateDirectory "$INSTDIR\data\graphics\shaders"
- CreateDirectory "$INSTDIR\data\graphics\sprites"
- CreateDirectory "$INSTDIR\data\sfx"
- CreateDirectory "$INSTDIR\data\sfx\system"
- CreateDirectory "$INSTDIR\data\themes"
- CreateDirectory "$INSTDIR\data\themes\blacknblack"
- CreateDirectory "$INSTDIR\data\themes\blackwood"
- CreateDirectory "$INSTDIR\data\themes\classic"
- CreateDirectory "$INSTDIR\data\themes\enchilado"
- CreateDirectory "$INSTDIR\data\themes\golden-delicious"
- CreateDirectory "$INSTDIR\data\themes\jewelry"
- CreateDirectory "$INSTDIR\data\themes\mana"
- CreateDirectory "$INSTDIR\data\themes\pink"
- CreateDirectory "$INSTDIR\data\themes\unity"
- CreateDirectory "$INSTDIR\data\themes\wood"
- CreateDirectory "$INSTDIR\data\translations"
- CreateDirectory "$INSTDIR\data\translations\help"
- CreateDirectory "$INSTDIR\docs"
-
- SetOverwrite ifnewer
- SetOutPath "$INSTDIR"
-
- File "${EXEDIR}\manaplus.exe"
- File "${DLLDIR}\SDL.dll"
- File "${DLLDIR}\SDL_image.dll"
-; File "${DLLDIR}\SDL_mixer.dll"
- File "${DLLDIR}\SDL_net.dll"
- File "${DLLDIR}\SDL_ttf.dll"
- File "${DLLDIR}\libSDL_gfx-15.dll"
- File "${DLLDIR}\libcurl-4.dll"
- File "${DLLDIR}\libfreetype-6.dll"
- File "${DLLDIR}\${SEHDLL}"
- File "${DLLDIR}\libiconv-2.dll"
- File "${DLLDIR}\libintl-8.dll"
- File "${DLLDIR}\libjpeg-9.dll"
- File "${DLLDIR}\libogg-0.dll"
- File "${DLLDIR}\libpng16-16.dll"
- File "${DLLDIR}\libstdc++-6.dll"
- File "${DLLDIR}\libvorbis-0.dll"
- File "${DLLDIR}\libvorbisfile-3.dll"
- File "${DLLDIR}\libxml2-2.dll"
- File "${DLLDIR}\libwinpthread-1.dll"
- File "${DLLDIR}\zlib1.dll"
- File "${SRCDIR}\AUTHORS"
- File "${SRCDIR}\COPYING"
- File "${SRCDIR}\NEWS"
- File "${SRCDIR}\README.txt"
- SetOutPath "$INSTDIR\data\fonts"
- File "${SRCDIR}\data\fonts\*.ttf"
- SetOutPath "$INSTDIR\data\graphics\badges"
- File "${SRCDIR}\data\graphics\badges\*.png"
- File "${SRCDIR}\data\graphics\badges\*.xml"
- SetOutPath "$INSTDIR\data\graphics\flags"
- File "${SRCDIR}\data\graphics\flags\*.png"
- SetOutPath "$INSTDIR\data\graphics\gui"
- File "${SRCDIR}\data\graphics\gui\*.png"
- File "${SRCDIR}\data\graphics\gui\*.xml"
- SetOutPath "$INSTDIR\data\graphics\images"
- File /x minimap_*.png ${SRCDIR}\data\graphics\images\*.png
- File "${SRCDIR}\data\graphics\images\error.png"
- SetOutPath "$INSTDIR\data\graphics\shaders"
- File "${SRCDIR}\data\graphics\shaders\*.glsl"
- SetOutPath "$INSTDIR\data\graphics\sprites"
- File "${SRCDIR}\data\graphics\sprites\*.png"
- File "${SRCDIR}\data\graphics\sprites\*.xml"
- SetOutPath "$INSTDIR\data\sfx\system"
- File "${SRCDIR}\data\sfx\system\*.ogg"
- SetOutPath "$INSTDIR\data\themes\blacknblack"
- File "${SRCDIR}\data\themes\blacknblack\*.png"
- File "${SRCDIR}\data\themes\blacknblack\*.xml"
- SetOutPath "$INSTDIR\data\themes\blackwood"
- File "${SRCDIR}\data\themes\blackwood\*.png"
- File "${SRCDIR}\data\themes\blackwood\*.xml"
- SetOutPath "$INSTDIR\data\themes\mana"
- File "${SRCDIR}\data\themes\mana\*.png"
- File "${SRCDIR}\data\themes\mana\*.xml"
- SetOutPath "$INSTDIR\data\themes\enchilado"
- File "${SRCDIR}\data\themes\enchilado\*.png"
- File "${SRCDIR}\data\themes\enchilado\*.xml"
- SetOutPath "$INSTDIR\data\themes\golden-delicious"
- File "${SRCDIR}\data\themes\golden-delicious\*.png"
- File "${SRCDIR}\data\themes\golden-delicious\*.xml"
- SetOutPath "$INSTDIR\data\themes\jewelry"
- File "${SRCDIR}\data\themes\jewelry\*.png"
- File "${SRCDIR}\data\themes\jewelry\*.xml"
- SetOutPath "$INSTDIR\data\themes\pink"
- File "${SRCDIR}\data\themes\pink\*.png"
- File "${SRCDIR}\data\themes\pink\*.xml"
- SetOutPath "$INSTDIR\data\themes\unity"
- File "${SRCDIR}\data\themes\unity\*.png"
- File "${SRCDIR}\data\themes\unity\*.xml"
- SetOutPath "$INSTDIR\data\themes\wood"
- File "${SRCDIR}\data\themes\wood\*.png"
- File "${SRCDIR}\data\themes\wood\*.xml"
- SetOutPath "$INSTDIR\data\translations\help"
- File "${SRCDIR}\data\translations\help\*.po"
- SetOutPath "$INSTDIR\data\help"
- File "${SRCDIR}\data\help\*.txt"
- SetOutPath "$INSTDIR\data\help\tips"
- File "${SRCDIR}\data\help\tips\*.txt"
- File "${SRCDIR}\data\help\tips\*.jpg"
- SetOutPath "$INSTDIR\data\help\idx"
- File "${SRCDIR}\data\help\idx\*.idx"
- SetOutPath "$INSTDIR\data\icons\"
- File "${SRCDIR}\data\icons\manaplus.ico"
- SetOutPath "$INSTDIR\data\music\"
- File "${SRCDIR}\data\music\*.ogg"
- SetOutPath "$INSTDIR\data\perserver\default\"
- File "${SRCDIR}\data\perserver\default\*.txt"
- File "${SRCDIR}\data\perserver\default\*.xml"
- SetOutPath "$INSTDIR\docs"
- File "${SRCDIR}\docs\FAQ.txt"
- SetOutPath "$INSTDIR"
- File "${SRCDIR}\data\evol\evol.manaplus"
- SetOutPath "$INSTDIR\data\evol\images"
- File "${SRCDIR}\data\evol\images\*.png"
- SetOutPath "$INSTDIR\data\evol\icons"
- File "${SRCDIR}\data\evol\icons\*.ico"
-SectionEnd
-
-Section "Create Shortcuts" SecShortcuts
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$SMPROGRAMS\EvolOnline"
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (no opengl).lnk" '"$INSTDIR\manaplus.exe"' '"--no-opengl" "$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (safemode).lnk" '"$INSTDIR\manaplus.exe"' '"--safemode" "$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (tests).lnk" '"$INSTDIR\manaplus.exe"' '"--tests" "$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$DESKTOP\EvolOnline.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$DESKTOP\EvolOnline (tests).lnk" '"$INSTDIR\manaplus.exe"' '"--tests" "$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
-
- ${registerExtension} "$INSTDIR\manaplus.exe" ".manaplus" "ManaPlus brandings"
-SectionEnd
-
-Section /o "Portable" SecPortable
- SetOutPath "$INSTDIR"
- File "portable.xml"
-SectionEnd
-
-Section /o "Debugger" SecDebug
- SetOutPath "$INSTDIR"
- File "${DLLDIR}\gdb.exe"
- File "${DLLDIR}\libdl.dll"
- File "${DLLDIR}\libexpat-1.dll"
- File "${DLLDIR}\libreadline6.dll"
- File "${DLLDIR}\libtermcap.dll"
- File "${EXEDIR}\manaplusd.exe"
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe" 1
- CreateShortCut "$DESKTOP\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe" 1
- ${EndIf}
-SectionEnd
-
-Section /o "Profiler" SecProfiler
- SetOutPath "$INSTDIR"
- File "${EXEDIR}\manaplusp.exe"
-
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (profiler).lnk" '"$INSTDIR\manaplusp.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$DESKTOP\EvolOnline (profiler).lnk" '"$INSTDIR\manaplusp.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- ${EndIf}
-SectionEnd
-
-; Section "Tools" SecTools
-; SetOutPath "$INSTDIR"
-; File "${EXEDIR}\dyecmd.exe"
-; SectionEnd
-
-Section /o "Evol Online music" SecEvolMusic
- AddSize 9787
- CreateDirectory "$INSTDIR\data\music"
- SetOutPath "$INSTDIR\data\music"
- NSISdl::download "http://downloads.sourceforge.net/project/evolonline/music/evolmusic-beta2-1.tar.gz" "$TEMP\evolmusic-beta2-1.tar.gz"
- untgz::extract -j -d "$INSTDIR\data\music" "$TEMP\evolmusic-beta2-1.tar.gz"
- Delete "$TEMP\evolmusic-beta2-1.tar.gz"
-SectionEnd
-
-Section "Translations" SecTrans
- SetOutPath "$INSTDIR"
- File /nonfatal /r "${SRCDIR}\translations"
-SectionEnd
-
-;Package descriptions
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core program files."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Create game shortcuts and register extensions."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecPortable} "Portable client. (If selected client will work as portable client.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecEvolMusic} "Background evol music. (If selected the evol music will be downloaded from the internet.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecTrans} "Translations for the user interface. Uncheck this component to leave it in English."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecDebug} "Install debugger for try to detect stability issues."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecProfiler} "Install profiler build to detect perfomance issues."
-; !insertmacro MUI_DESCRIPTION_TEXT ${SecTools} "Install tools like dyecmd."
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-
-
-
-Section -AdditionalIcons
- WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
- WriteIniStr "$INSTDIR\ManaPlus.url" "InternetShortcut" "URL" "http://manaplus.evolonline.org/"
- CreateShortCut "$SMPROGRAMS\EvolOnline\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
- CreateShortCut "$SMPROGRAMS\EvolOnline\Readme.lnk" "notepad.exe" "$INSTDIR\README.txt"
- CreateShortCut "$SMPROGRAMS\EvolOnline\FAQ.lnk" "$INSTDIR\docs\FAQ.txt"
- CreateShortCut "$SMPROGRAMS\EvolOnline\Uninstall.lnk" "$INSTDIR\uninst.exe"
-SectionEnd
-
-Section -Post
- WriteUninstaller "$INSTDIR\uninst.exe"
- WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
-SectionEnd
-
-Function un.onInit
- !insertmacro MUI_UNGETLANGUAGE
- !insertmacro MULTIUSER_UNINIT
-FunctionEnd
-
-Section Uninstall
- DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\EvolOnline"
-
- Delete "$INSTDIR\*.*"
-
- Delete "$SMPROGRAMS\EvolOnline\Uninstall.lnk"
- Delete "$DESKTOP\EvolOnline.lnk"
- Delete "$DESKTOP\EvolOnline (debug).lnk"
- Delete "$DESKTOP\EvolOnline (profiler).lnk"
- Delete "$DESKTOP\EvolOnline (tests).lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline.lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline (debug).lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline (profiler).lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline (no opengl).lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline (safemode).lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline (tests).lnk"
- Delete "$SMPROGRAMS\EvolOnline\Website.lnk"
- Delete "$SMPROGRAMS\EvolOnline\Readme.lnk"
- Delete "$SMPROGRAMS\EvolOnline\FAQ.lnk"
- Delete "$SMPROGRAMS\EvolOnline\EvolOnline.lnk"
- Delete "$DESKTOP\EvolOnline.lnk"
-
- RMDir "$SMPROGRAMS\EvolOnline"
-
- RMDir /r "$INSTDIR\data"
- RMDir /r "$INSTDIR\docs"
- RMDir /r "$INSTDIR\translations"
- RMDir /r "$INSTDIR\updates"
- RMDir "$INSTDIR"
-
- DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
- ${unregisterExtension} ".manaplus" "ManaPlus brandings"
- SetAutoClose true
-SectionEnd
diff --git a/packaging/windows/make-translations.sh b/packaging/windows/make-translations.sh
deleted file mode 100755
index 1d4132397..000000000
--- a/packaging/windows/make-translations.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-for i in `grep -v ^# ../../po/LINGUAS`; do
- mkdir -p ../../translations/$i/LC_MESSAGES
- msgfmt -c -o ../../translations/$i/LC_MESSAGES/manaplus.mo ../../po/$i.po
-done
diff --git a/packaging/windows/make-translations.vbs b/packaging/windows/make-translations.vbs
deleted file mode 100644
index 339a0299e..000000000
--- a/packaging/windows/make-translations.vbs
+++ /dev/null
@@ -1,42 +0,0 @@
-Set fso = CreateObject("Scripting.FileSystemObject")
-Set WshShell = CreateObject("WScript.Shell")
-Dim s, infile, outfile, command
-
-Function CreateFolderIfNonexistent(folder)
- if not fso.FolderExists(folder) then
- fso.CreateFolder(folder)
- end if
-end Function
-
-'check for existence of msgfmt
-if not fso.FileExists("msgfmt.exe") then
- WScript.echo "msgfmt.exe not found. Please get gettext for windows from http://gnuwin32.sourceforge.net/packages/gettext.htm and copy the files msgfmt.exe and all dll files from the gettext/bin directory into this directory and run this script again."
- WScript.Quit(1)
-end if
-
-CreateFolderIfNonexistent("..\..\translations\")
-
-'open translation list
-Set stream = fso.GetFile("..\..\po\LINGUAS").OpenAsTextStream(1, 0)
-
-'iterate contents of translations file
-translations = 0
-do while not stream.AtEndOfStream
- s = stream.ReadLine()
- if inStr(s, "#") = false then
- 'create the output directory
- CreateFolderIfNonexistent("..\..\translations\" + s)
- CreateFolderIfNonexistent("..\..\translations\" + s + "\LC_MESSAGES")
- 'build the translate command
- infile = "../../po/" + s + ".po"
- outfile = "../../translations/" + s +"/LC_MESSAGES/mana.mo"
- command = "msgfmt -c -o " + outfile + " " + infile
- 'execute translate command
- errval = WshShell.run(command, 0, true)
- if errval = 0 then
- translations = translations + 1
- end if
- end if
-loop
-
-WScript.echo translations, " translations compiled."
diff --git a/packaging/windows/portable.xml b/packaging/windows/portable.xml
deleted file mode 100644
index dcc00f999..000000000
--- a/packaging/windows/portable.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
- <option name="dataDir" value="logs"/>
- <option name="configDir" value="configs"/>
- <option name="screenshotDir" value="screenshots"/>
-</configuration>
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
deleted file mode 100644
index 14a208c44..000000000
--- a/packaging/windows/setup.nsi
+++ /dev/null
@@ -1,514 +0,0 @@
-; This script allows the following parameters being overwritten from
-; command line. When called without any parameters it behaves exactly
-; like the old install script.
-;
-; DLLDIR - directory containing required dlls
-; EXEDIR - directory containing manaplus.exe
-; EXESUFFIX - offset to SRCDIR pointing to a directory containing manaplus.exe
-; PRODUCT_VERSION - software version
-; UPX - upx binary name
-;
-; For a cmake build on UNIX the following should give you a working installer:
-; makensis -DDLLDIR=/path/to/dlls \
-; -DPRODUCT_VERSION=0.1.`date +%Y%m%d`
-; -DUPX=upx
-; -DEXESUFFIX=/src
-
-CRCCheck on
-SetCompress off
-SetCompressor /SOLID lzma
-
-RequestExecutionLevel admin
-
-!define SRCDIR "..\.."
-!ifndef UPX
- !define "UPX upx\upx.exe"
-!endif
-
-!ifdef EXESUFFIX
- !define EXEDIR ${SRCDIR}/${EXESUFFIX}
-!endif
-
-!ifndef EXEDIR
- !define EXEDIR ${SRCDIR}
-!endif
-
-!ifndef DLLDIR
- !define DLLDIR ${SRCDIR}/dll
-!endif
-
-!ifndef BITS
- !define BITS 32
-!endif
-
-!ifndef SEHDLL
- !define SEHDLL "libgcc_s_sjlj-1.dll"
-!endif
-
-;--- (and without !defines ) ---
-!System "${UPX} --best --crp-ms=999999 --compress-icons=0 --nrv2d ${EXEDIR}\manaplus.exe"
-
-!define MULTIUSER_INSTALLMODE_COMMANDLINE
-!include "MultiUser.nsh"
-
-; HM NIS Edit helper defines
-!define PRODUCT_NAME "ManaPlus"
-!ifndef PRODUCT_VERSION
- !define PRODUCT_VERSION "1.1"
-!endif
-!define PRODUCT_PUBLISHER "ManaPlus Development Team"
-!define PRODUCT_WEB_SITE "http://manaplus.evolonline.org/"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\manaplus.exe"
-!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
-!define PRODUCT_UNINST_ROOT_KEY "SHCTX"
-
-!include "FileAssociation.nsh"
-
-; MUI 1.67 compatible ------
-!include "MUI.nsh"
-
-; MUI Settings
-!define MUI_ABORTWARNING
-;!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
-!define MUI_ICON "${SRCDIR}\data\icons\manaplus.ico"
-;!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
-!define MUI_UNICON "${SRCDIR}\data\icons\manaplus.ico"
-
-;Language Selection Dialog Settings
-;Remember the installer language
-!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
-!define MUI_LANGDLL_REGISTRY_KEY "Software\Mana"
-!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
-
-!define MUI_WELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-
-; Welcome page
-
-!define MUI_WELCOMEPAGE_TITLE_3LINES
-!insertmacro MUI_PAGE_WELCOME
-; License page
-!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
-; Directory page
-!insertmacro MUI_PAGE_DIRECTORY
-; Components page
-!insertmacro MUI_PAGE_COMPONENTS
-; Instfiles page
-!insertmacro MUI_PAGE_INSTFILES
-; Finish page
-!define MUI_FINISHPAGE_RUN
-!define MUI_FINISHPAGE_RUN_FUNCTION RunMana
-!define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$\"$INSTDIR\README$\""'
-!define MUI_PAGE_CUSTOMFUNCTION_PRE changeFinishImage
-!define MUI_FINISHPAGE_LINK "Visit ManaPlus website for the latest news, FAQs and support"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://manaplus.evolonline.org/"
-!insertmacro MUI_PAGE_FINISH
-
-Function RunMana
-SetOutPath $INSTDIR
-Exec "$INSTDIR\manaplus.exe"
-FunctionEnd
-
-Function changeFinishImage
-!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" "$PLUGINSDIR\setup_finish.bmp"
-FunctionEnd
-
-; Uninstaller pages
-
-!insertmacro MUI_UNPAGE_CONFIRM
-!insertmacro MUI_UNPAGE_INSTFILES
-!define MUI_FINISHPAGE_TITLE_3LINES
-!insertmacro MUI_UNPAGE_FINISH
-
-;Languages
-!insertmacro MUI_LANGUAGE "English" # first language is the default language
-!insertmacro MUI_LANGUAGE "French"
-!insertmacro MUI_LANGUAGE "German"
-!insertmacro MUI_LANGUAGE "Spanish"
-!insertmacro MUI_LANGUAGE "SimpChinese"
-!insertmacro MUI_LANGUAGE "TradChinese"
-!insertmacro MUI_LANGUAGE "Japanese"
-!insertmacro MUI_LANGUAGE "Korean"
-!insertmacro MUI_LANGUAGE "Italian"
-!insertmacro MUI_LANGUAGE "Dutch"
-!insertmacro MUI_LANGUAGE "Danish"
-!insertmacro MUI_LANGUAGE "Swedish"
-!insertmacro MUI_LANGUAGE "Norwegian"
-!insertmacro MUI_LANGUAGE "Finnish"
-!insertmacro MUI_LANGUAGE "Greek"
-!insertmacro MUI_LANGUAGE "Russian"
-!insertmacro MUI_LANGUAGE "Portuguese"
-!insertmacro MUI_LANGUAGE "PortugueseBR"
-!insertmacro MUI_LANGUAGE "Polish"
-!insertmacro MUI_LANGUAGE "Ukrainian"
-!insertmacro MUI_LANGUAGE "Czech"
-!insertmacro MUI_LANGUAGE "Slovak"
-!insertmacro MUI_LANGUAGE "Croatian"
-!insertmacro MUI_LANGUAGE "Bulgarian"
-!insertmacro MUI_LANGUAGE "Hungarian"
-!insertmacro MUI_LANGUAGE "Thai"
-!insertmacro MUI_LANGUAGE "Romanian"
-!insertmacro MUI_LANGUAGE "Latvian"
-!insertmacro MUI_LANGUAGE "Macedonian"
-!insertmacro MUI_LANGUAGE "Estonian"
-!insertmacro MUI_LANGUAGE "Turkish"
-!insertmacro MUI_LANGUAGE "Lithuanian"
-!insertmacro MUI_LANGUAGE "Catalan"
-!insertmacro MUI_LANGUAGE "Slovenian"
-!insertmacro MUI_LANGUAGE "Serbian"
-!insertmacro MUI_LANGUAGE "SerbianLatin"
-!insertmacro MUI_LANGUAGE "Arabic"
-!insertmacro MUI_LANGUAGE "Farsi"
-!insertmacro MUI_LANGUAGE "Hebrew"
-!insertmacro MUI_LANGUAGE "Indonesian"
-!insertmacro MUI_LANGUAGE "Mongolian"
-!insertmacro MUI_LANGUAGE "Luxembourgish"
-!insertmacro MUI_LANGUAGE "Albanian"
-!insertmacro MUI_LANGUAGE "Breton"
-!insertmacro MUI_LANGUAGE "Belarusian"
-!insertmacro MUI_LANGUAGE "Icelandic"
-!insertmacro MUI_LANGUAGE "Malay"
-!insertmacro MUI_LANGUAGE "Bosnian"
-!insertmacro MUI_LANGUAGE "Kurdish"
-
-!insertmacro MUI_RESERVEFILE_LANGDLL
-
-ReserveFile "setup_finish.bmp"
-
-; MUI end ------
-
-Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "manaplus-${PRODUCT_VERSION}-win${BITS}.exe"
-InstallDir "$PROGRAMFILES\Mana"
-InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
-ShowInstDetails show
-ShowUnInstDetails show
-RequestExecutionLevel admin
-
-Function .onInit
- !insertmacro MULTIUSER_INIT
- !insertmacro MUI_LANGDLL_DISPLAY
- InitPluginsDir
- File /oname=$PLUGINSDIR\setup_finish.bmp "setup_finish.bmp"
-
- ReadRegStr $R0 SHCTX \
- "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" \
- "UninstallString"
- StrCmp $R0 "" done
-
- MessageBox MB_YESNO|MB_ICONEXCLAMATION \
- "${PRODUCT_NAME} is already installed. $\n$\nClick `YES` (recomended) to remove the \
- previous version or `NO` to install new version over old version." \
- IDNO done
-
-;Run the uninstaller
-uninst:
- ClearErrors
- ExecWait '$R0' ;Do not copy the uninstaller to a temp file
-
- IfErrors no_remove_uninstaller done
- ;You can either use Delete /REBOOTOK in the uninstaller or add some code
- ;here to remove the uninstaller. Use a registry key to check
- ;whether the user has chosen to uninstall. If you are using an uninstaller
- ;components page, make sure all sections are uninstalled.
- no_remove_uninstaller:
-
-done:
-
-FunctionEnd
-
-
-Section "Core files (required)" SecCore
- SectionIn RO
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$INSTDIR\data"
- CreateDirectory "$INSTDIR\data\fonts"
- CreateDirectory "$INSTDIR\data\graphics"
- CreateDirectory "$INSTDIR\data\help"
- CreateDirectory "$INSTDIR\data\help\idx"
- CreateDirectory "$INSTDIR\data\help\tips"
- CreateDirectory "$INSTDIR\data\icons"
- CreateDirectory "$INSTDIR\data\music"
- CreateDirectory "$INSTDIR\data\perserver"
- CreateDirectory "$INSTDIR\data\perserver\default"
- CreateDirectory "$INSTDIR\data\graphics\badges"
- CreateDirectory "$INSTDIR\data\graphics\gui"
- CreateDirectory "$INSTDIR\data\graphics\flags"
- CreateDirectory "$INSTDIR\data\graphics\images"
- CreateDirectory "$INSTDIR\data\graphics\shaders"
- CreateDirectory "$INSTDIR\data\graphics\sprites"
- CreateDirectory "$INSTDIR\data\sfx"
- CreateDirectory "$INSTDIR\data\sfx\system"
- CreateDirectory "$INSTDIR\data\themes"
- CreateDirectory "$INSTDIR\data\themes\blacknblack"
- CreateDirectory "$INSTDIR\data\themes\blackwood"
- CreateDirectory "$INSTDIR\data\themes\classic"
- CreateDirectory "$INSTDIR\data\themes\enchilado"
- CreateDirectory "$INSTDIR\data\themes\golden-delicious"
- CreateDirectory "$INSTDIR\data\themes\jewelry"
- CreateDirectory "$INSTDIR\data\themes\mana"
- CreateDirectory "$INSTDIR\data\themes\pink"
- CreateDirectory "$INSTDIR\data\themes\unity"
- CreateDirectory "$INSTDIR\data\themes\wood"
- CreateDirectory "$INSTDIR\data\translations"
- CreateDirectory "$INSTDIR\data\translations\help"
- CreateDirectory "$INSTDIR\docs"
-
- SetOverwrite ifnewer
- SetOutPath "$INSTDIR"
-
- File "${EXEDIR}\manaplus.exe"
- File "${DLLDIR}\SDL.dll"
- File "${DLLDIR}\SDL_image.dll"
-; File "${DLLDIR}\SDL_mixer.dll"
- File "${DLLDIR}\SDL_net.dll"
- File "${DLLDIR}\SDL_ttf.dll"
- File "${DLLDIR}\libSDL_gfx-15.dll"
- File "${DLLDIR}\libcurl-4.dll"
- File "${DLLDIR}\libfreetype-6.dll"
- File "${DLLDIR}\${SEHDLL}"
- File "${DLLDIR}\libiconv-2.dll"
- File "${DLLDIR}\libintl-8.dll"
- File "${DLLDIR}\libjpeg-9.dll"
- File "${DLLDIR}\libogg-0.dll"
- File "${DLLDIR}\libpng16-16.dll"
- File "${DLLDIR}\libstdc++-6.dll"
- File "${DLLDIR}\libvorbis-0.dll"
- File "${DLLDIR}\libvorbisfile-3.dll"
- File "${DLLDIR}\libxml2-2.dll"
- File "${DLLDIR}\libwinpthread-1.dll"
- File "${DLLDIR}\zlib1.dll"
- File "${SRCDIR}\AUTHORS"
- File "${SRCDIR}\COPYING"
- File "${SRCDIR}\NEWS"
- File "${SRCDIR}\README.txt"
- SetOutPath "$INSTDIR\data\fonts"
- File "${SRCDIR}\data\fonts\*.ttf"
- SetOutPath "$INSTDIR\data\graphics\badges"
- File "${SRCDIR}\data\graphics\badges\*.png"
- File "${SRCDIR}\data\graphics\badges\*.xml"
- SetOutPath "$INSTDIR\data\graphics\flags"
- File "${SRCDIR}\data\graphics\flags\*.png"
- SetOutPath "$INSTDIR\data\graphics\gui"
- File "${SRCDIR}\data\graphics\gui\*.png"
- File "${SRCDIR}\data\graphics\gui\*.xml"
- SetOutPath "$INSTDIR\data\graphics\images"
- File /x minimap_*.png ${SRCDIR}\data\graphics\images\*.png
- File "${SRCDIR}\data\graphics\images\error.png"
- SetOutPath "$INSTDIR\data\graphics\shaders"
- File "${SRCDIR}\data\graphics\shaders\*.glsl"
- SetOutPath "$INSTDIR\data\graphics\sprites"
- File "${SRCDIR}\data\graphics\sprites\*.png"
- File "${SRCDIR}\data\graphics\sprites\*.xml"
- SetOutPath "$INSTDIR\data\sfx\system"
- File "${SRCDIR}\data\sfx\system\*.ogg"
- SetOutPath "$INSTDIR\data\themes\blacknblack"
- File "${SRCDIR}\data\themes\blacknblack\*.png"
- File "${SRCDIR}\data\themes\blacknblack\*.xml"
- SetOutPath "$INSTDIR\data\themes\blackwood"
- File "${SRCDIR}\data\themes\blackwood\*.png"
- File "${SRCDIR}\data\themes\blackwood\*.xml"
- SetOutPath "$INSTDIR\data\themes\mana"
- File "${SRCDIR}\data\themes\mana\*.png"
- File "${SRCDIR}\data\themes\mana\*.xml"
- SetOutPath "$INSTDIR\data\themes\enchilado"
- File "${SRCDIR}\data\themes\enchilado\*.png"
- File "${SRCDIR}\data\themes\enchilado\*.xml"
- SetOutPath "$INSTDIR\data\themes\golden-delicious"
- File "${SRCDIR}\data\themes\golden-delicious\*.png"
- File "${SRCDIR}\data\themes\golden-delicious\*.xml"
- SetOutPath "$INSTDIR\data\themes\jewelry"
- File "${SRCDIR}\data\themes\jewelry\*.png"
- File "${SRCDIR}\data\themes\jewelry\*.xml"
- SetOutPath "$INSTDIR\data\themes\pink"
- File "${SRCDIR}\data\themes\pink\*.png"
- File "${SRCDIR}\data\themes\pink\*.xml"
- SetOutPath "$INSTDIR\data\themes\unity"
- File "${SRCDIR}\data\themes\unity\*.png"
- File "${SRCDIR}\data\themes\unity\*.xml"
- SetOutPath "$INSTDIR\data\themes\wood"
- File "${SRCDIR}\data\themes\wood\*.png"
- File "${SRCDIR}\data\themes\wood\*.xml"
- SetOutPath "$INSTDIR\data\translations\help"
- File "${SRCDIR}\data\translations\help\*.po"
- SetOutPath "$INSTDIR\data\help"
- File "${SRCDIR}\data\help\*.txt"
- SetOutPath "$INSTDIR\data\help\tips"
- File "${SRCDIR}\data\help\tips\*.txt"
- File "${SRCDIR}\data\help\tips\*.jpg"
- SetOutPath "$INSTDIR\data\help\idx"
- File "${SRCDIR}\data\help\idx\*.idx"
- SetOutPath "$INSTDIR\data\icons\"
- File "${SRCDIR}\data\icons\manaplus.ico"
- SetOutPath "$INSTDIR\data\music"
- File "${SRCDIR}\data\music\*.ogg"
- SetOutPath "$INSTDIR\data\perserver\default\"
- File "${SRCDIR}\data\perserver\default\*.txt"
- File "${SRCDIR}\data\perserver\default\*.xml"
- SetOutPath "$INSTDIR\docs"
- File "${SRCDIR}\docs\FAQ.txt"
-SectionEnd
-
-Section "Create Shortcuts" SecShortcuts
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$SMPROGRAMS\Mana"
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus.lnk" "$INSTDIR\manaplus.exe"
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (no opengl).lnk" "$INSTDIR\manaplus.exe" --no-opengl
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (safemode).lnk" "$INSTDIR\manaplus.exe" --safemode
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (tests).lnk" "$INSTDIR\manaplus.exe" --tests
- CreateShortCut "$DESKTOP\ManaPlus.lnk" "$INSTDIR\manaplus.exe"
- CreateShortCut "$DESKTOP\ManaPlus (tests).lnk" "$INSTDIR\manaplus.exe" --tests
-
- ${registerExtension} "$INSTDIR\manaplus.exe" ".manaplus" "ManaPlus brandings"
-SectionEnd
-
-Section /o "Tmw music" SecTmwMusic
- AddSize 25200
- CreateDirectory "$INSTDIR\data\music"
- SetOutPath "$INSTDIR\data\music"
- NSISdl::download "http://downloads.sourceforge.net/themanaworld/tmwmusic-0.3.tar.gz" "$TEMP\tmwmusic-0.3.tar.gz"
- ;Requires an additional plugin from http://nsis.sourceforge.net/UnTGZ_plug-in Place untgz.dll in your nsis/plugin dir
- untgz::extract -j -d "$INSTDIR\data\music" "$TEMP\tmwmusic-0.3.tar.gz"
- Delete "$TEMP\tmwmusic-0.3.tar.gz"
-SectionEnd
-
-Section /o "Portable" SecPortable
- SetOutPath "$INSTDIR"
- File "portable.xml"
-SectionEnd
-
-Section /o "Debugger" SecDebug
- SetOutPath "$INSTDIR"
- File "${DLLDIR}\gdb.exe"
- File "${DLLDIR}\libdl.dll"
- File "${DLLDIR}\libexpat-1.dll"
- File "${DLLDIR}\libreadline6.dll"
- File "${DLLDIR}\libtermcap.dll"
- File "${EXEDIR}\manaplusd.exe"
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe"
- CreateShortCut "$DESKTOP\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe"
- ${EndIf}
-SectionEnd
-
-Section /o "Profiler" SecProfiler
- SetOutPath "$INSTDIR"
- File "${EXEDIR}\manaplusp.exe"
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (profiler).lnk" "$INSTDIR\manaplusp.exe"
- CreateShortCut "$DESKTOP\ManaPlus (profiler).lnk" "$INSTDIR\manaplusp.exe"
- ${EndIf}
-SectionEnd
-
-; Section "Tools" SecTools
-; SetOutPath "$INSTDIR"
-; File "${EXEDIR}\dyecmd.exe"
-; SectionEnd
-
-Section /o "Evol Online music" SecEvolMusic
- AddSize 9787
- CreateDirectory "$INSTDIR\data\music"
- SetOutPath "$INSTDIR\data\music"
- NSISdl::download "http://downloads.sourceforge.net/project/evolonline/music/evolmusic-beta2-1.tar.gz" "$TEMP\evolmusic-beta2-1.tar.gz"
- untgz::extract -j -d "$INSTDIR\data\music" "$TEMP\evolmusic-beta2-1.tar.gz"
- Delete "$TEMP\evolmusic-beta2-1.tar.gz"
-SectionEnd
-
-Section "Evol Online shortcuts" SecEvol
- SetOutPath "$INSTDIR"
- CreateDirectory "$INSTDIR\data\evol"
- CreateDirectory "$INSTDIR\data\evol\icons"
- CreateDirectory "$INSTDIR\data\evol\images"
-
- SetOutPath "$INSTDIR"
- File "${SRCDIR}\data\evol\evol.manaplus"
- SetOutPath "$INSTDIR\data\evol\images"
- File "${SRCDIR}\data\evol\images\*.png"
- SetOutPath "$INSTDIR\data\evol\icons"
- File "${SRCDIR}\data\evol\icons\*.ico"
-
- CreateShortCut "$SMPROGRAMS\Mana\EvolOnline.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
- CreateShortCut "$DESKTOP\EvolOnline.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\evol.manaplus"' "$INSTDIR\manaplus.exe" 1
-SectionEnd
-
-Section "Translations" SecTrans
- SetOutPath "$INSTDIR"
- File /nonfatal /r "${SRCDIR}\translations"
-SectionEnd
-
-;Package descriptions
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core program files."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Create game shortcuts and register extensions."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecTmwMusic} "Background tmw music. (If selected the tmw music will be downloaded from the internet.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecPortable} "Portable client. (If selected client will work as portable client.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecEvol} "Create shortcuts for Evol Online."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecEvolMusic} "Background evol music. (If selected the evol music will be downloaded from the internet.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecTrans} "Translations for the user interface. Uncheck this component to leave it in English."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecDebug} "Install debugger for try to detect stability issues."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecProfiler} "Install profiler build to detect perfomance issues."
-; !insertmacro MUI_DESCRIPTION_TEXT ${SecTools} "Install tools like dyecmd."
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-
-
-Section -AdditionalIcons
- WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
- CreateShortCut "$SMPROGRAMS\Mana\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
- CreateShortCut "$SMPROGRAMS\Mana\Readme.lnk" "notepad.exe" "$INSTDIR\README.txt"
- CreateShortCut "$SMPROGRAMS\Mana\FAQ.lnk" "$INSTDIR\docs\FAQ.txt"
- CreateShortCut "$SMPROGRAMS\Mana\Uninstall.lnk" "$INSTDIR\uninst.exe"
-SectionEnd
-
-Section -Post
- WriteUninstaller "$INSTDIR\uninst.exe"
- WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
-SectionEnd
-
-Function un.onInit
- !insertmacro MUI_UNGETLANGUAGE
- !insertmacro MULTIUSER_UNINIT
-FunctionEnd
-
-Section Uninstall
- DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\Mana"
-
- Delete "$INSTDIR\*.*"
-
- Delete "$SMPROGRAMS\Mana\Uninstall.lnk"
- Delete "$DESKTOP\ManaPlus.lnk"
- Delete "$DESKTOP\ManaPlus (debug).lnk"
- Delete "$DESKTOP\ManaPlus (profiler).lnk"
- Delete "$DESKTOP\ManaPlus (tests).lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus.lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus (debug).lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus (profiler).lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus (no opengl).lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus (safemode).lnk"
- Delete "$SMPROGRAMS\Mana\ManaPlus (tests).lnk"
- Delete "$SMPROGRAMS\Mana\Website.lnk"
- Delete "$SMPROGRAMS\Mana\Readme.lnk"
- Delete "$SMPROGRAMS\Mana\FAQ.lnk"
- Delete "$SMPROGRAMS\Mana\EvolOnline.lnk"
- Delete "$DESKTOP\EvolOnline.lnk"
-
- RMDir "$SMPROGRAMS\Mana"
-
- RMDir /r "$INSTDIR\data"
- RMDir /r "$INSTDIR\docs"
- RMDir /r "$INSTDIR\translations"
- RMDir /r "$INSTDIR\updates"
- RMDir "$INSTDIR"
-
- DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
- ${unregisterExtension} ".manaplus" "ManaPlus brandings"
- SetAutoClose true
-SectionEnd
diff --git a/packaging/windows/setup_finish.bmp b/packaging/windows/setup_finish.bmp
deleted file mode 100644
index 412db0a90..000000000
--- a/packaging/windows/setup_finish.bmp
+++ /dev/null
Binary files differ
diff --git a/packaging/windows/setup_welcome.bmp b/packaging/windows/setup_welcome.bmp
deleted file mode 100644
index 412db0a90..000000000
--- a/packaging/windows/setup_welcome.bmp
+++ /dev/null
Binary files differ
diff --git a/packaging/windows/tmw.nsi b/packaging/windows/tmw.nsi
deleted file mode 100644
index 4f7d8c5e0..000000000
--- a/packaging/windows/tmw.nsi
+++ /dev/null
@@ -1,486 +0,0 @@
-; This script allows the following parameters being overwritten from
-; command line. When called without any parameters it behaves exactly
-; like the old install script.
-;
-; DLLDIR - directory containing required dlls
-; EXEDIR - directory containing manaplus.exe
-; EXESUFFIX - offset to SRCDIR pointing to a directory containing manaplus.exe
-; PRODUCT_VERSION - software version
-; UPX - upx binary name
-;
-; For a cmake build on UNIX the following should give you a working installer:
-; makensis -DDLLDIR=/path/to/dlls \
-; -DPRODUCT_VERSION=0.1.`date +%Y%m%d`
-; -DUPX=upx
-; -DEXESUFFIX=/src
-
-CRCCheck on
-SetCompress off
-SetCompressor /SOLID lzma
-
-RequestExecutionLevel admin
-
-!define SRCDIR "..\.."
-!ifndef UPX
- !define "UPX upx\upx.exe"
-!endif
-
-!ifdef EXESUFFIX
- !define EXEDIR ${SRCDIR}/${EXESUFFIX}
-!endif
-
-!ifndef EXEDIR
- !define EXEDIR ${SRCDIR}
-!endif
-
-!ifndef DLLDIR
- !define DLLDIR ${SRCDIR}/dll
-!endif
-
-!ifndef BITS
- !define BITS 32
-!endif
-
-!ifndef SEHDLL
- !define SEHDLL "libgcc_s_sjlj-1.dll"
-!endif
-
-;--- (and without !defines ) ---
-!System "${UPX} --best --crp-ms=999999 --compress-icons=0 --nrv2d ${EXEDIR}\manaplus.exe"
-
-!define MULTIUSER_INSTALLMODE_COMMANDLINE
-!include "MultiUser.nsh"
-
-; HM NIS Edit helper defines
-!define PRODUCT_NAME "The Mana World"
-!ifndef PRODUCT_VERSION
- !define PRODUCT_VERSION "1.1"
-!endif
-!define PRODUCT_PUBLISHER "ManaPlus Delopment Team"
-!define PRODUCT_WEB_SITE "http://www.themanaworld.org"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\manaplus.exe"
-!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
-!define PRODUCT_UNINST_ROOT_KEY "SHCTX"
-
-!include "FileAssociation.nsh"
-
-; MUI 1.67 compatible ------
-!include "MUI.nsh"
-
-; MUI Settings
-!define MUI_ABORTWARNING
-;!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
-!define MUI_ICON "${SRCDIR}\data\tmw\icons\tmw-client.ico"
-;!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
-!define MUI_UNICON "${SRCDIR}\data\tmw\icons\tmw-client.ico"
-
-;Language Selection Dialog Settings
-;Remember the installer language
-!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
-!define MUI_LANGDLL_REGISTRY_KEY "Software\The Mana World"
-!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
-
-!define MUI_WELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-!define MUI_UNWELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
-
-; Welcome page
-
-!define MUI_WELCOMEPAGE_TITLE_3LINES
-!insertmacro MUI_PAGE_WELCOME
-; License page
-!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
-; Directory page
-!insertmacro MUI_PAGE_DIRECTORY
-; Components page
-!insertmacro MUI_PAGE_COMPONENTS
-; Instfiles page
-!insertmacro MUI_PAGE_INSTFILES
-; Finish page
-!define MUI_FINISHPAGE_RUN
-!define MUI_FINISHPAGE_RUN_FUNCTION RunTmw
-!define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$\"$INSTDIR\README$\""'
-!define MUI_PAGE_CUSTOMFUNCTION_PRE changeFinishImage
-!define MUI_FINISHPAGE_LINK "Visit our website for the latest news, FAQs and support"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://themanaworld.org"
-!insertmacro MUI_PAGE_FINISH
-
-Function RunTmw
-SetOutPath $INSTDIR
-Exec "$INSTDIR\manaplus.exe $INSTDIR\tmw.manaplus"
-FunctionEnd
-
-Function changeFinishImage
-!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" "$PLUGINSDIR\setup_finish.bmp"
-FunctionEnd
-
-; Uninstaller pages
-
-!insertmacro MUI_UNPAGE_CONFIRM
-!insertmacro MUI_UNPAGE_INSTFILES
-!define MUI_FINISHPAGE_TITLE_3LINES
-!insertmacro MUI_UNPAGE_FINISH
-
-;Languages
-!insertmacro MUI_LANGUAGE "English" # first language is the default language
-!insertmacro MUI_LANGUAGE "French"
-!insertmacro MUI_LANGUAGE "German"
-!insertmacro MUI_LANGUAGE "Spanish"
-!insertmacro MUI_LANGUAGE "SimpChinese"
-!insertmacro MUI_LANGUAGE "TradChinese"
-!insertmacro MUI_LANGUAGE "Japanese"
-!insertmacro MUI_LANGUAGE "Korean"
-!insertmacro MUI_LANGUAGE "Italian"
-!insertmacro MUI_LANGUAGE "Dutch"
-!insertmacro MUI_LANGUAGE "Danish"
-!insertmacro MUI_LANGUAGE "Swedish"
-!insertmacro MUI_LANGUAGE "Norwegian"
-!insertmacro MUI_LANGUAGE "Finnish"
-!insertmacro MUI_LANGUAGE "Greek"
-!insertmacro MUI_LANGUAGE "Russian"
-!insertmacro MUI_LANGUAGE "Portuguese"
-!insertmacro MUI_LANGUAGE "PortugueseBR"
-!insertmacro MUI_LANGUAGE "Polish"
-!insertmacro MUI_LANGUAGE "Ukrainian"
-!insertmacro MUI_LANGUAGE "Czech"
-!insertmacro MUI_LANGUAGE "Slovak"
-!insertmacro MUI_LANGUAGE "Croatian"
-!insertmacro MUI_LANGUAGE "Bulgarian"
-!insertmacro MUI_LANGUAGE "Hungarian"
-!insertmacro MUI_LANGUAGE "Thai"
-!insertmacro MUI_LANGUAGE "Romanian"
-!insertmacro MUI_LANGUAGE "Latvian"
-!insertmacro MUI_LANGUAGE "Macedonian"
-!insertmacro MUI_LANGUAGE "Estonian"
-!insertmacro MUI_LANGUAGE "Turkish"
-!insertmacro MUI_LANGUAGE "Lithuanian"
-!insertmacro MUI_LANGUAGE "Catalan"
-!insertmacro MUI_LANGUAGE "Slovenian"
-!insertmacro MUI_LANGUAGE "Serbian"
-!insertmacro MUI_LANGUAGE "SerbianLatin"
-!insertmacro MUI_LANGUAGE "Arabic"
-!insertmacro MUI_LANGUAGE "Farsi"
-!insertmacro MUI_LANGUAGE "Hebrew"
-!insertmacro MUI_LANGUAGE "Indonesian"
-!insertmacro MUI_LANGUAGE "Mongolian"
-!insertmacro MUI_LANGUAGE "Luxembourgish"
-!insertmacro MUI_LANGUAGE "Albanian"
-!insertmacro MUI_LANGUAGE "Breton"
-!insertmacro MUI_LANGUAGE "Belarusian"
-!insertmacro MUI_LANGUAGE "Icelandic"
-!insertmacro MUI_LANGUAGE "Malay"
-!insertmacro MUI_LANGUAGE "Bosnian"
-!insertmacro MUI_LANGUAGE "Kurdish"
-
-!insertmacro MUI_RESERVEFILE_LANGDLL
-
-ReserveFile "setup_finish.bmp"
-
-; MUI end ------
-
-Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "tmw-${PRODUCT_VERSION}-win${BITS}.exe"
-InstallDir "$PROGRAMFILES\The Mana World"
-InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
-ShowInstDetails show
-ShowUnInstDetails show
-RequestExecutionLevel admin
-
-Function .onInit
- !insertmacro MULTIUSER_INIT
- !insertmacro MUI_LANGDLL_DISPLAY
- InitPluginsDir
- File /oname=$PLUGINSDIR\setup_finish.bmp "setup_finish.bmp"
-
- ReadRegStr $R0 SHCTX \
- "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" \
- "UninstallString"
- StrCmp $R0 "" done
-
- MessageBox MB_YESNO|MB_ICONEXCLAMATION \
- "${PRODUCT_NAME} is already installed. $\n$\nClick `YES` (recomended) to remove the \
- previous version or `NO` to install new version over old version." \
- IDNO done
-
-;Run the uninstaller
-uninst:
- ClearErrors
- ExecWait '$R0' ;Do not copy the uninstaller to a temp file
-
- IfErrors no_remove_uninstaller done
- ;You can either use Delete /REBOOTOK in the uninstaller or add some code
- ;here to remove the uninstaller. Use a registry key to check
- ;whether the user has chosen to uninstall. If you are using an uninstaller
- ;components page, make sure all sections are uninstalled.
- no_remove_uninstaller:
-
-done:
-
-FunctionEnd
-
-
-Section "Core files (required)" SecCore
- SectionIn RO
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$INSTDIR\data"
- CreateDirectory "$INSTDIR\data\tmw"
- CreateDirectory "$INSTDIR\data\tmw\icons"
- CreateDirectory "$INSTDIR\data\tmw\images"
- CreateDirectory "$INSTDIR\data\fonts"
- CreateDirectory "$INSTDIR\data\graphics"
- CreateDirectory "$INSTDIR\data\help"
- CreateDirectory "$INSTDIR\data\help\idx"
- CreateDirectory "$INSTDIR\data\help\tips"
- CreateDirectory "$INSTDIR\data\icons"
- CreateDirectory "$INSTDIR\data\music"
- CreateDirectory "$INSTDIR\data\perserver"
- CreateDirectory "$INSTDIR\data\perserver\default"
- CreateDirectory "$INSTDIR\data\graphics\badges"
- CreateDirectory "$INSTDIR\data\graphics\gui"
- CreateDirectory "$INSTDIR\data\graphics\flags"
- CreateDirectory "$INSTDIR\data\graphics\images"
- CreateDirectory "$INSTDIR\data\graphics\shaders"
- CreateDirectory "$INSTDIR\data\graphics\sprites"
- CreateDirectory "$INSTDIR\data\sfx"
- CreateDirectory "$INSTDIR\data\sfx\system"
- CreateDirectory "$INSTDIR\data\themes"
- CreateDirectory "$INSTDIR\data\themes\blacknblack"
- CreateDirectory "$INSTDIR\data\themes\blackwood"
- CreateDirectory "$INSTDIR\data\themes\classic"
- CreateDirectory "$INSTDIR\data\themes\enchilado"
- CreateDirectory "$INSTDIR\data\themes\golden-delicious"
- CreateDirectory "$INSTDIR\data\themes\jewelry"
- CreateDirectory "$INSTDIR\data\themes\mana"
- CreateDirectory "$INSTDIR\data\themes\pink"
- CreateDirectory "$INSTDIR\data\themes\unity"
- CreateDirectory "$INSTDIR\data\themes\wood"
- CreateDirectory "$INSTDIR\data\translations"
- CreateDirectory "$INSTDIR\data\translations\help"
- CreateDirectory "$INSTDIR\docs"
-
- SetOverwrite ifnewer
- SetOutPath "$INSTDIR"
-
- File "${EXEDIR}\manaplus.exe"
- File "${DLLDIR}\SDL.dll"
- File "${DLLDIR}\SDL_image.dll"
-; File "${DLLDIR}\SDL_mixer.dll"
- File "${DLLDIR}\SDL_net.dll"
- File "${DLLDIR}\SDL_ttf.dll"
- File "${DLLDIR}\libSDL_gfx-15.dll"
- File "${DLLDIR}\libcurl-4.dll"
- File "${DLLDIR}\libfreetype-6.dll"
- File "${DLLDIR}\${SEHDLL}"
- File "${DLLDIR}\libiconv-2.dll"
- File "${DLLDIR}\libintl-8.dll"
- File "${DLLDIR}\libjpeg-9.dll"
- File "${DLLDIR}\libogg-0.dll"
- File "${DLLDIR}\libpng16-16.dll"
- File "${DLLDIR}\libstdc++-6.dll"
- File "${DLLDIR}\libvorbis-0.dll"
- File "${DLLDIR}\libvorbisfile-3.dll"
- File "${DLLDIR}\libxml2-2.dll"
- File "${DLLDIR}\libwinpthread-1.dll"
- File "${DLLDIR}\zlib1.dll"
- File "${SRCDIR}\AUTHORS"
- File "${SRCDIR}\COPYING"
- File "${SRCDIR}\NEWS"
- File "${SRCDIR}\README.txt"
- SetOutPath "$INSTDIR\data\fonts"
- File "${SRCDIR}\data\fonts\*.ttf"
- SetOutPath "$INSTDIR\data\graphics\badges"
- File "${SRCDIR}\data\graphics\badges\*.png"
- File "${SRCDIR}\data\graphics\badges\*.xml"
- SetOutPath "$INSTDIR\data\graphics\flags"
- File "${SRCDIR}\data\graphics\flags\*.png"
- SetOutPath "$INSTDIR\data\graphics\gui"
- File "${SRCDIR}\data\graphics\gui\*.png"
- File "${SRCDIR}\data\graphics\gui\*.xml"
- SetOutPath "$INSTDIR\data\graphics\images"
- File /x minimap_*.png ${SRCDIR}\data\graphics\images\*.png
- File "${SRCDIR}\data\graphics\images\error.png"
- SetOutPath "$INSTDIR\data\graphics\shaders"
- File "${SRCDIR}\data\graphics\shaders\*.glsl"
- SetOutPath "$INSTDIR\data\graphics\sprites"
- File "${SRCDIR}\data\graphics\sprites\*.png"
- File "${SRCDIR}\data\graphics\sprites\*.xml"
- SetOutPath "$INSTDIR\data\sfx\system"
- File "${SRCDIR}\data\sfx\system\*.ogg"
- SetOutPath "$INSTDIR\data\themes\blacknblack"
- File "${SRCDIR}\data\themes\blacknblack\*.png"
- File "${SRCDIR}\data\themes\blacknblack\*.xml"
- SetOutPath "$INSTDIR\data\themes\blackwood"
- File "${SRCDIR}\data\themes\blackwood\*.png"
- File "${SRCDIR}\data\themes\blackwood\*.xml"
- SetOutPath "$INSTDIR\data\themes\mana"
- File "${SRCDIR}\data\themes\mana\*.png"
- File "${SRCDIR}\data\themes\mana\*.xml"
- SetOutPath "$INSTDIR\data\themes\enchilado"
- File "${SRCDIR}\data\themes\enchilado\*.png"
- File "${SRCDIR}\data\themes\enchilado\*.xml"
- SetOutPath "$INSTDIR\data\themes\golden-delicious"
- File "${SRCDIR}\data\themes\golden-delicious\*.png"
- File "${SRCDIR}\data\themes\golden-delicious\*.xml"
- SetOutPath "$INSTDIR\data\themes\jewelry"
- File "${SRCDIR}\data\themes\jewelry\*.png"
- File "${SRCDIR}\data\themes\jewelry\*.xml"
- SetOutPath "$INSTDIR\data\themes\pink"
- File "${SRCDIR}\data\themes\pink\*.png"
- File "${SRCDIR}\data\themes\pink\*.xml"
- SetOutPath "$INSTDIR\data\themes\unity"
- File "${SRCDIR}\data\themes\unity\*.png"
- File "${SRCDIR}\data\themes\unity\*.xml"
- SetOutPath "$INSTDIR\data\themes\wood"
- File "${SRCDIR}\data\themes\wood\*.png"
- File "${SRCDIR}\data\themes\wood\*.xml"
- SetOutPath "$INSTDIR\data\translations\help"
- File "${SRCDIR}\data\translations\help\*.po"
- SetOutPath "$INSTDIR\data\help"
- File "${SRCDIR}\data\help\*.txt"
- SetOutPath "$INSTDIR\data\help\tips"
- File "${SRCDIR}\data\help\tips\*.txt"
- File "${SRCDIR}\data\help\tips\*.jpg"
- SetOutPath "$INSTDIR\data\help\idx"
- File "${SRCDIR}\data\help\idx\*.idx"
- SetOutPath "$INSTDIR\data\icons\"
- File "${SRCDIR}\data\icons\manaplus.ico"
- SetOutPath "$INSTDIR\data\music"
- File "${SRCDIR}\data\music\*.ogg"
- SetOutPath "$INSTDIR\data\perserver\default\"
- File "${SRCDIR}\data\perserver\default\*.txt"
- File "${SRCDIR}\data\perserver\default\*.xml"
- SetOutPath "$INSTDIR\docs"
- File "${SRCDIR}\docs\FAQ.txt"
- SetOutPath "$INSTDIR"
- File "${SRCDIR}\data\tmw\tmw.manaplus"
- SetOutPath "$INSTDIR\data\tmw\images"
- File "${SRCDIR}\data\tmw\images\*.png"
- SetOutPath "$INSTDIR\data\tmw\icons"
- File "${SRCDIR}\data\tmw\icons\*.ico"
-SectionEnd
-
-Section "Create Shortcuts" SecShortcuts
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- CreateDirectory "$SMPROGRAMS\The Mana World"
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World (no opengl).lnk" '"$INSTDIR\manaplus.exe"' '"--no-opengl" "$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World (safemode).lnk" '"$INSTDIR\manaplus.exe"' '"--safemode" "$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World (tests).lnk" '"$INSTDIR\manaplus.exe"' '"--tests" "$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$DESKTOP\The Mana World.lnk" '"$INSTDIR\manaplus.exe"' '"$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$DESKTOP\The Mana World (tests).lnk" '"$INSTDIR\manaplus.exe"' '"--tests" "$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
-
- ${registerExtension} "$INSTDIR\manaplus.exe" ".manaplus" "ManaPlus brandings"
-SectionEnd
-
-Section /o "Portable" SecPortable
- SetOutPath "$INSTDIR"
- File "portable.xml"
-SectionEnd
-
-Section /o "Debugger" SecDebug
- SetOutPath "$INSTDIR"
- File "${DLLDIR}\gdb.exe"
- File "${DLLDIR}\libdl.dll"
- File "${DLLDIR}\libexpat-1.dll"
- File "${DLLDIR}\libreadline6.dll"
- File "${DLLDIR}\libtermcap.dll"
- File "${EXEDIR}\manaplusd.exe"
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe" 2
- CreateShortCut "$DESKTOP\The Mana World (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplusd.exe"' "$INSTDIR\manaplusd.exe" 2
- ${EndIf}
-SectionEnd
-
-Section /o "Profiler" SecProfiler
- SetOutPath "$INSTDIR"
- File "${EXEDIR}\manaplusp.exe"
-
- ${If} ${SectionIsSelected} ${SecShortcuts}
- CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World (profiler).lnk" '"$INSTDIR\manaplusp.exe"' '"$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- CreateShortCut "$DESKTOP\The Mana World (profiler).lnk" '"$INSTDIR\manaplusp.exe"' '"$INSTDIR\tmw.manaplus"' "$INSTDIR\manaplus.exe" 2
- ${EndIf}
-SectionEnd
-
-; Section "Tools" SecTools
-; SetOutPath "$INSTDIR"
-; File "${EXEDIR}\dyecmd.exe"
-; SectionEnd
-
-Section "Translations" SecTrans
- SetOutPath "$INSTDIR"
- File /nonfatal /r "${SRCDIR}\translations"
-SectionEnd
-
-;Package descriptions
-!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core program files."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Create game shortcuts and register extensions."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecPortable} "Portable client. (If selected client will work as portable client.)"
- !insertmacro MUI_DESCRIPTION_TEXT ${SecTrans} "Translations for the user interface. Uncheck this component to leave it in English."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecDebug} "Install debugger for try to detect stability issues."
- !insertmacro MUI_DESCRIPTION_TEXT ${SecProfiler} "Install profiler build to detect perfomance issues."
-; !insertmacro MUI_DESCRIPTION_TEXT ${SecTools} "Install tools like dyecmd."
-!insertmacro MUI_FUNCTION_DESCRIPTION_END
-
-
-
-Section -AdditionalIcons
- WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
- WriteIniStr "$INSTDIR\The Mana World.url" "InternetShortcut" "URL" "http://www.themanaworld.org"
- CreateShortCut "$SMPROGRAMS\The Mana World\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
- CreateShortCut "$SMPROGRAMS\The Mana World\Readme.lnk" "notepad.exe" "$INSTDIR\README.txt"
- CreateShortCut "$SMPROGRAMS\The Mana World\FAQ.lnk" "$INSTDIR\docs\FAQ.txt"
- CreateShortCut "$SMPROGRAMS\The Mana World\Uninstall.lnk" "$INSTDIR\uninst.exe"
-SectionEnd
-
-Section -Post
- WriteUninstaller "$INSTDIR\uninst.exe"
- WriteRegStr SHCTX "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\manaplus.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
-SectionEnd
-
-Function un.onInit
- !insertmacro MUI_UNGETLANGUAGE
- !insertmacro MULTIUSER_UNINIT
-FunctionEnd
-
-Section Uninstall
- DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\The Mana World"
-
- Delete "$INSTDIR\*.*"
-
- Delete "$SMPROGRAMS\The Mana World\Uninstall.lnk"
- Delete "$DESKTOP\The Mana World.lnk"
- Delete "$DESKTOP\The Mana World (debug).lnk"
- Delete "$DESKTOP\The Mana World (profiler).lnk"
- Delete "$DESKTOP\The Mana World (tests).lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World.lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World (debug).lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World (profiler).lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World (no opengl).lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World (safemode).lnk"
- Delete "$SMPROGRAMS\The Mana World\The Mana World (tests).lnk"
- Delete "$SMPROGRAMS\The Mana World\Website.lnk"
- Delete "$SMPROGRAMS\The Mana World\Readme.lnk"
- Delete "$SMPROGRAMS\The Mana World\FAQ.lnk"
- Delete "$DESKTOP\The Mana World.lnk"
-
- RMDir "$SMPROGRAMS\The Mana World"
-
- RMDir /r "$INSTDIR\data"
- RMDir /r "$INSTDIR\docs"
- RMDir /r "$INSTDIR\translations"
- RMDir /r "$INSTDIR\updates"
- RMDir "$INSTDIR"
-
- DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- DeleteRegKey SHCTX "${PRODUCT_DIR_REGKEY}"
- ${unregisterExtension} ".manaplus" "ManaPlus brandings"
- SetAutoClose true
-SectionEnd