Archive: MUI_HEADER_TEXT problem


MUI_HEADER_TEXT problem
I have a little problem with
MUI_HEADER_TEXT :

Function selectaction
selectactionstart:
StrCmp $R3 "g" "" +3
!insertmacro MUI_HEADER_TEXT "headertext german" "text"
goto starta
StrCmp $R3 "f" "" +3
!insertmacro MUI_HEADER_TEXT "headertext french" "text"
goto starta
!insertmacro MUI_HEADER_TEXT "headertext english" "text"

starta:
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "$R3menu01.ini"

; read out language
!insertmacro MUI_INSTALLOPTIONS_READ ${TEMP4} "$R3menu01.ini" "Field 6" "State"
StrCmp ${TEMP4} $R2 startb
call langchange
goto selectactionstart

startb:
selectactionend:
FunctionEnd


The function "langchange" changes INI entry and after this this custom page is restartet.

The problem:
as you can see i have seperated texts for each language - but in case "english" i get only the german "text" (without the "headertext").
the page itself is changed and its caption too.
When i change to german, i get the whole headertext&text - when i switch back nothing changes.

whats going wrong?

You cannot skip !insertmacro's with relative jumps.
You have to jump using labels only.

-Stu


grmpf - i knew this trouble from elsewhere in this forum - i fooled myself ;)

thx, i try it

#
it works :)
(and i cleaned up my code)