From 1c3a4e15399964edc6cdb57f5bec6c9a4f2bdf02 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 2 Oct 2007 17:08:41 +0000 Subject: [PATCH] fixed MUI_UNGETLANGUAGE which didn't test the right variable and didn't declare it in the first place causing an error in case MUI_LANGDLL_DISPLAY isn't used git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5301 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI 2/Localization.nsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Contrib/Modern UI 2/Localization.nsh b/Contrib/Modern UI 2/Localization.nsh index 93cb1b85..e9548616 100644 --- a/Contrib/Modern UI 2/Localization.nsh +++ b/Contrib/Modern UI 2/Localization.nsh @@ -146,13 +146,16 @@ Localization ;Get language from registry in uninstaller - !verbose pop + !verbose push + !verbose ${MUI_VERBOSE} + + !insertmacro MUI_LANGDLL_VARIABLES !ifdef MUI_LANGDLL_REGISTRY_ROOT & MUI_LANGDLL_REGISTRY_KEY & MUI_LANGDLL_REGISTRY_VALUENAME ReadRegStr $mui.LangDLL.RegistryLanguage "${MUI_LANGDLL_REGISTRY_ROOT}" "${MUI_LANGDLL_REGISTRY_KEY}" "${MUI_LANGDLL_REGISTRY_VALUENAME}" - ${if} mui.LangDLL.RegistryLanguage = "" + ${if} $mui.LangDLL.RegistryLanguage = "" !endif