Get IP addresses of the devices in the same network - Advanced Installer Community
prerak6962
Posts: 112
Joined: Mon Dec 08, 2014 5:26 pm

Get IP addresses of the devices in the same network

In my installer, I need to have a select box with a list of IP addresses. These IP addresses are of all the devices that are connected to the same network as the user's.
In brief I want to do a network scan and get the IP addresses to populate this select box.

Is there a way I can do this? I did not find anything related to such functionality in the docs.

Thank you.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Get IP addresses of the devices in the same network

Hello,

You could obtain this behaviour using a custom action written in VBS/C++/C# which returns the IP addresses and stores them in Installer properties.
This article describes How to create fully fledged C# custom actions.

On the web there are many examples of the piece of code which returns the IPs in a network.This is one example: find all ip address in a network

Please take a look on the way you should reference intaller properties in your custom action :How to set an installer property using custom actions.

Finally, the listbox must be populated with the output properties. This article describes how could be done and also contains a sample project : Working with Windows Installer ComboBox and ListBox controls .

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”