wixsharp
wixsharp copied to clipboard
Error on adding FirewallException
Wix Version : 4.0.5 WixSharp.Core : 2.3.2 WixSharp.Msi.Core : 2.3.2
Trying to add firewall exceptions to the program I get an error when building Wix
project.Add(new FirewallException("MyProgramException") //program firewall exception
{
Program = "[INSTALLDIR]" + "program.exe",
Scope = FirewallExceptionScope.any,
Profile = FirewallExceptionProfile.all,
Protocol = FirewallExceptionProtocol.tcp
});
Got error: error WIX0004: The FirewallException element contains an unexpected attribute 'Enabled'.
In generated wxs file:
<Component Id="MyProgramException" Guid="88112f86-8200-490c-8a81-0cc1acec3d45" KeyPath="yes" Bitness="always64">
<FirewallException Id="MyProgramException" Name="MyProgramException" Profile="all" Program="[INSTALLDIR]program.exe" Protocol="tcp" Scope="any" Enabled="no" Outbound="no" xmlns="http://wixtoolset.org/schemas/v4/wxs/firewall" />
<CreateFolder />
<RemoveFolder Id="INSTALLDIR" On="uninstall" />
</Component>