What I meant in the previous thread was that, I had conditions set on
components and these were not getting evaluated when the msi was run in
maintenance mode. Fiddling with Transitive, RemoveFile, KeyPath, didn't seem
to help. The components installed fine during fresh install. 

Per your suggestion, Phil, now, I am moving the components to individual
features based on property set on UI. And sadly I have not yet been able to
get the condition to work on Feature. 
   In the code below, UNICODETYPE is the property on Radiobutton selected on
UI. Based on this selection, I want to enable the feature.

    <Property Id="UNICODETYPE" Value="1" Secure="yes" />


    <Feature Id="PrivacyAuditor" Title="$(var.PrivacyAuditorName)"
Level="200"
             InstallDefault="local" AllowAdvertise="no" Display="10"
Description="!(loc.PrivacyAuditorFeatureDesc)">


     <Feature Id="Compression"  Level="0" AllowAdvertise="no"
Display="hidden" >
        <Condition Level="1"></Condition>
        <ComponentRef Id="pa2_indexes.sql"/>
        <ComponentRef Id="pa2_db_compression.sql"/>
        <ComponentRef Id="audit_Events"/>
      </Feature>

      <Feature Id="NoCompression"  Level="0" AllowAdvertise="no"
Display="hidden" >
        <Condition Level="1"></Condition>
        <ComponentRef Id="pa2_indexes_no_compression.sql"/>
        <ComponentRef Id="pa2_db_no_compression.sql"/>
      </Feature>

      <Feature Id="NoUnicode"  Level="0" AllowAdvertise="no"
Display="hidden" >
        <Condition Level="1"></Condition>
        <ComponentRef Id="pa2_indexes_no_compression.sql"/>
        <ComponentRef Id="pa2_db_no_unicode.sql"/>
        <ComponentRef Id="audit_Events_no_unicode"/>
      </Feature>
    </Feature>


The logs indicate that the features are never evaluated to true even though
UNICODETYPE has the correct value set in a previous action.

MSI (s) (90:5C) [20:54:25:280]: Feature: PrivacyAuditor; Installed: Absent;  
Request: Local;   Action: Local
MSI (s) (90:5C) [20:54:25:280]: Feature: Compression; Installed: Absent;  
Request: Null;   Action: Null
MSI (s) (90:5C) [20:54:25:280]: Feature: NoCompression; Installed: Absent;  
Request: Null;   Action: Null
MSI (s) (90:5C) [20:54:25:280]: Feature: NoUnicode; Installed: Absent;  
Request: Null;   Action: Null


I don't understand why the conditions don't work on my Feature definition.
The Property has a default value, so atleast one condition should be
satisfied.

Thanks for all good suggestions so far

sangeeta









--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RadioButton-property-not-evaluating-correctly-in-Components-Condition-tp7597915p7597934.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to