I want to change attribute Level for Feature, if a button is pressed.
I can't do it. I use Wix3. Help me please.
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.
Change attribut Level for Feature
Started by
serjik
, Jan 29 2008 12:34
1 reply to this topic
Posted 29 January 2008 - 12:34
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.
Posted 30 January 2008 - 15:12
Feature levels are evaluated during CostFinalize, whioch typically happens before any dialogs are displayed.
Stefan Krüger
InstallSite.org twitter facebook