Fixed installer text mangling.

The `Unicode true` line needs to be included before anything else for
NSIS to handle Unicode text correctly.
This commit is contained in:
Oliver Hamlet
2015-02-24 12:14:44 +00:00
parent 76564bf5b8
commit b3bd182c1b
+33 -30
View File
@@ -1,4 +1,4 @@
;LOOT NSIS Installer Script
;LOOT NSIS Installer Script
;--------------------------------
;Include NSIS files.
@@ -8,6 +8,38 @@
!include "LogicLib.nsh"
!include "nsDialogs.nsh"
;--------------------------------
;General
; Display Unicode text correctly.
Unicode true
;Name, file and version info for installer.
Name "LOOT v0.7.0"
OutFile "..\build\LOOT Installer.exe"
VIProductVersion 0.7.0.0
;Request application privileges for Windows Vista/7
RequestExecutionLevel admin
;Icon for installer\uninstaller
!define MUI_ICON "..\resources\icon.ico"
!define MUI_UNICON "..\resources\icon.ico"
; This causes an "are you sure?" message to be displayed if you try to quit the installer or uninstaller.
!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
;Checks that the installer's CRC is correct.
CRCCheck force
;The SOLID lzma compressor gives the best compression ratio.
SetCompressor /SOLID lzma
;Default install directory.
InstallDir "$PROGRAMFILES\LOOT"
InstallDirRegKey HKLM "Software\LOOT" "Installed Path"
;--------------------------------
; Helper Function
@@ -70,35 +102,6 @@ Function ReplaceLineStr
Pop $R0
FunctionEnd
;--------------------------------
;General
;Name, file and version info for installer.
Name "LOOT v0.7.0"
OutFile "..\build\LOOT Installer.exe"
VIProductVersion 0.7.0.0
;Request application privileges for Windows Vista/7
RequestExecutionLevel admin
;Icon for installer\uninstaller
!define MUI_ICON "..\resources\icon.ico"
!define MUI_UNICON "..\resources\icon.ico"
; This causes an "are you sure?" message to be displayed if you try to quit the installer or uninstaller.
!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
;Checks that the installer's CRC is correct.
CRCCheck force
;The SOLID lzma compressor gives the best compression ratio.
SetCompressor /SOLID lzma
;Default install directory.
InstallDir "$PROGRAMFILES\LOOT"
InstallDirRegKey HKLM "Software\LOOT" "Installed Path"
;--------------------------------
;Pages