Hi,


I have a problem with a condition that checks a property's value in
order to set the LEVEL for a FEATURE

 

Here is my code

 

PROPERTY that is used by the RADIOBUTTONGROUP :

 

<Property Id="SETUPNUMBER" Secure="yes" Value="1"></Property>

 

I have tried leaving the value out, changing to different etc etc but
compiler errors occur then...

 

FEATURE :

 

<Feature Id='Type1_Installation' 

               Title='Type1' Description='Installs Files Required for
Type1 Setup.' 

               Level='3000' 

               InstallDefault='local'

               >

      <Condition Level="9999">SETUPNUMBER="2"</Condition>

        <ComponentRef Id='Type1Files'/>

</Feature>

<Feature Id='Type2_Installation' 

               Title='Type2' Description='Installs Files Required for
Type2 Setup.' 

               Level='1000' 

               InstallDefault='local'

               >

</Feature>

 

<Feature Id='Type3_Installation' 

               Title='Type3' Description='Installs Files Required for
Type2 Setup.' 

               Level='2000' 

               InstallDefault='local'></Feature>

 

 

 

 

RADIOBUTTONGROUP :

 

<Control Type="RadioButtonGroup" Id="Type" Width="160" Height="160"
X="40" Y="80" Property="SETUPNUMBER">          

          <RadioButtonGroup Property="SETUPNUMBER">            

            <RadioButton Text="Type1" Height="17" Value="1" Width="50"
X="0" Y="0"/>

            <RadioButton Text="Type2" Height="17" Value="2" Width="50"
X="0" Y="25" />

            <RadioButton Text="Type3" Height="17" Value="3" Width="110"
X="0" Y="50" />

            <RadioButton Text="Type4" Height="17" Value="4" Width="160"
X="0" Y="120"/>            

          </RadioButtonGroup>

        </Control> 

 

This sets the SETUPNUMBER Properties value to 1,2,3 or 4 depending on
the selected radiobutton.

I know this working because the following code works properly as
expected if the property has changed accordingly :

 

<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.WixUINext)">          

          <!-Type1-->

          <Publish Event="SetInstallLevel" Value="2000"
Order="1">SETUPNUMBER="1"</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg" Order="2">
SETUPNUMBER="1"</Publish>

          <!--Type2-->

          <Publish Event="SetInstallLevel" Value="3000"
Order="6">SETUPNUMBER="2"</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg"
Order="7">SETUPNUMBER="2"</Publish>

          <!--Type3-->

          <Publish Event="SetInstallLevel" Value="1000"
Order="5">SETUPNUMBER="3"</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg"
Order="7">SETUPNUMBER="3")</Publish>

        </Control>

 

 

For some reason the property's value that is read by the condition in
the features section is the same value as the value in the property
declaration. And not the value of the selected radiobutton?

 

How would I get this to work?? 

 

Many thanks,

 

Alex

 

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to