Variables and Radio Buttons

For all your non-technical questions.
Post Reply
bcharles
Posts: 3
Joined: Mon Feb 20, 2006 12:28 pm

Variables and Radio Buttons

Post 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
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bcharles
Posts: 3
Joined: Mon Feb 20, 2006 12:28 pm

Post 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
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Hi Charles!

You are resetting the variable to an empty string, after calling the dialog.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bcharles
Posts: 3
Joined: Mon Feb 20, 2006 12:28 pm

Post by bcharles »

Silly me. It is a Monday after all. Thank you.
Post Reply