...
 
Commits (3)
......@@ -4,8 +4,9 @@
Name "DodgeWars Replay Parser"
OutFile "dw.exe"
InstallDir "C:\Replay Parser files"
SetCompressor /SOLID lzma
;InstallDir "C:\Replay Parser files"
SetCompressor lzma
InstallDirRegKey HKLM "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-King" InstallPath
; Customization of the finish page (checkbox for desktop schortcut)
!define MUI_FINISHPAGE_SHOWREADME ""
......@@ -31,7 +32,7 @@ BrandingText "Rise of the Witch-King 2.02 -- www.gamereplays.org"
;;
Section
;SectionIn RO ;Make it read-only
SetOutPath $INSTDIR
SetOutPath "$INSTDIR\Replay Parser files"
File /r "DodgeWars\*.*"
......
[information]
category=4
[enableFiles]
size=0
[disableFiles]
1\name=lang/russiantranslatedstrings202_v8.0.0.big
size=1
[switchFiles]
size=0
[information]
category=4
[enableFiles]
1\name=lang/russiantranslatedstrings202_v8.0.0.big
1\checksum=8446a71c5c1f8ddc8a1fa5c7d2f5d1ec510e2220
size=1
[disableFiles]
size=0
[switchFiles]
size=0
# Modern UI example script
!include MUI.nsh
!include sections.nsh
Name "2.02 Russian Language Pack"
OutFile "202_v8_russian_language.exe"
InstallDirRegKey HKLM "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" InstallPath
SetCompressor /SOLID lzma
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
BrandingText "Rise of the Witch-King 2.02 -- www.gamereplays.org"
Var LANG
;;
; Main component
;;
Section
DetailPrint "Determining language..."
ReadRegStr $LANG HKLM "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" Language
DetailPrint "Your language is: $LANG"
;Check if language is what we expect
StrCmp $LANG "russian" 0 noteq
DetailPrint "Your game language is Russian."
goto end
noteq:
DetailPrint "Your game language is not Russian."
MessageBox MB_YESNO|MB_ICONEXCLAMATION "Your game does not seem to be installed in Russian. Are you sure you want to install the Russian language pack anyway?" IDYES true IDNO false
true:
DetailPrint "Installing anyway..."
Goto next
false:
DetailPrint "Aborting..."
Abort
next:
end:
;SectionIn RO ;Make it read-only
SetOutPath $INSTDIR
File /r "V8-Russian/*"
SectionEnd