Installer: Remember the chosen language in the previous installation
Set/read default installer language to/from registry. Fix #10582, close #11492
This commit is contained in:
parent
0b54cb4daa
commit
054e3d0ae1
|
@ -174,8 +174,19 @@ updaterDone:
|
|||
InitPluginsDir ; Initializes the plug-ins dir ($PLUGINSDIR) if not already initialized.
|
||||
Call preventInstallInWin9x
|
||||
|
||||
; look for previously selected language
|
||||
ClearErrors
|
||||
Var /GLOBAL tempLng
|
||||
ReadRegStr $tempLng HKLM "SOFTWARE\${APPNAME}" 'InstallerLanguage'
|
||||
${IfNot} ${Errors}
|
||||
StrCpy $Language "$tempLng" ; set default language
|
||||
${EndIf}
|
||||
|
||||
!insertmacro MUI_LANGDLL_DISPLAY
|
||||
|
||||
; save selected language to registry
|
||||
WriteRegStr HKLM "SOFTWARE\${APPNAME}" 'InstallerLanguage' '$Language'
|
||||
|
||||
!ifdef ARCH64 || ARCHARM64 ; x64 or ARM64
|
||||
${If} ${RunningX64}
|
||||
; disable registry redirection (enable access to 64-bit portion of registry)
|
||||
|
|
Loading…
Reference in New Issue