Why does your Feature Tree have every Feature selectable as disabled? Surely there's some core components of your application you'd want to always be installed if the user is running your installer?
It's kind of pointless to try & handle a case where the user doesn't select anything for install. Why would they be running the installer in the first place if that was their intention? Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Matt Johnson [mailto:ma...@timeamerica.com] Sent: 22 June 2010 20:14 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] WixUI CustomizeDlg 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 ------------------------------------------------------------------------------ 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