Archive: How save user's input to .ini file


How save user's input to .ini file
Hi All,

I create two input text using installoptions (setup.ini) and want save the input from user into my test.ini file.
Using
!insertmacro INSTALLOPTIONS_READ $R0 "setup.ini" "Field 2" "State"
!insertmacro INSTALLOPTIONS_READ $R1 "setup.ini" "Field 4" "State"
I can get the values from user.
But
!insertmacro INSTALLOPTIONS_WRITE $R0 "test.ini" "Net" "ui_server"
!insertmacro INSTALLOPTIONS_WRITE $R1 "test.ini" "Net" "ui_port"
Cannot save the vlaues.
Could anyone help me? Waiting


!insertmacro INSTALLOPTIONS_WRITE "test.ini" "Net" "ui_server" $R0