Page 1 of 1

Variables and Radio Buttons

Posted: Mon Feb 20, 2006 12:36 pm
by bcharles
I like what I see so far. Great job!

I do need some help. I have created a dialog that asks if a user will use a touchscreen monitor. There are two radio buttons - yes and no. On the object behavior tab, I put yesTouchscreen for the "Writes to variable" box and noTouchscreen for the no radio button.

I need to write to the registry based on a "yes" selection. I tried an if statement in the code, but it says the variables are not defined.

Thanks for the help.

Brian

Posted: Mon Feb 20, 2006 12:40 pm
by CandiceJones
Hi!

Just pre-define the variables in your script, before showing the dialog. Set them to TRUE or FALSE based on their desired values.

Posted: Mon Feb 20, 2006 2:43 pm
by bcharles
Thank you for your quick reply. I am now having no errors, but running the install and selecting the yes radio button does not write the registry information as expected.

The attached file shows the code for my touchscreen. It is not writing to the registry if I select the yes radio button. yesTocuhscreen is the variable where the radio button writes to. Am I correct that yesTouchscreen will be TRUE if the readio button is checked and FALSE if it is not checked?

File Attached:

InstallAware.txt

Posted: Mon Feb 20, 2006 2:58 pm
by CandiceJones
Hi Charles!

You are resetting the variable to an empty string, after calling the dialog.

Posted: Mon Feb 20, 2006 3:12 pm
by bcharles
Silly me. It is a Monday after all. Thank you.