install - How to resolve ICE03: String overflow in WiX? -
in installer feature tree control in maintenance dialog publishes 2 events sets property named disableinstallbtn
0 or 1, respectively. , disableinstallbtn
used condition of enable/disable action of install
button. behaves this: if features 'deselected' install
button becomes disabled.
so, each event(publish element) has condition published. example, event sets disableinstallbtn
1 has condition this: <![cdata[(!feature1=2 or &feature1=2) , ... , (!featuren=2 or &featuren=2)]]>
(if don't understand syntax of condition can check http://wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/expression-syntax)
the problem condition string long string overflow warning when compile .wxs file. there way resolve problem? thanks.
wix's built-in customizedlg
(located under src\ext\uiextension\wixlib if have source code) has functionality you're looking in next button. subscribe selectionnoitems
event.
<control id="install" type="pushbutton"> <subscribe event="selectionnoitems" attribute="enabled" /> </control>
the selectiontree
control has lot of events associated it. can view them here.
edit
it seems i've misunderstood documentation. selectionnoitems
fires when selection tree has no nodes, not when current selection has no nodes.
starting windows installer 3.0, selection tree publishes doaction
event, fires when there's change in selection tree.
you can check feature selection in custom action , set control.attributes
column of next button. can see here list of attributes , values (enabled equal 2).
otherwise, can validation on clicking next.