Pre-processor loop
<?portRangeList="1,2,3,4,5,6,7,8,9........"?>
<?foreach dynaPortAwesomeness in $(var.portRangeList)?>
<fire:FirewallException Id="MyFirewallException" Name="!(loc.CASFirewallExceptionDescription)" Port="$(var.dynaPortAwesomeness)" Protocol="tcp" Scope="any" IgnoreFailure="yes" Profile="all" />
<?endforeach?>
Still kind of ugly but saves a LOT of XML
-----Original Message-----
From: Rob Mensching [mailto:***@firegiant.com]
Sent: July-10-14 3:14 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] How do I create a FirewallException for a port range?
Probably not but it would be awesome if someone helped add that support.
_______________________________________________________________
FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/
-----Original Message-----
From: Phill Hogland [mailto:***@rimage.com]
Sent: Thursday, July 10, 2014 9:47 AM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] How do I create a FirewallException for a port range?
I believe, and someone can correct me if wrong, that generally the WixFirewallExtension supports the parameters which were available to the Windows Firewall (XP era) which also works with the Windows Advanced Firewall. But the extension does not provide a way to specify some of the parameters of the Windows Advanced Firewall, like Group Name and port ranges.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-do-I-create-a-FirewallException-for-a-port-range-tp7595749p7595754.html
Sent from the wix-users mailing list archive at Nabble.com.