My brain is twisted and can't seem to get the condition logic right.

 

1.       If the Product has not been installed on the machine then the
condition should set Level to 1.



2.       If the Product has been installed but the HAVELS2208 registry key
doesn't exist then the condition should NOT set Level to 1.



3.       If the Product has been installed and the HAVELS2208 registry key
does exist then the condition should set Level to 1.



For some reason I can't seem to create the right logic in the condition to
evaluate as expected for the above 3 scenarios.



Can someone show me what I'm doing wrong?

 

<Include>

 

      <Property Id='HAVELS2208'>

        <RegistrySearch Id="registrysearchHAVELS2208"
Win64="$(var.win64Flag)" Root="HKLM" Key="Software\ABC\DEF\LS2208"
Name="installed" Type="raw"/>

      </Property>

 

      <Feature Id='LS2208Feature' Title='LS2208' Level='2'
ConfigurableDirectory='INSTALLDIR' Description='Installs the LS2208.'
AllowAdvertise='no' InstallDefault='local'>

        <Condition Level='1'><![CDATA[(Installed AND HAVELS2208) OR (NOT
Installed)]]></Condition>

 

        <ComponentRef Id='ls2208component1' />

        <ComponentRef Id='ls2208component2' />

 

      </Feature>

 

</Include>

 

 

dave williamson

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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