Archive: ValidateText IO.ini


ValidateText IO.ini
Hello

I need to show the messagebos text for the ValidateText when a input fails in the language selected in my installer.
How can i do that?


LangString Message ${LANG_ENGLISH} "English message"
LangString Message ${LANG_SPANISH} "Spanish message"

on top of custom page show function,
WriteINIStr '$PLUGINSDIR\custom.ini' 'Field n' 'ValidateText' '$(Message)'

RW like other member of this forum says "your are my F1"

Thanks a lot


Sorry RW but it doesnt work

First of all, if im not write somenthing in the ValidateText propertie of the text in my ini, this "entry_name" not exist

ini file
----------------------
[Field 2]
Type=Text
MaxLen=10
MinLen=1
State=SGSERVER
Left=69
Right=192
Top=24
Bottom=36
----------------------

the same but when i write somenthing looks like this
----------------------
[Field 2]
Type=Text
MaxLen=10
MinLen=1
State=SGSERVER
Left=69
Right=192
Top=24
Bottom=36
ValidateText=Nothing
----------------------


Otherwise the WriteINIStr instruction you say to me works on ini file does not exists on destiny?? becasue de IO ini files are only on my computer, by the way how if i use
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioD.ini" "Field #" "State" "Value" ???


Surely you have missed something :)
See on the attached example, how it works


May be
But I do this

!insertmacro MUI_INSTALLOPTIONS_WRITE 'ioServerName.ini' 'Field 1' 'ValidateText' '$(VALID_Message)'

And works fine to me
Bye