diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-15 18:45:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-15 22:09:58 +0300 |
commit | 103aa3f43e457ebfcd32fe5ea4624539dd32978d (patch) | |
tree | 56cdf724bc50575bba76ca0efb1bf105b35b76b0 /packaging/windows/setup.nsi | |
parent | 9e8ae9ad161c7dc587ed8e06566bb3e8aed6bfe9 (diff) | |
download | manaplus-103aa3f43e457ebfcd32fe5ea4624539dd32978d.tar.gz manaplus-103aa3f43e457ebfcd32fe5ea4624539dd32978d.tar.bz2 manaplus-103aa3f43e457ebfcd32fe5ea4624539dd32978d.tar.xz manaplus-103aa3f43e457ebfcd32fe5ea4624539dd32978d.zip |
Associate manaplus extension in windows with ManaPlus.
Diffstat (limited to 'packaging/windows/setup.nsi')
-rw-r--r-- | packaging/windows/setup.nsi | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi index 8ffae0d06..1f1230e45 100644 --- a/packaging/windows/setup.nsi +++ b/packaging/windows/setup.nsi @@ -18,6 +18,8 @@ CRCCheck on SetCompress off SetCompressor /SOLID lzma +RequestExecutionLevel admin + !define SRCDIR "..\.." !ifndef UPX !define "UPX upx\upx.exe" @@ -49,6 +51,8 @@ SetCompressor /SOLID lzma !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" !define PRODUCT_UNINST_ROOT_KEY "HKLM" +!include "FileAssociation.nsh" + ; MUI 1.67 compatible ------ !include "MUI.nsh" @@ -86,7 +90,7 @@ SetCompressor /SOLID lzma !define MUI_FINISHPAGE_SHOWREADME 'notepad.exe "$\"$INSTDIR\README$\""' !define MUI_PAGE_CUSTOMFUNCTION_PRE changeFinishImage !define MUI_FINISHPAGE_LINK "Visit Mana website for the latest news, FAQs and support" -!define MUI_FINISHPAGE_LINK_LOCATION "http://tmw.cetki.com/4144/" +!define MUI_FINISHPAGE_LINK_LOCATION "http://manaplus.evolonline.org/" !insertmacro MUI_PAGE_FINISH Function RunMana @@ -288,16 +292,18 @@ Section "Create Shortcuts" SecShortcuts CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (no opengl).lnk" "$INSTDIR\manaplus.exe" --no-opengl CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (safemode).lnk" "$INSTDIR\manaplus.exe" --safemode CreateShortCut "$DESKTOP\ManaPlus.lnk" "$INSTDIR\manaplus.exe" + + ${registerExtension} "$INSTDIR\manaplus.exe" ".manaplus" "ManaPlus brandings" SectionEnd Section /o "Music" SecMusic AddSize 17602 CreateDirectory "$INSTDIR\data\music" SetOutPath "$INSTDIR\data\music" - NSISdl::download "http://downloads.sourceforge.net/themanaworld/tmwmusic-0.2.tar.gz" "$TEMP\tmwmusic-0.2.tar.gz" + 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.2.tar.gz" - Delete "$TEMP\tmwmusic-0.2.tar.gz" + 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 @@ -313,7 +319,7 @@ 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." + !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} "Create game shortcuts and register extensions." !insertmacro MUI_DESCRIPTION_TEXT ${SecMusic} "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 ${SecTrans} "Translations for the user interface. Uncheck this component to leave it in English." @@ -367,5 +373,6 @@ Section Uninstall DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}" + ${unregisterExtension} ".manaplus" "ManaPlus brandings" SetAutoClose true SectionEnd |