Bug: StrCmp + MUI_LANGDLL_DISPLAY
Hello,
I´ve a problem with the following code in onInit:
---------------
StrCmp $IsUpdate False +1 +2
!insertmacro MUI_LANGDLL_DISPLAY
---------------
I want to show the language dialog if the installation is not an update. But it doesn´t matter which value $IsUpdate has.
If the variabel $IsUpdate is true or false the code "!insertmacro MUI_LANGDLL_DISPLAY" will be executed every time.
The next code works, but it is not really correct because the last line will be skipped if there is any code:
---------------
StrCmp $IsUpdate False +1 +3
!insertmacro MUI_LANGDLL_DISPLAY
---------------
This works to correctly without any problems:
---------------
StrCmp $IsUpdate False ShowLanguageDialog DontShowLanguageDialog
ShowLanguageDialog:
!insertmacro MUI_LANGDLL_DISPLAY
DontShowLanguageDialog:
---------------
Is the first version a bug?
Best regards
Rainer