k_hejwosz
21st September 2003 15:48 UTC
Dynamically update the language string
I have defined the following variable in the language file:
!insertmacro MUI_LANGUAGEFILE_STRING MUI_TEXT_FINISH_SHOWREADME "$ShowReadMeTxt"
Installer changes the value of the variable at run-time (depending on user input), however, the variable value in the language file does not get updated.
Is there a way , except for .on functions (e.g. .onInit), to dynamically update the old value of the variable in the language file with the new value.
kichik
21st September 2003 15:54 UTC
That macro is not the way to change the value of MUI strings. You need to define MUI_TEXT_FINISH_SHOWREADME before you include the language file. See the MUI readme for more information.
You must set $ShowReadMeText before the finish page is set/shown, .onInit/.onGUIInit should do it, but if it's the finish page string, something in the section can do it too.
k_hejwosz
21st September 2003 16:08 UTC
Thank you VERY much kichik!!!
I admire your promptness!!!
NSIS is a sensational piece of software!!! It keeps amazing me all the time!!!