Client connection to the Server - Advanced Installer Community
narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

Client connection to the Server

Hi all,

Hope I get some help on this issue as I am very close to complete the comiling both server and client application.

We have client-server application.

Server gets installed first and then during the client installation, it prompts the user to enter IP address/machine name(where the server application is located) and the Port number(which is being used by the borland socket server to connect client to the server). These details get collected and inserted into the client.ini file. I have complied both client and server and they are working correctly but during the client installation the setup does not validate IP address and port number. I need to validate these details before going to the next step. The user should get an error message if the server is not located on the given IP(machine) or the port used by this application (configured during the server installation) is not which has been entered. Appreciate any help on this.

Thanks in Advance!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Client connection to the Server

Hello,

In order to achieve that you can implement your own custom action which verify if on the related address is the one where the server is hosted. For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action without sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

You will further add this custom action as a Published Events on the Next >> button in the same dialog where the user needs to enter the related information (during the client installation). Please take a look on the Execute custom action on button push article which may be useful to you.

If the entered data by the user is correct, then you can proceed further with the installation, otherwise you can use a spawn dialog and the user will have to enter again the related information. You can use the Make sure an edit box is not empty article as a starting point for this.

If you have other questions, please let us know.

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

Return to “Common Problems”