cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dongwang
Level 3

To enable/disable a button by another button on one scene

I have a simple dialog on which there are two buttons. what I want to do is when I click button1, the button2 will be disabled. when I click button1 again, the button2 will be enabled.

I have referenced to license agreement dialog and put two radio buttons on my dialog, if I click the radio button the button2 will do as I expected to be enabled/disabled.

I also create a CA attacted to button1 as DoAction, the CA will be a simple vbscript to evaluate "yes" or "no" to the property(isenabled), and added the disable/enable conditions on button2,so that the button2 will disabled when "isenabled='yes'" and disabled when "isenabled<>'yes'".

but it's not working.when I click button1, nothing happened on button2.

I am using Basic MSI project.

Thanks for help in advanced.
Labels (1)
0 Kudos
(1) Reply
dongwang
Level 3

maybe this question is too simple so nobody answered me. 😛
but finally I got it after some time search and try.

just set [isenabled] equal to "Yes":
[isenabled] Yes 1 (or others conditions)
0 Kudos