WiX v4 - A couple of FirewallException questions #8925
Unanswered
george7378
asked this question in
Questions
Replies: 2 comments
-
Regarding |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do you get the same result under WiX v5.0.2? From the Git Blame these items were only added in WiX v5.0.0 rc1. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone - I'm using FirewallException in WiX v4 to add a rule for my app, like this:
<firewall:FirewallException Name="My rule name" Description="My rule description" Program="path\to\my\app.exe" Protocol="udp" Action="allow" Enabled="yes" IgnoreFailure="yes" Scope="any" />
Using this namespace:
xmlns:firewall="http://wixtoolset.org/schemas/v4/wxs/firewall"
and this package:<PackageReference Include="WixToolset.Firewall.wixext" Version="4.0.0" />
The FirewallException is within an existing component and has no child elements.
If I remove Action and Enabled attributes, it compiles OK. When I navigate to the XSD (F12 in visual studio) they are there, so it's weird that the compiler rejects them.
Outbound="yes"
and run the installer, no rules are created and when I check the log, I see this:ExecFirewallExceptions: Error 0x80070057: failed to add app to the authorized apps list
This happens whether I explicitly run as admin, or not. Is there any reason why it would fail? When I create the equivalent rule for the same .exe path using cmd it works fine.
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions