Resending as didn't get any replies :(

From: Srinivas Tirupati
Sent: 06 May 2008 21:48
To: 'wix-users@lists.sourceforge.net'
Subject: Condition on Feature

I have a feature in my product which needs to be installed only if VS 2005 is 
present.
I have done this by adding a condition element to Feature Element.

<Feature Id='AdapterSDKTools' Title='$(loc.ToolsTitle)' 
Description='$(loc.ToolsDescription)' AllowAdvertise='no' Level='1000'>
        <Condition Level='0'><![CDATA[(VSDEVENVPATH="")]]></Condition>
        <ComponentGroupRef Id="ToolsComponentGroup" />
      </Feature>

Where VSDEVENVPATH is property set to devenv path by registry search.


Well this works fine for Installation (meaning the feature is shown is VS is 
present and not shown if VS is not present)

But the problem is that when I modify my installation and remove this 
AdapterSDKTools feature ... It doesn't remove the feature. When I run the msi 
again .. this feature is shown as already present (Also the components in this 
features are present and not removed).


Thanks and Regards
Srinivas T
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to