slavkovsky7
Posts: 4
Joined: Mon May 06, 2013 4:08 pm

Ping IP address

Hello there,
I was wondering how to make dialog with ip address connection test.
I tried to use CheckTcpConnection but it always return used or free port.

I would like to test address in this format

XXX.XX.X.XX:port/ready

Is it possile ping the address or make http request.
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Ping IP address

Hello,

Unfortunately, we don't have predefined support for a http request or to ping an address.

If you want to ping an ip address connection you need to do your own custom action. You can use a custom action written in C# or a custom action written in C++.

You have to add an input field like an Edit Box and set it's “Property Name” to an appropriate name, let's say: “IP_ADDRESS”. You will use this Property Name in your code because this Property holds the address that you want to ping.

Call your custom action when the “Next” button is clicked. To do that , the “Next” button must publish an "Execute custom action" control event with your custom action name being the argument. Also to prevent the user to go on the next dialog in the chain please create a spawn dialog. To display the message, create a new spawn dialog and publish a "Display a specific child dialog" control event.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”