GithubHelp home page GithubHelp logo

Comments (6)

dorssel avatar dorssel commented on July 20, 2024 1

Ah, I see, so it can be either, including text. Yes, then formatted makes sense.
(Do note that the "Integer" in the Direction field should still probably be <null>, though).

Thanks for clarifying and fixing!

from issues.

dorssel avatar dorssel commented on July 20, 2024

Edited: I originally thought it was about the Description property, but it turns out it is the Profile column that produces the error.

from issues.

dorssel avatar dorssel commented on July 20, 2024

Investigated:

It's the _Validation table that is wrong.

Currently it lists:

Wix5FirewallException	Profile	Y	1	2147483647			Formatted		Profile (1=domain; 2=private; 4=public; 2147483647=all).

It should not be Category=Formatted, but Category=null (see https://learn.microsoft.com/en-us/windows/win32/msi/-validation-table)

There is another definition wrong:

Wix5FirewallException	Direction	N	1	2			Integer		Direction (1=in; 2=out)

That does not give an error, but Category is never "Integer", it should be null instead.

from issues.

barnson avatar barnson commented on July 20, 2024

It's a formatted (string) field (to support setting the profile at install time) but was limited to four characters.

from issues.

dorssel avatar dorssel commented on July 20, 2024

@barnson
If I'm not mistaken, the field in the Wix5FirewallException table is actually an integer (flags). And ICE03 validates it according to the _Validation table. In WiX it is a text, but it gets translated to integer flags. I still think the _Validation table is wrong. Maybe there was also something wrong with the WiX text field. I don't know, since I only used "all". But in the final Wix5FirewallException table it is definitely a number...

from issues.

barnson avatar barnson commented on July 20, 2024

It's formatted so you can author Profile="[PROFILE]" and have the type of profile specified at install time via the PROFILE property. If you use one the enum values, it'll get a number (but still be a string field): https://github.com/wixtoolset/wix/blob/develop/src/ext/Firewall/wixext/FirewallConstants.cs

from issues.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.