Hi Sampat,

WIX does not give you the functionality to disable the next button by default 
if no feature is selected. But there are events conditions you can set to 
disable the button.
This is what I do and works good for me:

--Publish a property on the CustomizeDialog page:

<Publish Property="DisableButton" Value = "1" Order="0">
            <![CDATA[<condition for when to disable]]>
          </Publish>
          <Publish Property="DisableButton" Value = "0" Order="1">
            <![CDATA[<condition for when to enable]]>
          </Publish>


--Put this condition in the "Next" button control:

<Control Id="Next" Type="PushButton" X="248" Y="243" Width="56" Height="17" 
Default="yes" Text="!(loc.WixUINext)">
          <Subscribe Event="SelectionNoItems" Attribute="Enabled" />
          <Condition Action="disable">
            <![CDATA[DisableButton = "1"]]>
          </Condition>
          <Condition Action="enable">
            <![CDATA[DisableButton <> "1"]]>
          </Condition>



Best Regards,
Pavan KONDURU



-----Original Message-----
From: ssmsam [mailto:ssmcs...@gmail.com]
Sent: Friday, May 29, 2015 12:01 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] WixUI_FeatureTree : What if all deselected?

Hi Forum,

We are using WixUI_FeatureTree UI for our installer.

1. When i deselect 1 feature :  Its respective Costing, Install Path and etc UI 
Controls gets Disabled immediately.

2. When we deselect all the features : The Next button is still enabled and 
allowing the installation.

Q1) Is the 2nd scenario a correct behavior?

I tried to Disable Next button using ControlCondition and condition as features 
requested state(&Feature1 = 2). But its not been working on UI as Windows 
installer UIs are not so flexible to do so.

Q2) How are they disabling the button like configuration_Directory, Install 
Path, Costing etc based on the Feature requested state. I am curious and 
checked in Control Condition table there no clue about these buttons.


Could anyone share you thoughts, is it feature to be implemented in Wix? I 
checked in isntallshield it  is the same.

PS: As of Now, We are using a VB Script CA to check for the requested state of 
all features and display a pop up and will bring back to the custom setup 
dialog.

Regards,
Sampat




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/WixUI-FeatureTree-What-if-all-deselected-tp7600478.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to