installer: updated translation, added pak3.pk3, fixed uninstaller

This commit is contained in:
Radegast 2012-08-13 11:56:54 +02:00
parent 9d5274f0cb
commit 3ebcc1e000

View file

@ -5,6 +5,8 @@
Name "Wolfenstein ET: Legacy" Name "Wolfenstein ET: Legacy"
RequestExecutionLevel admin #NOTE: You still need to check user rights with UserInfo!
# General Symbol Definitions # General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)" !define REGKEY "SOFTWARE\$(^Name)"
!define VERSION "2.70 alpha (git ${__DATE__})" !define VERSION "2.70 alpha (git ${__DATE__})"
@ -21,7 +23,7 @@ Name "Wolfenstein ET: Legacy"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "WolfET Legacy" !define MUI_STARTMENUPAGE_DEFAULTFOLDER "WolfET Legacy"
!define MUI_FINISHPAGE_SHOWREADME "" !define MUI_FINISHPAGE_SHOWREADME ""
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut" !define MUI_FINISHPAGE_SHOWREADME_TEXT $(^CreateDesktopShortcut)
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction !define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico" !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\win-uninstall.ico"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE !define MUI_UNFINISHPAGE_NOAUTOCLOSE
@ -91,6 +93,7 @@ Section !ET:L MainProgram
File etmain\cgame_mp_x86.dll File etmain\cgame_mp_x86.dll
File etmain\qagame_mp_x86.dll File etmain\qagame_mp_x86.dll
File etmain\ui_mp_x86.dll File etmain\ui_mp_x86.dll
File etmain\pak3.pk3
SetOutPath $DESKTOP SetOutPath $DESKTOP
WriteRegStr HKLM "${REGKEY}\Components" ET:L 1 WriteRegStr HKLM "${REGKEY}\Components" ET:L 1
SectionEnd SectionEnd
@ -122,12 +125,13 @@ Function finishpageaction
FunctionEnd FunctionEnd
Section -post PostInstall Section -post PostInstall
SetShellVarContext all
WriteRegStr HKLM "${REGKEY}" Path $INSTDIR WriteRegStr HKLM "${REGKEY}" Path $INSTDIR
SetOutPath $INSTDIR SetOutPath $INSTDIR
WriteUninstaller $INSTDIR\uninstall.exe WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetOutPath $SMPROGRAMS\$StartMenuGroup SetOutPath $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" $INSTDIR\uninstall.exe ;CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" $INSTDIR\uninstall.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk" "$INSTDIR\etl.exe" "" "$INSTDIR\wolfet.ico" CreateShortcut "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk" "$INSTDIR\etl.exe" "" "$INSTDIR\wolfet.ico"
!insertmacro MUI_STARTMENU_WRITE_END !insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" WriteRegStr HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
@ -159,6 +163,8 @@ Section /o -un.ET:L UNMainProgram
Delete /REBOOTOK $INSTDIR\etmain\ui_mp_x86.dll Delete /REBOOTOK $INSTDIR\etmain\ui_mp_x86.dll
Delete /REBOOTOK $INSTDIR\etmain\qagame_mp_x86.dll Delete /REBOOTOK $INSTDIR\etmain\qagame_mp_x86.dll
Delete /REBOOTOK $INSTDIR\etmain\cgame_mp_x86.dll Delete /REBOOTOK $INSTDIR\etmain\cgame_mp_x86.dll
Delete /REBOOTOK $INSTDIR\etmain\pak3.pk3
RmDir /r /REBOOTOK $INSTDIR\etmain ; this deletes EVERYTHING recursively! Maybe a bad idea.
Delete /REBOOTOK $INSTDIR\SDL.dll Delete /REBOOTOK $INSTDIR\SDL.dll
Delete /REBOOTOK $INSTDIR\README-SDL.txt Delete /REBOOTOK $INSTDIR\README-SDL.txt
Delete /REBOOTOK $INSTDIR\libjpeg-8.dll Delete /REBOOTOK $INSTDIR\libjpeg-8.dll
@ -171,17 +177,17 @@ Section /o -un.ET:L UNMainProgram
SectionEnd SectionEnd
Section -un.post UNPostInstall Section -un.post UNPostInstall
SetShellVarContext all
Delete "$DESKTOP\ET Legacy.lnk" Delete "$DESKTOP\ET Legacy.lnk"
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" ;Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
Delete /REBOOTOK "$SMPROGRAMS\ET Legacy.lnk" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\ET Legacy.lnk"
RmDir /REBOOTOK "$SMPROGRAMS\$StartMenuGroup"
Delete /REBOOTOK $INSTDIR\uninstall.exe Delete /REBOOTOK $INSTDIR\uninstall.exe
DeleteRegValue HKLM "${REGKEY}" StartMenuGroup DeleteRegValue HKLM "${REGKEY}" StartMenuGroup
DeleteRegValue HKLM "${REGKEY}" Path DeleteRegValue HKLM "${REGKEY}" Path
DeleteRegKey /IfEmpty HKLM "${REGKEY}\Components" DeleteRegKey /IfEmpty HKLM "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKLM "${REGKEY}" DeleteRegKey /IfEmpty HKLM "${REGKEY}"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /r /REBOOTOK $INSTDIR\etmain ; this deletes EVERYTHING recursively! Maybe a bad idea.
RmDir /REBOOTOK $INSTDIR RmDir /REBOOTOK $INSTDIR
Push $R0 Push $R0
StrCpy $R0 $StartMenuGroup 1 StrCpy $R0 $StartMenuGroup 1
@ -213,19 +219,34 @@ FunctionEnd
# Installer Language Strings # Installer Language Strings
# TODO Update the Language Strings with the appropriate translations. # TODO Update the Language Strings with the appropriate translations.
#
# ENGLISH
#
LangString ^UninstallLink ${LANG_ENGLISH} "Uninstall $(^Name)" LangString ^UninstallLink ${LANG_ENGLISH} "Uninstall $(^Name)"
LangString ^UninstallLink ${LANG_CZECH} "Uninstall $(^Name)"
LangString ^UninstallLink ${LANG_GERMAN} "Uninstall $(^Name)"
LangString ^UninstallLink ${LANG_POLISH} "Odinstaluj $(^Name)"
LangString MainProgram_DESC ${LANG_ENGLISH} "Game binaries" LangString MainProgram_DESC ${LANG_ENGLISH} "Game binaries"
LangString GameData_DESC ${LANG_ENGLISH} "Download game datafiles required to play, i.e. pak0.pk3, pak1.pk3, pak2.pk3 and mp_bin.pk3. You will NOT be able to play without them." LangString GameData_DESC ${LANG_ENGLISH} "Download game datafiles required to play, i.e. pak0.pk3, pak1.pk3, pak2.pk3 and mp_bin.pk3. You will NOT be able to play without them."
LangString ^CreateDesktopShortcut ${LANG_ENGLISH} "Create Desktop Shortcut"
LangString MainProgram_DESC ${LANG_CZECH} "Game binaries" #
LangString GameData_DESC ${LANG_CZECH} "Download game datafiles required to play, i.e. pak0.pk3, pak1.pk3, pak2.pk3 and mp_bin.pk3. You will NOT be able to play without them." # CZECH
#
LangString ^UninstallLink ${LANG_CZECH} "Odinstaluj $(^Name)"
LangString MainProgram_DESC ${LANG_CZECH} "Soubory se hrou"
LangString GameData_DESC ${LANG_CZECH} "Stáhnout soubory s herními daty, t.j. pak0.pk3, pak1.pk3, pak2.pk3 a mp_bin.pk3. Bez nich hru nebude možné spustit."
LangString ^CreateDesktopShortcut ${LANG_CZECH} "Vytvořit zástupce na ploše"
#
# GERMAN
#
LangString ^UninstallLink ${LANG_GERMAN} "Uninstall $(^Name)"
LangString MainProgram_DESC ${LANG_GERMAN} "Game binaries" LangString MainProgram_DESC ${LANG_GERMAN} "Game binaries"
LangString GameData_DESC ${LANG_GERMAN} "Download game datafiles required to play, i.e. pak0.pk3, pak1.pk3, pak2.pk3 and mp_bin.pk3. You will NOT be able to play without them." LangString GameData_DESC ${LANG_GERMAN} "Download game datafiles required to play, i.e. pak0.pk3, pak1.pk3, pak2.pk3 and mp_bin.pk3. You will NOT be able to play without them."
LangString ^CreateDesktopShortcut ${LANG_GERMAN} "Create Desktop Shortcut"
#
# POLISH
#
LangString ^UninstallLink ${LANG_POLISH} "Odinstaluj $(^Name)"
LangString MainProgram_DESC ${LANG_POLISH} "Pliki wykonywalne" LangString MainProgram_DESC ${LANG_POLISH} "Pliki wykonywalne"
LangString GameData_DESC ${LANG_POLISH} "Pobierz pliki wymagane do gry. Są to pliki pak0.pk3, pak1.pk3, pak2.pk3 oraz mp_bin.pk3. Nie jest możliwe granie bez tych plików." LangString GameData_DESC ${LANG_POLISH} "Pobierz pliki wymagane do gry. Są to pliki pak0.pk3, pak1.pk3, pak2.pk3 oraz mp_bin.pk3. Nie jest możliwe granie bez tych plików."
LangString ^CreateDesktopShortcut ${LANG_POLISH} "Create Desktop Shortcut"