problem opening firewall port - Advanced Installer Community
netali.golan
Posts: 9
Joined: Wed Jul 06, 2016 1:59 pm

problem opening firewall port

Hi

I defined in the installer to add a rule in Inbound firewall rules with TCP port - to open communication to the server on this port of course - and encounter the following problems:
1. firewall is On - The installer tried to add Inbound exception for tcp port 443 - working fine
2. firewall is off - The installer try to add inbound exception for tcp port (any port number) - The installer give an error: "Invalid Firewall port/protocol: TCP:[port-number]" --> why? how can i solve this?
3. firewall is on - The installer tried to add Inbound exception for tcp port with a different number than 443 (for example 8765) - The installer give an error: "Invalid Firewall port/protocol: TCP:[port-number]" --> why? how can i solve this?

can anyone help me?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem opening firewall port

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netali.golan
Posts: 9
Joined: Wed Jul 06, 2016 1:59 pm

Re: problem opening firewall port

i sent what you asked now .
i tried to create new installer with only the firewall ports and it worked fine, i don't know why when i add the same functionality to my .aip file it cause this problem.
i sent out .aip file of the real installer i created.
i really hope you will find my problem
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem opening firewall port

Hello Netali,

I've tested your scenario and replicated the behavior. Long story short, this happens because the property you use to set the "Port number" field is associated with a masked edit control using the following template for his input text:

Code: Select all

<#####>
This means, that each time you set in the masked edit control a number with less than five digits (i.e. 6666) the port property will be set to the "6666 " string which is not a valid port number. The string ends with a space character and this is why the firewal rule cannot be created.

To avoid this issue, instead of using a masked edit control you can use a regular edit box control.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netali.golan
Posts: 9
Joined: Wed Jul 06, 2016 1:59 pm

Re: problem opening firewall port

1. so why does it work on port 443 ? it is suppose to do the same problem but when the firewall is on and i put 443 in the edit box it does insert the rule to the inbound firewall list and the installer does not fail in this case.
2. and also when i try port 99999 i get the same error (with firewall off).
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem opening firewall port

Hello Netali,

1. This works only if you don't manually type the "443" value in your masked edit. Since this is the default value for your property, if you don't interact (i.e. move focus on the masked edit) with your masked edit control, then the property will maintain its default value without gaining the extra two spaces. But, if you manually re-type the 443 value in your masked edit control, then its associated combo box will be set to "443 " value and in this case the firewal exception install should fail.

2. This happens because the related value is not a valid port number. The port number should be from the following range: 0 - 65535.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
netali.golan
Posts: 9
Joined: Wed Jul 06, 2016 1:59 pm

Re: problem opening firewall port

i used a custom action to trim spaces before installation start - after defining all ports and ips in my system.
that way i can keep the masked edit control.

thank you very much for the help
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: problem opening firewall port

You're always welcome. I'm glad you worked around this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”