FirewallException / Extension

Mar 11, 2016 at 9:38 PM
Hi,

I would like to use the FirewallExtension and add the firewall rules for a File added to a ManagedProject. I tried everything to no success.

Any thoughts?

Cheers,
Mar 12, 2016 at 11:09 AM
Right now your best chance is to use XML injection or XmlInclude. Both techniques are demonstrated in InjectXML sample.

Though I don't mind having direct support for this extension so can you please log a proposal (issues page) for this.

Thank you.
Mar 13, 2016 at 1:14 PM
I 've just published prereplease NuGet package containing the initial support fro FirewallException:
Install-Package WixSharp.bin -Pre
var project =
    new Project("MyProduct",
        new Dir(@"%ProgramFiles%\My Company\My Product",
            new File(@"Files\Bin\MyApp.exe",
                new FirewallException("MyApp")
                {
                    RemoteAddress = new[] { "127.0.0.1", "127.0.0.2", "127.0.0.3" }
                })));