checking availability of port numbers in the installer - Advanced Installer Community
netali.golan
Posts: 9
Joined: Wed Jul 06, 2016 1:59 pm

checking availability of port numbers in the installer

Hi
I need to check the Availability for port numbers (multiple ports in one dialog) in the installation process , and if a port is invalid (already use it) i need to let the user know and to choose new number .
is it possible to do so using the Advanced installer (Enterprise)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: checking availability of port numbers in the installer

Hi,

In order to achieve this you can follow the steps below:
- add more "Edit box" controls on your dialog where the user can enter the port numbers
- add a "Static Text" control next to each edit box where the result will be written
- in the "Properties" pane of the static text controls edit the "Display -> Text" field and write a property that will contain the result related to that port (i.e. RESULT_1)
- on the "Next" button of that dialog add three published events for each "box-text" pair as follows:
  • 1.Set installer property:
    Property: AI_BIND_TCP_PORT
    Argument: [EDIT_BOX_1]

    2. Execute custom action:
    Argument: GetTCPPort

    3 Set installer property:
    Property: RESULT_1
    Argument: [AI_PORT_TEST_RES]
In the described case, a port inserted by the user will be evaluated and the result will be displayed for it, then the next port will be evaluated and so on.

Let me know if this helped, otherwise give me more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”