Firewall Rule - Condition - Advanced Installer Community
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Firewall Rule - Condition

Hello forum,

I have a merge module project written in both AI 11.1 and AI 11.3 and I'm seeing a strange behavior. The merge module is including a program rule only if a component is being installed locally ($componentname = 3). It works within AI 11.1. Within AI 11.3 the condition seems to evalueate always to FALSE, since the rule is not installed. If I change the condition to "1" then it is installed. Here is the rule and its condition:
Firewall Rule
Firewall Rule
Contition.jpg (29.88 KiB) Viewed 5408 times
Here is the Component definition (it will be always installed locally!):
Component for the condition
Component for the condition
Component.jpg (14.18 KiB) Viewed 5408 times
For clarification:
I added this rule because I thought that the rule would be kept in the firewall after uninstall. Now I see that, without the condition, the rule is still removed on uninstall ... short words.... I don't need the rule (so I have no actual problem). The problem is that the rule should evaluate to TRUE and, indifferently of the result, the behavior of both project is different and this can be a sign for something going wrong inside. I can provide you with both project files for your investigation if you need them.

It would be great if you could check this. Thanks in advance,

Reagards
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Firewall Rule - Condition

Hello Keneth,

Please keep in mind this happens because you haven't referenced your EXE component with the merge module GUID in the "Condition" field of your firewall exception. Also, I've tested the scenario with both version (11.1 and 11.3) of Advanced Installer and the behavior was consistent.

In order to achieve what you want you should proceed like this:
- open you MSM project, go to "Module Details" page and copy the entire GUID displayed in the "Module GUID" field
- go to "Windows Firewall" page and edit the condition field of your program rule like this:

Code: Select all

$componentname.GUID = 3
- rebuild and test your projects

You can also check the MSM component full name in the "Table Editor" page of your MSM project. Just check the "Component" column of the "Component" table.

If you have any question let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Firewall Rule - Condition

Hello Daniel,

thanks for the quick response. OK, I will check using the GUID. I want to point out that I have used the Wizard to construct the condition, so maybe you consider to automatically include the GUID when using the condition wizard within a merge module.

Regards,
Kenneth
McKool
Posts: 113
Joined: Wed Jan 19, 2011 12:35 pm
Location: Darmstadt, Germany
Contact: Website

Re: Firewall Rule - Condition

Hello,

OK, I can confirm, using the GUID the condition works. Thanks.

Regards,
Keneth
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Firewall Rule - Condition

You're always welcome Keneth.

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

Return to “Common Problems”