Let's say I have a feature MyFeature, and a CustomizeDlg where the user can
select whether or not MyFeature will be installed. Depending on what the
user selects I want the Next button to link to a different dialog. So I have

<Dialog Id="CustomizeDlg" ...>
            <Control Id="Next" Type="PushButton" ...>
               ...
               <Publish Event="NewDialog"
Value="SecondDlg"><![CDATA[(&MyFeature<>3)]]></Publish>
               <Publish Event="NewDialog"
Value="FirstDlg"><![CDATA[(&MyFeature=3)]]></Publish>
               <Subscribe Event="SelectionNoItems" Attribute="Enabled" />
            </Control>
</Dialog>

Here if the user selects MyFeature to be installed, the next dialog is
FirstDlg, and if not, the next dialog is SecondDlg. However if the user
wants to Modify, the next dialog becomes SecondDlg no matter if MyFeature is
selected.

I've tried using various combinations of &MyFeature and !MyFeature and they
don't work. For example if I do FirstDlg - &MyFeature=3 OR !MyFeature=3, and
SecondDlg - &MyFeature<>3 AND !MyFeature<>3, the next dialog becomes
FirstDlg no matter what.

Can anybody suggest what conditions I should use to identify whether or not
a feature has been selected, on both the first installation and on Modify?
Thanks. 
-- 
View this message in context: 
http://www.nabble.com/Feature-selection-conditions-don%27t-work-on-reinstall-tf4679773.html#a13371726
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to