From what I understand, available states for checkboxes in WiX are (e.g. MY_PROP = "something" and MY_PROP is undefined)
The first checkbox by default was not checked, so to turn it to checked from the msiexec command line I added MY_PROP=something, and for conditions I used MY_PROP ~= "something" and NOT MY_PROP. This seemed to work great.
Now I'm working on the opposite case (e.g. the checkbox is checked by default). In this instance, to uncheck the checkbox, I added MY_PROP_2="" to the msiexec command line, and for conditions I used MY_PROP_2 ~= "something" and NOT MY_PROP_2. This also worked.
I am curious, however, if there's a standard practice for handling command line options to check/uncheck a properties on the msiexec command line. It seems like it could be confusing for the user if I ask them to turn off a checkbox by setting MY_PROP_2="" on a msiexec command line.
Is there a better way for me to handle this in Wix?
Aucun commentaire:
Enregistrer un commentaire