I start build my install program and I have little problem when i want add language. I have message that I must put UMUI_MULTILANG_GET. So I add this value after another function, but now I have error that I have two the same Function .onInit Can someone help me? I change value to !system 'echo but not work ;/
Ps. Can I add registry option which find add and next time find key language?
Regards,
Lukas
;NSIS Ultra Modern User Interface
;Basic Example Script
;Originally Written by Joost Verburg
;--------------------------------
!system 'echo !insertmacro UMUI_MULTILANG_GET > $%TEMP%\descs.nsh'
Name "AdvSplash.dll test"
OutFile "AdvSplash Test.exe"
XPStyle on
Function .onInit
# the plugins dir is automatically deleted when the installer exits
InitPluginsDir
File /oname=$PLUGINSDIR\splash.bmp "c:\screen1600.bmp"
#optional
#File /oname=$PLUGINSDIR\splash.wav "C:\myprog\sound.wav"
advsplash::show 2500 600 400 -1 $PLUGINSDIR\splash
Pop $0 ; $0 has '1' if the user closed the splash screen early,
; '0' if everything closed normally, and '-1' if some error occurred.
Delete $PLUGINSDIR\splash.bmp
FunctionEnd
Section
SectionEnd
;--------------------------------
;General
;Name and file
Name "Test"
OutFile "1_test.exe"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "Lukas"
!define PRODUCT_WEB_SITE "http://www."
;Default installation folder
InstallDir "c:\Game\"
;Get installation folder from registry if available
InstallDirRegKey HKLM "Software\Game\Lukas" "Install Dir"
;--------------------------------
;Include ******odernUI
!include "UMUI.nsh"
; !include "MUIEx.nsh"
;--------------------------------
;Interface Settings
!define UMUI_SKIN "gray2"
!define UMUI_BGSKIN "blue"
!define UMUI_USE_INSTALLOPTIONSEX
!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
!define UMUI_PAGEBGIMAGE
!define UMUI_UNPAGEBGIMAGE
;--------------------------------
;Pages
!insertmacro UMUI_PAGE_MULTILANGUAGE
!insertmacro MUI_PAGE_WELCOME
!define UMUI_INFORMATIONPAGE_USE_RICHTEXTFORMAT
!insertmacro UMUI_PAGE_INFORMATION "${NSISDIR}\Docs\******odernUI\new1045.txt"
; !insertmacro UMUI_PAGE_INFORMATION "${NSISDIR}\Docs\******odernUI\License.txt"
!insertmacro MUI_PAGE_LICENSE "c:\Licencja.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_PAGE_INSTFILES
;--------------------------------
;Languages
; first language is the default language if the system language is not in this list
!insertmacro MUI_LANGUAGE "English"
; Other UMUI translated languages
!insertmacro MUI_LANGUAGE "Polish"
;--------------------------------
;Installer Sections
Section "Dummy Section" SecDummy
SetOutPath "$INSTDIR"
;ADD YOUR OWN FILES HERE...
;Store installation folder
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
;Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"
SectionEnd
;--------------------------------
;Descriptions
LangString FILE ${LANG_ENGLISH} "English.txt"
LangString FILE ${LANG_Polish} "Polish.txt"
!insertmacro UMUI_PAGE_INFORMATION "${FILE}"
;--------------------------------
;Uninstaller Section
Section "Uninstall"
;ADD YOUR OWN FILES HERE...
Delete "$INSTDIR\Uninstall.exe"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
SectionEnd