summaryrefslogtreecommitdiff
path: root/packaging/windows
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows')
-rw-r--r--packaging/windows/setup.nsi77
1 files changed, 36 insertions, 41 deletions
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
index 629bcf85..164b49a6 100644
--- a/packaging/windows/setup.nsi
+++ b/packaging/windows/setup.nsi
@@ -5,14 +5,14 @@ SetCompressor /SOLID lzma
!define SRCDIR "..\.."
;--- (and without !defines ) ---
-!System "upx\upx.exe --best --crp-ms=999999 --compress-icons=0 --nrv2d ${SRCDIR}\aethyra.exe"
+!System "upx\upx.exe --best --crp-ms=999999 --compress-icons=0 --nrv2d ${SRCDIR}\tmw.exe"
; HM NIS Edit helper defines
-!define PRODUCT_NAME "Aethyra"
-!define PRODUCT_VERSION "0.0.27.1"
-!define PRODUCT_PUBLISHER "Aethyra Development Team"
-!define PRODUCT_WEB_SITE "http://aethyra.org"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\aethyra.exe"
+!define PRODUCT_NAME "The Mana World"
+!define PRODUCT_VERSION "0.0.28"
+!define PRODUCT_PUBLISHER "The Mana World Development Team"
+!define PRODUCT_WEB_SITE "http://themanaworld.org"
+!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\tmw.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
@@ -22,14 +22,14 @@ SetCompressor /SOLID lzma
; MUI Settings
!define MUI_ABORTWARNING
;!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\win-install.ico"
-!define MUI_ICON "${SRCDIR}\data\icons\aethyra.ico"
+!define MUI_ICON "${SRCDIR}\data\icons\tmw.ico"
;!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
-!define MUI_UNICON "${SRCDIR}\data\icons\aethyra.ico"
+!define MUI_UNICON "${SRCDIR}\data\icons\tmw.ico"
;Language Selection Dialog Settings
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
-!define MUI_LANGDLL_REGISTRY_KEY "Software\Aethyra"
+!define MUI_LANGDLL_REGISTRY_KEY "Software\The Mana World"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
!define MUI_WELCOMEFINISHPAGE_BITMAP "setup_welcome.bmp"
@@ -47,16 +47,16 @@ SetCompressor /SOLID lzma
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN
-!define MUI_FINISHPAGE_RUN_FUNCTION Runaethyra
+!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 the Aethyra website for the latest news, FAQs and support"
-!define MUI_FINISHPAGE_LINK_LOCATION "http://aethyra.org"
+!define MUI_FINISHPAGE_LINK "Visit TMW website for the latest news, FAQs and support"
+!define MUI_FINISHPAGE_LINK_LOCATION "http://themanaworld.org"
!insertmacro MUI_PAGE_FINISH
-Function Runaethyra
+Function RunTMW
SetOutPath $INSTDIR
-Exec "$INSTDIR\aethyra.exe"
+Exec "$INSTDIR\tmw.exe"
FunctionEnd
Function changeFinishImage
@@ -128,8 +128,8 @@ ReserveFile "setup_finish.bmp"
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "aethyra-${PRODUCT_VERSION}-win32.exe"
-InstallDir "$PROGRAMFILES\Aethyra"
+OutFile "tmw-${PRODUCT_VERSION}-win32.exe"
+InstallDir "$PROGRAMFILES\The Mana World"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
@@ -144,9 +144,9 @@ Section "Core files (required)" SecCore
SectionIn RO
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
- CreateDirectory "$SMPROGRAMS\Aethyra"
- CreateShortCut "$SMPROGRAMS\Aethyra\Aethyra.lnk" "$INSTDIR\aethyra.exe"
- CreateShortCut "$DESKTOP\Aethyra.lnk" "$INSTDIR\aethyra.exe"
+ CreateDirectory "$SMPROGRAMS\The Mana World"
+ CreateShortCut "$SMPROGRAMS\The Mana World\The Mana World.lnk" "$INSTDIR\tmw.exe"
+ CreateShortCut "$DESKTOP\The Mana World.lnk" "$INSTDIR\tmw.exe"
CreateDirectory "$INSTDIR\data"
CreateDirectory "$INSTDIR\data\fonts"
CreateDirectory "$INSTDIR\data\graphics"
@@ -156,12 +156,11 @@ Section "Core files (required)" SecCore
CreateDirectory "$INSTDIR\data\graphics\gui"
CreateDirectory "$INSTDIR\data\graphics\images"
CreateDirectory "$INSTDIR\docs"
- CreateDirectory "$INSTDIR\po"
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
- File "${SRCDIR}\aethyra.exe"
+ File "${SRCDIR}\tmw.exe"
File "${SRCDIR}\*.dll"
File "${SRCDIR}\AUTHORS"
File "${SRCDIR}\COPYING"
@@ -177,31 +176,27 @@ Section "Core files (required)" SecCore
SetOutPath "$INSTDIR\data\help"
File "${SRCDIR}\data\help\*.txt"
SetOutPath "$INSTDIR\data\icons\"
- File "${SRCDIR}\data\icons\aethyra.ico"
+ File "${SRCDIR}\data\icons\tmw.ico"
SetOutPath "$INSTDIR\data\music"
File /nonfatal "${SRCDIR}\data\music\*.ogg"
SetOutPath "$INSTDIR\docs"
File "${SRCDIR}\docs\FAQ.txt"
- SetOutPath "$INSTDIR\po"
- File "${SRCDIR}\po\aethyra.pot"
- File "${SRCDIR}\po\LINGUAS"
- File "${SRCDIR}\po\*.po"
SectionEnd
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
- CreateShortCut "$SMPROGRAMS\Aethyra\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
- CreateShortCut "$SMPROGRAMS\Aethyra\Readme.lnk" "notepad.exe" "$INSTDIR\README"
- CreateShortCut "$SMPROGRAMS\Aethyra\FAQ.lnk" "$INSTDIR\docs\FAQ.txt"
- CreateShortCut "$SMPROGRAMS\Aethyra\Uninstall.lnk" "$INSTDIR\uninst.exe"
+ CreateShortCut "$SMPROGRAMS\The Mana World\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
+ CreateShortCut "$SMPROGRAMS\The Mana World\Readme.lnk" "notepad.exe" "$INSTDIR\README"
+ 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 HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\aethyra.exe"
+ WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\tmw.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\aethyra.exe"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\tmw.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}"
@@ -212,21 +207,21 @@ Function un.onInit
FunctionEnd
Section Uninstall
- DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Aethyra"
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\The Mana World"
Delete "$INSTDIR\*.*"
- Delete "$SMPROGRAMS\Aethyra\Uninstall.lnk"
- Delete "$DESKTOP\Aethyra.lnk"
- Delete "$SMPROGRAMS\Aethyra\Aethyra.lnk"
- Delete "$SMPROGRAMS\Aethyra\Website.lnk"
- Delete "$SMPROGRAMS\Aethyra\Readme.lnk"
- Delete "$SMPROGRAMS\Aethyra\FAQ.lnk"
+ Delete "$SMPROGRAMS\The Mana World\Uninstall.lnk"
+ Delete "$DESKTOP\The Mana World.lnk"
+ Delete "$SMPROGRAMS\The Mana World\The Mana World.lnk"
+ Delete "$SMPROGRAMS\The Mana World\Website.lnk"
+ Delete "$SMPROGRAMS\The Mana World\Readme.lnk"
+ Delete "$SMPROGRAMS\The Mana World\FAQ.lnk"
+
+ RMDir "$SMPROGRAMS\The Mana World"
- RMDir "$SMPROGRAMS\Aethyra"
RMDir /r "$INSTDIR\data"
RMDir /r "$INSTDIR\docs"
- RMDir /r "$INSTDIR\po"
RMDir /r "$INSTDIR\updates"
RMDir "$INSTDIR"