Change string variable value based on state of checkbox

Oct 29, 2013 at 8:16 PM
Hi Neil, thanks for the work you've done on this.

Seems this should be simple, but I can't seem to figure it out. How could I change the value of a string variable based on the state of a checkbox?
If checkbox=1

I need to pass a string to be used as part of a configuration file entry to 3 MSI's. It can have one of two values, and the string itself doesn't really make sense to the user, so a checkbox with an understandable question would be the right way to go.

Thanks in advance,

Oct 30, 2013 at 2:50 PM
Never mind.
I'd still like to know if you can think of a way to do this, but as it turns out I was over-complicating this for my immediate needs.

Instead of changing strings in the bootstrapper, I pass the value of the checkbox, then use type 51 custom actions (SetProperty) in the MSI's to change my configuration string. It means I duplicate the custom actions in 3 places, but that's okay for my current needs.
Nov 3, 2013 at 10:15 AM
The other way to do this is to use the BAFunctions to do the translation - that is one of the reasons I added them.