Archive: Using LangString with InstallOption page


Using LangString with InstallOption page
Hi,

I'm trying to understand how to alter the langage of the Label of my Custom Page. What I don't understand is that LangString require you to specifty what to change... ie:

LangString TEXT_IO_TITLE ${LANG_ENGLISH} "Local administrator password"

We know that it will change the Title displayed in the page.

But how to change label ?! I know it need to writeIniStr, but I dont know how... like that :

LangString Label1 ${LANG_ENGLISH} "Eng.stuff"
WriteINIStr "$PLUGINSDIR\Questions.ini" "Field 1" "Text" ???

Also, I don't understand where to put that, on the .onInit ? How to tell wich Fucntion will be before the other... i'm lost with that !! Sometime, I use part of exemple code in the script and it doesnt work until I put the stuff at the beginning of the file, and sometime it broke something else :|


Re: Using LangString with InstallOption page

Originally posted by goldstarqc
But how to change label ?! I know it need to writeIniStr, but I dont know how... like that :

LangString Label1 ${LANG_ENGLISH} "Eng.stuff"
WriteINIStr "$PLUGINSDIR\Questions.ini" "Field 1" "Text" ???
WriteINIStr "$PLUGINSDIR\Questions.ini" "Field 1" "Text" "$(Label1)"
Also, I don't understand where to put that, on the .onInit ?
anytime before the io-page gets displayed, but make sure the io.ini (Questions.ini in your case) was extracted first. i usually do that in the onInit function.