This is a good solution from Nick!
-----Original Message-----
From: Nick Ramirez [mailto:[email protected]]
Sent: Friday, December 05, 2014 7:36 AM
To: [email protected]
Subject: Re: [WiX-users] "Condition" problem
Use a feature condition. A feature condition is where a Condition element is
placed inside a Feature element. There, it can change whether or not that
feature gets installed depending on if the statements evaluates to true.
It does this by changing the Level of the Feature:
<Feature Id="FeatureThatNeedsSQL" Title="My SQL Feature" Level="1">
<ComponentGroupRef Id="SQLComponents" />
<Condition Level="0">
</Condition>
</Feature>
If SQL_INSTALLED is false, the feature's Level will be changed to 0, which
means it will be disabled and removed from the feature tree. This works for the
UI, because it removes the feature from the feature tree. It also works for the
command-line because it disables the feature.
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-problem-tp7598403p7598429.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate!
Instantly Supercharge Your Business Reports and Dashboards with Interactivity,
Sharing, Native Excel Exports, App Integration & more Get technology previously
reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users