<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Feature states in component conditions</title>
	<atom:link href="http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/</link>
	<description>Bob Arnson on setup and servicing with WiX and MSI</description>
	<lastBuildDate>Sun, 24 Jul 2011 04:35:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Bob Arnson</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7211</link>
		<dc:creator>Bob Arnson</dc:creator>
		<pubDate>Fri, 26 Sep 2008 14:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7211</guid>
		<description>Schedule the custom action before CostFinalize.</description>
		<content:encoded><![CDATA[<p>Schedule the custom action before CostFinalize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey S</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7209</link>
		<dc:creator>Sergey S</dc:creator>
		<pubDate>Thu, 25 Sep 2008 10:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7209</guid>
		<description>Sorry, forgot to escape the code:

&lt;code&gt;&lt;Component Id=&quot;ComponentA&quot; Guid=&quot;..&quot; KeyPath=&quot;yes&quot;&gt;
	&lt;Condition&gt;&amp;Feature2=3&lt;/Condition&gt;
...
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, forgot to escape the code:</p>
<p><code>&lt;Component Id="ComponentA" Guid=".." KeyPath="yes"&gt;<br />
	&lt;Condition&gt;&amp;Feature2=3&lt;/Condition&gt;<br />
...<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey S</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7208</link>
		<dc:creator>Sergey S</dc:creator>
		<pubDate>Thu, 25 Sep 2008 10:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7208</guid>
		<description>Thanks, Bob!

Yes, components can be assigned to multiple features but this works as logical-OR (if at least one feature is selected the component will be installed). My scenario is a little bit different. The component (say ComponentA) is linked to feature Feature1. But i need to install it only if users select both Feature1 AND Feature2 so i add the following condition:

&lt;code&gt;

	&amp;Feature2=3
...
&lt;/code&gt;

This doesn&#039;t work (however Feature2 state is 3 for sure). Then i scheduled the following CA to run:

&lt;code&gt;
NOT Installed AND 
&lt;/code&gt;

which sets InstallFlag property (realy sets according to the log) so i can check it in the component&#039;s condition like

&lt;code&gt;InstallFlag&lt;/code&gt;

And this also doesn&#039;t work :( It only works if the property is predefined but i do need dynamic condition. What whould you suggest?</description>
		<content:encoded><![CDATA[<p>Thanks, Bob!</p>
<p>Yes, components can be assigned to multiple features but this works as logical-OR (if at least one feature is selected the component will be installed). My scenario is a little bit different. The component (say ComponentA) is linked to feature Feature1. But i need to install it only if users select both Feature1 AND Feature2 so i add the following condition:</p>
<p><code></p>
<p>	&amp;Feature2=3<br />
...<br />
</code></p>
<p>This doesn&#8217;t work (however Feature2 state is 3 for sure). Then i scheduled the following CA to run:</p>
<p><code><br />
NOT Installed AND<br />
</code></p>
<p>which sets InstallFlag property (realy sets according to the log) so i can check it in the component&#8217;s condition like</p>
<p><code>InstallFlag</code></p>
<p>And this also doesn&#8217;t work <img src='http://www.joyofsetup.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  It only works if the property is predefined but i do need dynamic condition. What whould you suggest?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Arnson</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7207</link>
		<dc:creator>Bob Arnson</dc:creator>
		<pubDate>Thu, 25 Sep 2008 02:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7207</guid>
		<description>Sergey,

It&#039;s possible -- just add the component to the feature. Components can be assigned to multiple features. The problem is in trying to use feature conditions for mutually-exclusive components. That doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Sergey,</p>
<p>It&#8217;s possible &#8212; just add the component to the feature. Components can be assigned to multiple features. The problem is in trying to use feature conditions for mutually-exclusive components. That doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey S</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7205</link>
		<dc:creator>Sergey S</dc:creator>
		<pubDate>Wed, 24 Sep 2008 20:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7205</guid>
		<description>Looks like it&#039;s not possible to install a component only if a specific feature has been selected to install (using feature state in component condition)? How in this case people solve the problem?</description>
		<content:encoded><![CDATA[<p>Looks like it&#8217;s not possible to install a component only if a specific feature has been selected to install (using feature state in component condition)? How in this case people solve the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Arnson</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7185</link>
		<dc:creator>Bob Arnson</dc:creator>
		<pubDate>Thu, 18 Sep 2008 06:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7185</guid>
		<description>This entry was about trying to mix feature states in component conditions. Using feature states elsewhere works, within the limits described in the doc. See http://msdn.microsoft.com/en-us/library/aa368561(VS.85).aspx for examples.</description>
		<content:encoded><![CDATA[<p>This entry was about trying to mix feature states in component conditions. Using feature states elsewhere works, within the limits described in the doc. See <a href="http://msdn.microsoft.com/en-us/library/aa368561(VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa368561(VS.85).aspx</a> for examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris B</title>
		<link>http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/comment-page-1/#comment-7182</link>
		<dc:creator>Chris B</dc:creator>
		<pubDate>Wed, 17 Sep 2008 16:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/#comment-7182</guid>
		<description>Great article - but this article only covers the doumentation, have you been able to find a single example of how to do this at all?  I not only have a component I&#039;d like to be able to install based on another Feature&#039;s state, but I also have a dialogbox I&#039;d like the user to see ONLY if they install a Feature. I&#039;m using InstallShield 2008, but I can do a direct-edit if I have to.

Why isn&#039;t this easier?  I mean seriously, there have to be countless people like me who have a simple feature-based installer where, say, they have to install a SQL script, but if the user chooses not to install SQL script at that time, we *don&#039;t need* a SQL script login dialog box.

Please, leave a comment or drop me a line if you&#039;ve seen examples of how precisely to do custom actions based on Feature states...</description>
		<content:encoded><![CDATA[<p>Great article &#8211; but this article only covers the doumentation, have you been able to find a single example of how to do this at all?  I not only have a component I&#8217;d like to be able to install based on another Feature&#8217;s state, but I also have a dialogbox I&#8217;d like the user to see ONLY if they install a Feature. I&#8217;m using InstallShield 2008, but I can do a direct-edit if I have to.</p>
<p>Why isn&#8217;t this easier?  I mean seriously, there have to be countless people like me who have a simple feature-based installer where, say, they have to install a SQL script, but if the user chooses not to install SQL script at that time, we *don&#8217;t need* a SQL script login dialog box.</p>
<p>Please, leave a comment or drop me a line if you&#8217;ve seen examples of how precisely to do custom actions based on Feature states&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

