Skip to content
⌘ NSIS Forum Archive

Can not read the value of input ipaddress

2 posts

sandis#

Can not read the value of input ipaddress

Hi,

I'm completely new to this and have totally stuck.
I use the $ {} NSD_CreateIPaddress but I can not read out the newly entered IP address. I've figured out how I add a default address, but the user may change the ip address. Grateful for any help.

My example:

outfile 'nsdialogs_createIPaddress.exe'

!include 'nsdialogs.nsh'
!include 'nsdialogs_createIPaddress.nsh'
Var IPNR

Page Custom CustomPre

Function CustomPre
nsDialogs::Create 1018
Pop $R0

${If} $R0 == error
Abort
${EndIf}

${NSD_CreateIPaddress} 5% 90% 30% 12u ""
Pop $R0
${NSD_SetText} $R0 "127.0.0.1"
Pop $R0
nsDialogs::Show
${NSD_GetText} $R0 $R1
FunctionEnd
Section
SectionEnd
jpderuiter#
Not sure what this has to do with translations, but see: