In this case, I want to install the application and add a firewall exception during installation, but if this fails, the installation should not roll back, but display a notification for the user / administrator performing the installation.
I use WIX to build the installer. So far, I have used the following snippet to set a firewall exception:
<Component Id="fwException" DiskId="1" Guid="guid"> <fw:FirewallException Name="new firewall exception" Id="FirewallException" Port="1234" Protocol="tcp" Scope="any" IgnoreFailure="yes" > </fw:FirewallException> </Component>
Everything is fine and not rollback, but how to make the installer display a notification at the end of the installation or a dialog box informing the user that a firewall exception has not been added.
As a silent refusal to add an exception to the firewall, it can be misleading to troubleshoot problems.
I'm thinking about using? fwException = INSTALLSTATE_ABSENT in some state, but I donβt know where to use it to get the desired effect.
Any hints / tips that are very much appreciated.
Kevin source share