Vidéos d'aide de Screencast
Recherche de vidéos d'aide Close Back
to help

Wise Studio 7 - List box controls - disable some components from list

Created: 30 Mai 2012 | Updated: 31 Mai 2012 | 4 comments
l'image des delosrec
0 1 Vote
Login to vote
Ce problème a été résolu. Voir la solution.

Good Morning,

I am currently using Wise Studio 7: Wise Script Package Editor.  I am having trouble figuring out the following and I hope I could be assist.

 

I have a List Box Control as part of a Component menu.  There are two options on this component menu, Auto install and Search.  I would like to know how to disable one option once the end-user choose the other option.  Currently the end-user could potentially check both list boxes.  What i would like to do is if the user checks one box, to automatically uncheck the other box and disable the option.

 

Is this possible?

 

Regards,

 

Commentaires CommentairesAccéder au dernier commentaire

l'image des delosrec

this is a portion of the script with the issue

Pièce jointeTaille
WiseStudio7_Component_ListBoxControl_Settings.doc 161.5 KO
0
Login to vote
  • Actions
l'image des Evan.Border@FlexeraSoftwaredotcom

When you have two choices, only one of which can be selected, you use a radio button control.

 

-Evan  (to e-mail me, replace the "dotcom" at the end of my screen name with .com)

SOLUTION
0
Login to vote
  • Actions
l'image des EdT

Evan is right. 

Windows Installer dialogs are NOT event driven, so you cannot use an event such as a checkbox being checked to disable another checkbox. Thus if you need an either/or choice, a radio button is the most obvious choice.

For anything more complex, you can use a custom action to call a dialog written in Wisescript or any other language you prefer, which accepts user input and returns the result as one or more public properties.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

0
Login to vote
  • Actions
l'image des delosrec

Evan and EDT, thank you very much for your quick response.  The radio button was the best solution.

0
Login to vote
  • Actions