-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect FirewallException.IcmpTypesAndCodes property type #1606
Comments
Oh, sorry, it was my misunderstanding. I interpreted your description "It is caused by the WIX XML that WixSharp generates containing an inapplicable attribute:" a fact that WixSharp calculates and inserts this attribute by itself. I was wrong. I checked the solution and this WiX4 attribute is directly mapped to the Though, there is a mistake in the default value encoded in WixSharp. Instead of being declared as a string, it is declared as a bool. That's why the default attribute value is Fixed. Will be available in the very next release (or sooner as a pre-release). |
Issue #1606: Incorrect FirewallException.IcmpTypesAndCodes property type
Done. Update your package from and you will have it fixed |
Excellent - thank you @oleg-shilo! I really appreciate the quick action. |
Discussed in #1603
Originally posted by dbieber-rfideas August 8, 2024
Hello,
Thanks for the work on WixSharp. It's a great project.
I'm having trouble figuring out how to add an in/out firewall rule. I have successfully added firewall rules, but it only creates an inbound rule. I need to be able to configure both inbound and outbound type rules. Is that possible with WixSharp? It is supported by Wix4 itself, according to their Schema documentation:
FirewallException
Outbound (wxs:YesNoTypeUnion) : If "yes", registers an outbound firewall rule. The default is "no".
. . .
Is there a way to define the rule as inbound/outbound, or just both?
The issue is caused by the WIX XML that WixSharp generates containing an inapplicable attribute:
The IcmpTypesAndCodes="no" attribute causes the installer to fail to install the rule. If I remove that attribute, the rule works. If I add it back (with both "no" and "yes" values), it fails. I think this is because that property only applies to rules that are using the ICMPv4 protocol. Since this rule is TCP, it doesn't make sense (if you look at the windows firewall advanced GUI, you will see that this setting is grayed out unless ICMPv4 protocol is selected).
Is it possible for WixSharp to conditionally insert this attribute only when the ICMPv4 protocol is selected (or just omit the attribute since WixSharp doesn't seem to support ICMPv4 protocol)?ICMPv4 protocol is selected
The text was updated successfully, but these errors were encountered: