Wise Studio 7 - List box controls - disable some components from list
Created: 30 Mai 2012 | Updated: 31 Mai 2012 | 4 comments
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,
Discussion Filed Under:
Commentaires Commentaires • Accéder au dernier commentaire
this is a portion of the script with the issue
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)
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.
Evan and EDT, thank you very much for your quick response. The radio button was the best solution.
aimez-vous répondre ?
Connectez-vous ou inscrivez-vous pour publier votre commentaire.