I had a somewhat similar problem I had to deal with. Our product works with 
both VS2008 and VS2010. I need to make my installer work with either or both 
simultaneously. What I like doing in cases like this is to hide the feature all 
together from the user when a feature is not compatible with the users machine 
configuration. In my installer I have this piece:

<Feature Id="featVS10CSharpTemplates" Level="1" Title="WebAii Test Template for 
C#" Description="!(loc.Feature_VS10_CSharp_TestTemplate_Description)">
  <ComponentRef Id="cmpVS2010WebAiiCSTemplate" />
  <Condition Level="0">
    <![CDATA[NOT VS2010_IDE_VSTS_TESTSYSTEM_INSTALLED OR NOT 
VS2010_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED]]>
  </Condition>
</Feature>

The above will hide the feature from the user if VS2010 is not installed or if 
the VS2010 C# language is not installed. This way I don't need to worry about 
any "Feature not compatible" type of dialogs.

I have the same condition on the component for UI-less installs like this:

<Component Id="cmpVS2010WebAiiCSTemplate" Guid="{XXXX}">
  <Condition>(VS2010_ROOT_FOLDER AND VS2010DEVENV AND 
VS2010_IDE_VCSHARP_PROJECTSYSTEM_INSTALLED AND 
PROP_VS10_CS_TEMPLATE_DIR)</Condition>
  <File Id="VS2010_CSharpTestTemplate" KeyPath="yes" Source="XXXXX" />
</Component>

Cody


-----Original Message-----
From: spsingam [mailto:siva.poobalasin...@gmail.com] 
Sent: Sunday, February 07, 2010 6:06 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How do i put a Launch Condition within a Feature.


All, 

I am trying to put a Launch Condition within a a Feature, I cannot seem to
find any examples to do this. I am not even sure if i can.

My reason for this is that i have a feature, that only works with Windows
2003. And when or if the user chooses this feature and if the Operating
System is XP, then this Message box appease and informs the user that the
feature is unavailable.

Anyone on here got any input ?

Thank you.
-- 
View this message in context: 
http://n2.nabble.com/How-do-i-put-a-Launch-Condition-within-a-Feature-tp4531682p4531682.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to