Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Change attribut Level for Feature


1 reply to this topic

serjik

serjik
  • Full Members
  • 1 posts

Posted 29 January 2008 - 12:34

I want to change attribute Level for Feature, if a button is pressed.
I can't do it. I use Wix3. Help me please.

CODE

<Feature Id="ServerApp" Title="Server"  Level="1">
  <ComponentRef Id="Server" />                
  <Condition Level='2'><![CDATA[IType = "ServerInstall"]]></Condition>
</Feature>  
<Feature Id="Client" Title="Client" Level="1">
  <ComponentRef Id="Client" />  
  <Condition Level='2'><![CDATA[IType = "ClientInstall"]]></Condition>
</Feature>
...
<UI>
 <Dialog Id="InstallType" Width="370" Height="270" Title="[ProductName] Setup">
    <Control Id="ClientInstallButton" Type="PushButton" X="40" Y="90" Width="100" Height="17" Default="yes" Text="ClientInstall">
       <Publish Property="IType" Value="ClientInstall">1</Publish>
       <Publish Event="NewDialog" Value="myCustomizeDlg">1</Publish>
    </Control>
    <Control Id="ServerInstallButton" Type="PushButton" X="40" Y="110" Width="100" Height="17" Text="ServerInstall">
        <Publish Property="IType" Value="ServerInstall">1</Publish>      
        <Publish Event="NewDialog" Value="myCustomizeDlg">1</Publish>
    </Control>

Don't work ((

Edited by serjik, 29 January 2008 - 12:35.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 January 2008 - 15:12

Feature levels are evaluated during CostFinalize, whioch typically happens before any dialogs are displayed.