wix - Show message when condition within Feature fails -


when add condition within feature assure iis installed, working expected (it searches installed iis, when feature selected. no check, when feature not selected):

<feature id="feat.webapplication"      title="web application"      level="1"      configurabledirectory="dir.webapp">     <condition level="0">        <![cdata[installed or (iismajorversion , iismajorversion >= "#7")]]>    </condition>     <!-- ... -->  </feature> 

but - documented in condition element - not allowed have message within condition. installation silently fails, whereas shows message when condition placed directly in product node.

how can show message conditions within features?

as understand condition node, after reading level attribute of feature element,

sets install level of feature. value of 0 disable feature. processing condition table can modify level value (this set via condition child element). default value "1".

by using condition within feature ability disable or enable features depending on own value level, because can override if condition matches value of level attribute of condition.

so best add text precondition feature description.


Comments