PDA

View Full Version : IP address drop down in installer page


sr164w
22nd December 2011, 03:43
HI,

First,I am using nsDialogs dropdown menu to display all IP addresses which are connected to my system.

Next, When user selects one IP I have to populate that IP in the next line in hyperlink.

Below is the code to do in Java

Enumeration<NetworkInterface> networkInterfaceEnum = NetworkInterface.getNetworkInterfaces();
// Initialize the server IP list which contains the all IP addresses connected to my system
serverIPList = new ArrayList<String>() ;

for (; networkInterfaceEnum.hasMoreElements();)
{
NetworkInterface networkInterface = networkInterfaceEnum.nextElement();
Enumeration<InetAddress> inetEnum = networkInterface.getInetAddresses();
for (; inetEnum.hasMoreElements();)
{
InetAddress addr = inetEnum.nextElement();
serverIPList.add(addr.getHostAddress());


Any suggestions to achieve above in the Installer .nsi file??

jpderuiter
23rd December 2011, 11:04
http://nsis.sourceforge.net/IpConfig_plugin