Widows Firewall exceptions removed when upgrading - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Widows Firewall exceptions removed when upgrading

Hi,

We have AI configured to add a few application/service exceptions to the Windows Firewall.

When the user installs a newer version of our software AI intermittently removes the firewall exceptions and does not install them again.
Running the installer again and choosing the "repair" option fixes the problem.

We were previously seeing a problem with installing files as well. The solution was to mark the files as "Ensure that this file overwrites any installed target file".
This option is not available for firewall rules.

The firewall exception is for a service so Windows silently blocks rather than asking the user if they wish to add an exception.
This prevents communication with our network based hardware product.
As a result we are getting a significant number of trouble tickets and support calls.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Widows Firewall exceptions removed when upgrading

Hi Nick,

I cannot reproduce this behavior on my test machine. Can you please send us the two AIPs (for the target and upgraded packages) which show this behavior to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Re: Widows Firewall exceptions removed when upgrading

cosmin wrote:Hi Nick,

I cannot reproduce this behavior on my test machine. Can you please send us the two AIPs (for the target and upgraded packages) which show this behavior to support at advancedinstaller dot com so we can investigate them?

Regards,
Cosmin
Hi Cosmin,

The problem is intermittent - we cannot reliably reproduce the problem either.
We saw the problem in-house on one QA machine yesterday but could not reproduce it again.
Customers however are seeing the problem and it is causing support problems.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Widows Firewall exceptions removed when upgrading

Hi Nick,

If you manage to reproduce this behavior please send us a test case (we cannot investigate this problem if we cannot see what happens).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jafa
Posts: 51
Joined: Fri Feb 23, 2007 7:13 pm

Re: Widows Firewall exceptions removed when upgrading

cosmin wrote:Hi Nick,

If you manage to reproduce this behavior please send us a test case (we cannot investigate this problem if we cannot see what happens).

Regards,
Cosmin
It will randomly reproduce for us and it will randomly reproduce for our customers.
No changes to the AIP file between each revision other than the version number + product code (which AI bumps automatically).

If we run the installer again (repair) or if we upgrade again (bump the version number) it will magically work.

This doesn't help however... we still get trouble tickets and support calls each day from our customers.

AIP file sent via email.

Nick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Widows Firewall exceptions removed when upgrading

Hi Nick,

I tested the project you sent with dummy source files and I cannot reproduce the behavior you encountered.

I noticed that some of the firewall exceptions use the result of a search as a condition. Perhaps in some cases the searches are successful and in other cases they are not.
If the problem is not caused by the firewall exceptions which use the searches, please send us two packages which show this problem (the target and the upgraded package) so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Marcel
Posts: 7
Joined: Mon Feb 08, 2010 12:40 pm

Re: Widows Firewall exceptions removed when upgrading

I have exactly the same problem when upgrading my installation.
- I install the original msi (firewall exceptions are added).
- I install the newer version. It detects the currently installed product, performs the installation (even removes and adds IIS virtual directories).
In de install log i can see the 2 firewall exceptions being removed but never added again (no conditions on them).

Marcel
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Widows Firewall exceptions removed when upgrading

Hi Marcel,

The firewal exceptions are installed, as you can see in the log, sent to us by e-mail, at line 1052.

Code: Select all

MSI (s) (D0:C4) [16:04:00:150]: Doing action: AI_FwInstall
What happens is this, in the Upgrades page you have set the package to install the new version first and then uninstall the old version. Therefore the new package is installing the firewall settings but in the end they are removed by the old one.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”