Hi,

 

I have a custom dialog written in WiX with 3 buttons : server, client
and other. I need the INSTALLLEVEL property value to be set when one of
the 3 buttons is clicked. I set other property's values successfully
like that. Why does it not work for INSTALLLEVEL?

Here is the code :

 

DIALOG :

 

<Dialog Id="ClientServerOtherDlg" Width="370" Height="270"
Title="!(loc.LicenseAgreementDlg_Title)">

        <!--Buttons of dialog-->

        <Control Id="Server" Type="PushButton" X="30" Y="120" Width="80"
Height="17" Text="Server">

          <Publish Property="SERVER" Value="1" Order="1">1</Publish>

          <Publish Property="INSTALLLEVEL" Value="1"
Order="2">5000</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg"
Order="3">SERVER=1</Publish>

        </Control>

        <Control Id="Client" Type="PushButton" X="130" Y="120"
Width="80" Height="17" Text="Client">

          <Publish Property="SERVER" Value="1" Order="1">0</Publish>

          <Publish Property="CLIENT" Value="1" Order="2">1</Publish>

          <Publish Property="INSTALLLEVEL" Value="1"
Order="3">3000</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg"
Order="4">SERVER=0</Publish>

        </Control>

        <Control Id="NonCapAgency" Type="PushButton" X="230" Y="120"
Width="120" Height="17" Text="Other">

          <Publish Property="SERVER" Value="1" Order="1">0</Publish>

          <Publish Property="OTHER" Value="1" Order="2">1</Publish>

          <Publish Property="INSTALLLEVEL" Value="1"
Order="3">4000</Publish>

          <Publish Event="NewDialog" Value="InstallDirDlg"
Order="4">SERVER=0</Publish>

        </Control>

        <Control Id="Cancel" Type="PushButton" X="304" Y="243"
Width="56" Height="17" Cancel="yes" Text="!(loc.WixUICancel)">

          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>

        </Control>

        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370"
Height="44" TabSkip="no" Text="!(loc.LicenseAgreementDlgBannerBitmap)"
/>

        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370"
Height="0" />

        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370"
Height="0" />

        <Control Id="Description" Type="Text" X="25" Y="23" Width="340"
Height="15" Transparent="yes" NoPrefix="yes"
Text="!(loc.LicenseAgreementDlgDescription)" />

        <Control Id="Title" Type="Text" X="15" Y="6" Width="200"
Height="15" Transparent="yes" NoPrefix="yes"
Text="!(loc.LicenseAgreementDlgTitle)" />

</Dialog>

 

 

 

FEATURES :

 

 

<Feature Id='Server_Installation' 

   Title='Server Program Files' 

               Description='Server install' 

   Level='5000' 

   Absent='disallow'>

        <ComponentRef Id='ServerFiles'/>

      </Feature>

 

      <Feature Id='Other' 

               Title='Other Files' 

               Description='Installs other' 

               Level='4000' 

               Absent='disallow'>

        <ComponentRef Id='OtherFiles'/>

      </Feature>

 

 

      <Feature Id='Client_Installation' 

               Title='Client Files' 

   Description='Installs Client Files' 

               Level='3000' 

               Absent='disallow'>

        <ComponentRef Id='ClientFiles'/>

      </Feature>

 

When the setup reaches the featuresDlg none of the features are
"included" by default. I need the correct feature to be "included" by
default and if possible make them "read only" so users cannot remove
them from being included?

 

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