Check MySQL Port not working properly - Advanced Installer Community
ahmed.gad_it
Posts: 21
Joined: Fri Jun 08, 2018 12:07 pm

Check MySQL Port not working properly

Hi,

When i used "Check Free Port" custom action to check for port, it returned that the port MySQL used is always Free even if MySQL running on it.
That occurs only with ports used by MySQL Service.

Thanks!
ahmed.gad_it
Posts: 21
Joined: Fri Jun 08, 2018 12:07 pm

Re: Check MySQL Port not working properly

Please urgent reply!

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check MySQL Port not working properly

Hi,

Sorry for the late reply.

I tested the scenario and it worked as expected for me. If MySQL service runs on my machine using a port (e.g. 3306) and I use the "Check TCP port" custom action to test that port, I always get the result that the port is in use.

Are you sure you configured the custom action correctly? Can you please send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ahmed.gad_it
Posts: 21
Joined: Fri Jun 08, 2018 12:07 pm

Re: Check MySQL Port not working properly

Hi Eusebiu,

Thanks for your reply

But when i used your sample project "getfreetcpport", it always return that the port is Free.

Please attach your latest sample project with the new configuration.

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check MySQL Port not working properly

Hi,

The project from the "How to get a free TCP port by using a custom action" tutorial searches for a free port starting from a given one. For example, if you specify port 80, but that port is used, it will return the first free port after that one (e.g. port 81, if it is free).

If you want to find if a specific port is free, you can use the "Check TCP Port" predefined custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Check MySQL Port not working properly

Hi,

I attached a sample project that checks if a TCP port is free or not.

Best regards,
Eusebiu
Attachments
Check Free TCP Port.aip
(18.69 KiB) Downloaded 424 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”