View Single Post
Old 6th September 2020, 21:16   #10
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
PHP Code:
Page custom CreatePage PageLeave
...

var 
ipaddrhwnd
var ipaddr

Function CreatePage
...
${
NSD_CreateIPaddress70u 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 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote