Archive: Write INIstring 0=... 1=...


Write INIstring 0=... 1=...
Hey ive posted this before but i didnt work out,
Ill explain my problem (also see the sample.jpg)

My installer reads an ini file (custompage, ioD.ini)
And it writes the varable down in another ini file.

It writes it down as a 0= and 1= because it is a checkbox.
I want that i dont write

'o=' but 'hello' and
'1=' is 'bye'

How can i do this? I hope somebody can help me.

ReadINIStr $9 "$PLUGINSDIR\ioD.ini" "Field 5" "State" ;Toolbar

WriteINIStr "$INSTDIR\iml-run.ini" "Toolbar" "$9" ""


Sebas

maybe the ReplaceInFile macro works better for you?


Nope
M sorry but this isnt what im looking for,

J. Verburg gave me this code

StrCmp $INIVALUE "0" 0 +2
WriteRegStr HKLM "bla" "bla" "some text for 0"

StrCmp $INIVALUE "1" 0 +2
WriteRegStr HKLM "bla" "bla" "some text for 1"


But i dont how to use it, i hope some body can tell me

Sebas

i must admit i'm not sure what you really want :)


Expl
I have some checkboxes on a custom page. (ioD.ini)

When a checkbox is selected it gives a number '0=' notchecked and '1=' is checked.

I want that the checkbox dont send a zero or one but text,
for example: (not 0= but) 'notchecked'
and (not 1= but) 'checked'

I dont know how to do this, and im hoping somebody does :p

Sebas


The code I gave writes a certain text depending on a state.