Archive: value in WriteINIStr


value in WriteINIStr
I need to create a ini file like this

[SERVER]
SERVER='MYSERVER'

Ive write this lines of code

ClearErrors
ReadINIStr $0 $INSTDIR\SQL.ini SERVER SERVER
IfErrors 0 +2
WriteINIStr $INSTDIR\SQLConn.ini SERVER SERVER 'MYSERVER'

It works but the ' in value dont write
It looks like
[SERVER]
SERVER=MYSERVER

How can I put the '' in 'MYSERVER'

TIA


Sorry

the code look like this

ClearErrors
ReadINIStr $0 $INSTDIR\SQL.ini SERVER SERVER
IfErrors 0 +2
WriteINIStr $INSTDIR\SQL.ini SERVER SERVER 'MYSERVER'


Ive got the answer
WriteINIStr $INSTDIR\SQL.ini SERVER SERVER $\'MYSERVER$\'

I dont know why, but works :-D