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="&amp;MySQL"
    Value="MySQL" X="5" Y="0" Width="250" Height="15" />
    <RadioButton Text="&amp;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

Reply via email to