In the WixUI CustomizeDlg, I don't want the user to be able to continue if 
there is nothing to do.  For example, if no features are selected during 
initial install, or if no features are added or removed during a maintenance 
install.

The best way I've found to do this so far is with the following:

<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="UserDlg">
<![CDATA[
(&FeatureA > 0 AND &FeatureA <> !FeatureA) OR (&FeatureB > 0 AND &FeatureB <> 
!FeatureB) OR (&FeatureC > 0 AND &FeatureC <> !FeatureC)
]]>
</Publish>

This could get out of hand quickly as more features are added, and exceed the 
255 character limit of the condition. Surely there is a better way.

I thought of using the ADDLOCAL and REMOVE properties, but they are not updated 
as selections are changed on the dialog.  There's the SelectionNoItems event, 
but it only handles the case where there are no items in the selection box, 
which is pretty much never.

Ideas?

Thanks,

Matt Johnson MCPD, MCTS, MCSD, MCDBA
Director of Application Development
Time America, Inc.
ma...@timeamerica.com | www.timeamerica.com



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to