installshield - Retrieving the value of checkbox of DIalog in Installscript -


how fetch value of checkbox in installscript in installshield?

background : have checkbox has property "ualcstatus" , value "on" .in dialogs section . when fetch value in installscript using following command, fetches 0 or nothing (whether checked or unchecked)

msigetproperty(hmsi, "ualcstatus", szstrvalue, nval);  

do have set custom action when check checkbox can set value of "ualcstatus" property in order gets set "on" .

properties tied check boxes in windows installer ui set values evaluate true or false. while can tweak exact value used true/checked in checkbox table, simpler approach call msievaluatecondition condition string of name of property, , compare msicondition_true (1):

if msievaluatecondition(hmsi, "ualcstatus") = msicondition_true     : : : endif; 

alternately such simple condition, can property described , compare empty string. if it's empty, check box. if it's set else, check box checked.

as side note, project using installscript-based ui, instead of checking properties, you'd calling ctrlgetstate determine if check box checked. typically exposed through byref parameter function displays dialog box.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -