Hi, Erdi:
I think you should add a custom action after clicking "Next" button of
radio button window to "CostFinalize". Just like this:
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="[ButtonText_Next]">
*<Publish Event="DoAction" Value="CostFinalize">1</Publish>*
<Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
</Control>
And I suggest you set "DATABASECHOICE" property default to "NULL" or
something you like, but don't set it to "MySQL" or "ORACLE". Becuase
when msi execute your package and do "CostFinalize" automatically, it
will check the condition of features. So I suggest you set property to
"NULL" to ensure two of features are selected when installation begin.
You can find more information here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/costfinalize_action.asp.
Basically, when you change the feature or components you want to
install, you need run "CostFinalize" again.
L.Q.
erdi wrote:
> This problem was mentioned few days ago in this list, but the solution
> presented doesn't work for me.
>
> I need to get user decision about what database type (oracle or mysql) is he
> going to use with my program. So I made a dialog with radio buttons just
> like in point 8.7 of tutorial at http://www.tramontana.co.hu/wix/ and
> inserted it into the WiX UI library like in point 2.5 of the same tutorial.
>
> The property connected with radio buttons is declared this way:
>
> <Property Id="DATABASECHOICE" Secure='yes'>MySQL</Property>
>
> so it's both public and registered under SecureCustomProperties property -
> I've also checked it in Orca to be sure.
>
> the radio buttons are declared this way:
>
> <RadioButtonGroup Property="DATABASECHOICE">
> <RadioButton Text="&MySQL"
> Value="MySQL" X="5" Y="0" Width="250" Height="15" />
> <RadioButton Text="&Oracle"
> Value="ORACLE" X="5" Y="20" Width="250" Height="15" />
> </RadioButtonGroup>
>
> and the conditional features are:
>
> <Feature Id="MySqlSupport" Display="hidden" Level="1">
> <Condition Level="0">NOT (DATABASECHOICE = "MySQL")</Condition>
> <ComponentRef Id="MySqlPrintsoftLib"/>
> <ComponentRef Id="MySqlLibs"/>
> <ComponentRef Id="MySqlRegistry"/>
> </Feature>
> <Feature Id="OracleSupport" Display="hidden" Level="1">
> <Condition Level="0">NOT (DATABASECHOICE = "ORACLE")</Condition>
> <ComponentRef Id="OraclePrintsoftLib"/>
> <ComponentRef Id="OracleRegistry"/>
> </Feature>
>
> Now, when I start the installer and leave the property default, not changing
> the selection in radio button group everything works fine - the MySqlSupport
> feature
> is installed correctly. When I pick the Oracle database from the radio
> button group then OracleSupport feature isn't installed. But what's very
> interesting in the log file i can find such lines:
> Property(S): DATABASECHOICE = ORACLE
> Property(C): DATABASECHOICE = ORACLE
> PublishFeatures: Feature: OracleSupport,
> so the property seems to be set corectly.
>
> The situation is oposite when I declare the DATABASECHOICE property this
> way:
> <Property Id="DATABASECHOICE" Secure='yes'>ORACLE</Property>,
> then the OracleSupport feature is installed when picked in radio button
> group and MySqlSupport isn't installed even if picked.
>
> Please help, I've been fighting with this for last two days and I'm
> desperate now....
>
> Erdi
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users