Variables and Radio Buttons

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

Variables and Radio Buttons

Postby bcharles » Mon Feb 20, 2006 12:36 pm

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:

Postby CandiceJones » Mon Feb 20, 2006 12:40 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

bcharles
Posts: 3
Joined: Mon Feb 20, 2006 12:28 pm

Postby bcharles » Mon Feb 20, 2006 2:43 pm

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:

Postby CandiceJones » Mon Feb 20, 2006 2:58 pm

Hi Charles!

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

bcharles
Posts: 3
Joined: Mon Feb 20, 2006 12:28 pm

Postby bcharles » Mon Feb 20, 2006 3:12 pm

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


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 52 guests