Commit e9c17778 authored by brabox's avatar brabox

Added french installer script

parent 3c67a687
[information]
category=4
[enableFiles]
size=0
[disableFiles]
1\name=lang/frenchstrings202_v7.0.0.big
size=1
[switchFiles]
size=0
[information]
category=4
[enableFiles]
1\name=lang/frenchstrings202_v7.0.0.big
1\checksum=86263ed424db7c85e4f5ce2a035bd31896aa9acf
size=1
[disableFiles]
size=0
[switchFiles]
size=0
# Modern UI example script
!include MUI.nsh
!include sections.nsh
Name "2.02 French Language Pack"
OutFile "202_v7_french_language.exe"
InstallDirRegKey HKLM "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" InstallPath
SetCompressor /SOLID lzma
; Customization of the license page (so it says readme rather than license)
;!define MUI_PAGE_HEADER_TEXT "Read Me"
;!define MUI_PAGE_HEADER_SUBTEXT "For new players"
;!define MUI_LICENSEPAGE_TEXT_TOP "Please read the following information:"
;!define MUI_LICENSEPAGE_TEXT_BOTTOM " . "
;!define MUI_LICENSEPAGE_BUTTON "Next >"
; Customization of the finish page (checkbox for desktop schortcut)
;!define MUI_FINISHPAGE_SHOWREADME ""
;!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
;!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut"
;!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction
;!define MUI_ICON "202icon.ico"
!insertmacro MUI_PAGE_WELCOME
;!insertmacro MUI_PAGE_LICENSE "license.rtf"
;!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
;!insertmacro MUI_LANGUAGE "German"
;!insertmacro MUI_LANGUAGE "French"
BrandingText "Rise of the Witch-King 2.02 -- www.gamereplays.org"
;;
; Main component
;;
Section
;SectionIn RO ;Make it read-only
SetOutPath $INSTDIR
File /r "French/*"
;~ File /r v7std\lang
;~ File /r v7std\launcher_releases
writeUninstaller "$INSTDIR\uninstall02French.exe"
SectionEnd
;;
; This spawns the confirmation window when uninstalling
;;
function un.onInit
#Verify the uninstaller - last chance to back out
MessageBox MB_OKCANCEL "Permanantly remove French Lanugage Pack for RotWK 2.02 version 7.0.0?" IDOK next
Abort
next:
functionEnd
;;
; Uninstaller section
;;
section "uninstall"
SetOutPath "$INSTDIR"
; first, we delete the dat files, whichever version tey may be
delete "$INSTDIR\lang\frenchstrings202_v7.0.0.big"
delete "$INSTDIR\launcher_releases\2.01 French.ini"
delete "$INSTDIR\launcher_releases\2.02 v7.0.0 French.ini"
# Always delete uninstaller as the last action
delete "$INSTDIR\uninstall02French.exe"
sectionEnd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment