Archive: Move property value into text box using NSIS script


Move property value into text box using NSIS script
I have created nsi file for my java project.I have created a Textbox and gave as default value.Running the exe file it displays textbox with default value.If the user wants to modify the value in text box that should be Written in property file.I have tried following lines code

InstallOptions::dialog "$PLUGINSDIR\sample.ini"
ReadINIStr $0 "$PLUGINSDIR\sample.ini" "Field 1" State
${ConfigWrite} "$INSTDIR\resource\conf.properties" "AGENT.HOST=" "$0" $R0


but the changed value not yet written in property file.The property file contains always default value only. I dont know why the changes not refected?

Thanks,


You probably have to read the value in the page's leave function. But a better idea would be to switch to nsDialogs instead of using IO.