You are missing the publish event for the value

Something like this

In the <Control id=Next
        Add <Publish Event="Addlocal" 
Value="A"><![CDATA[(PKGTYPE="A")]]></Publish>
            <Publish Event="Remove" 
Value="A"><![CDATA[NOT(PKGTYPE="A")]]></Publish>

Add this for each value type.

I do this exactly the same with 4 radiobuttons for the user selection and based 
on the selection I set the features.


Arun Perregattur


-----Original Message-----
From: akihiro.shib...@jp.yokogawa.com [mailto:akihiro.shib...@jp.yokogawa.com]
Sent: Tuesday, November 24, 2009 7:01 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Select features on UI


 Hi,

I want to modify features by radio buttons on dialog.
When PKGTYPE is selected "A", features are "F0" and "F2".
When PKGTYPE is selected "B", features are "F0" and "F1".
When PKGTYPE is selected "C", features are "F1" and "F2".

 The content selected on the UI is not reflected. Where has made a mistake?

 1) Set Initialize Property "PKGTYPE"
 2) Select package type on radio button. and change value of "PKGTYPE".
 3) modify Feature Condition Levels .
 4) Show feature tree. but the content selected on the UI is not reflected



   <Property Id="PKGTYPE" Value="A" />



   <Feature Id="F0" Level="1001">
      <Condition Level="101">PKGTYPE="A"</Condition>
      <Condition Level="102">PKGTYPE="B"</Condition>
   </Feature>
   <Feature Id="F1" Level="1001">
      <Condition Level="102">PKGTYPE="B"</Condition>
      <Condition Level="103">PKGTYPE="C"</Condition>
   </Feature>
   <Feature Id="F2" Level="1001">
      <Condition Level="101">PKGTYPE="A"</Condition>
      <Condition Level="103">PKGTYPE="C"</Condition>
   </Feature>
      : ( these are many features. )


      :

  <Fragment>
     <UI>
       <Dialog Id="PkgTypeDlg" Width="370" Height="270" Title="[ProductName] 
Setup">
         <Control Id="Control_Select_PackageType" Type="RadioButtonGroup" 
X="18" Y="59" Width="329" Height="119" Property="PKGTYPE">
           <RadioButtonGroup Property="PKGTYPE">
             <RadioButton Text="PackageA" Value="A" X="6" Y="10" Width="65" 
Height="17"/>
             <RadioButton Text="PackageB" Value="B" X="6" Y="30" Width="65" 
Height="17"/>
             <RadioButton Text="PackageC" Value="C" X="6" Y="50" Width="65" 
Height="17"/>
           </RadioButtonGroup>
         </Control>
         <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="!(loc.UIButtonNext)">
            <Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
         </Control>
                :
       </Dialog>
     </UI>
    </Fragment>

Thanks,

Akihiro, Shibuta.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to