PHP Code:
Page custom CreatePage PageLeave
...
var ipaddrhwnd
var ipaddr
Function CreatePage
...
${NSD_CreateIPaddress} 70u 0u 80u 12u ""
Pop $ipaddrhwnd
nsDialogs::Show
FunctionEnd
Function PageLeave
${NSD_GetText} $ipaddrhwnd $ipaddr
MessageBox mb_ok $ipaddr
FunctionEnd
Section
SetOutPath $InstDir
WriteIniStr "$InstDir\config.ini" Server IP $ipaddr
SectionEnd