<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Installation Developer &#187; Setting the Component&#8217;s Shared Property</title>
	<atom:link href="http://www.installationdeveloper.com/248/setting-the-components-shared-property/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.installationdeveloper.com</link>
	<description>InstallShield Training - InstallShield Tutorials</description>
	<lastBuildDate>Sat, 04 Sep 2010 14:49:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting the Component&#8217;s Shared Property</title>
		<link>http://www.installationdeveloper.com/248/setting-the-components-shared-property/</link>
		<comments>http://www.installationdeveloper.com/248/setting-the-components-shared-property/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 20:25:24 +0000</pubDate>
		<dc:creator>Rod_Maupin</dc:creator>
				<category><![CDATA[InstallShield Training]]></category>
		<category><![CDATA[installshield class]]></category>
		<category><![CDATA[installshield classes]]></category>
		<category><![CDATA[installshield course]]></category>
		<category><![CDATA[installshield courses]]></category>
		<category><![CDATA[installshield programmer]]></category>
		<category><![CDATA[Installshield Tutorial]]></category>
		<category><![CDATA[installshield tutorials]]></category>

		<guid isPermaLink="false">http://www.installationdeveloper.com/?p=248</guid>
		<description><![CDATA[Sometimes there is confusion about the Shared property of a Component.&#160; So, let&#39;s look at it. When you create&#160;an InstallScript project, and even before you have added files to the project, a&#160;default component will be created, and it&#39;s Shared property will be&#160;set to No.&#160; When you create a Basic MSI project, there are no components [...]]]></description>
			<content:encoded><![CDATA[<p>
Sometimes there is confusion about the Shared property of a Component.&nbsp; So, let&#39;s look at it.
</p>
<p>
When you create&nbsp;an InstallScript project, and even before you have added files to the project, a&nbsp;default component will be created, and it&#39;s Shared property will be&nbsp;set to No.&nbsp; When you create a Basic MSI project, there are no components created by default, so you have to add at least one file (let&#39;s say an executable) to the project in order for a component to be created.&nbsp; When you add this assembly to the project, InstallShield will ask you if you want to scan for dependencies.&nbsp; If you say &quot;No to all&quot;, then a component will be created for the assembly, and&nbsp;it&#39;s Shared property will be set to Yes, by default.
</p>
<p>
In both types of projects, the Shared property of a component is looked at in the same way.&nbsp; If it is set to Yes, and that component is installed on the user&#39;s system, then a reference count will be created in the registry, if it does not already exist, and then incremented.&nbsp; Actually, the installer will increment an existing reference count, no matter whether the Shared property is set to Yes or not.&nbsp; If no reference count exists, the installer will only create one&nbsp;if you set the Shared property to Yes.&nbsp; So, what does all this mean?
</p>
<p>
Well, you need to at least be aware of it.&nbsp; The problem I see is if the Shared property of a component is set to Yes, and yet no sharing is being done, then you will sometimes have a registry entry&nbsp;left behind&nbsp;during an uninstallation (the reference count), when you actually want the entry to be removed.&nbsp; If you have done a lot of installing and uninstalling, the reference count might not be accurate, and left behind during an uninstall, and thus cause you to have the component&#39;s file&nbsp;left behind on the user&#39;s system.
</p>
<p>
Just be aware of this, especially in Basic MSI projects, where the assembly component is set to Yes by default.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property&amp;bodytext=%0D%0ASometimes%20there%20is%20confusion%20about%20the%20Shared%20property%20of%20a%20Component.%26nbsp%3B%20So%2C%20let%26%2339%3Bs%20look%20at%20it.%20%0D%0A%0D%0A%0D%0AWhen%20you%20create%26nbsp%3Ban%20InstallScript%20project%2C%20and%20even%20before%20you%20have%20added%20files%20to%20the%20project%2C%20a%26nbsp%3Bdefault%20component%20will%20be%20create" title="Digg"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property&amp;notes=%0D%0ASometimes%20there%20is%20confusion%20about%20the%20Shared%20property%20of%20a%20Component.%26nbsp%3B%20So%2C%20let%26%2339%3Bs%20look%20at%20it.%20%0D%0A%0D%0A%0D%0AWhen%20you%20create%26nbsp%3Ban%20InstallScript%20project%2C%20and%20even%20before%20you%20have%20added%20files%20to%20the%20project%2C%20a%26nbsp%3Bdefault%20component%20will%20be%20create" title="del.icio.us"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;t=Setting%20the%20Component%27s%20Shared%20Property" title="Facebook"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;h=Setting%20the%20Component%27s%20Shared%20Property" title="NewsVine"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property" title="Reddit"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property" title="StumbleUpon"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property&amp;annotation=%0D%0ASometimes%20there%20is%20confusion%20about%20the%20Shared%20property%20of%20a%20Component.%26nbsp%3B%20So%2C%20let%26%2339%3Bs%20look%20at%20it.%20%0D%0A%0D%0A%0D%0AWhen%20you%20create%26nbsp%3Ban%20InstallScript%20project%2C%20and%20even%20before%20you%20have%20added%20files%20to%20the%20project%2C%20a%26nbsp%3Bdefault%20component%20will%20be%20create" title="Google Bookmarks"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;submitHeadline=Setting%20the%20Component%27s%20Shared%20Property&amp;submitSummary=%0D%0ASometimes%20there%20is%20confusion%20about%20the%20Shared%20property%20of%20a%20Component.%26nbsp%3B%20So%2C%20let%26%2339%3Bs%20look%20at%20it.%20%0D%0A%0D%0A%0D%0AWhen%20you%20create%26nbsp%3Ban%20InstallScript%20project%2C%20and%20even%20before%20you%20have%20added%20files%20to%20the%20project%2C%20a%26nbsp%3Bdefault%20component%20will%20be%20create&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Setting%20the%20Component%27s%20Shared%20Property%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F" title="Twitter"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F" title="Technorati"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property" title="Live"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;title=Setting%20the%20Component%27s%20Shared%20Property&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0ASometimes%20there%20is%20confusion%20about%20the%20Shared%20property%20of%20a%20Component.%26nbsp%3B%20So%2C%20let%26%2339%3Bs%20look%20at%20it.%20%0D%0A%0D%0A%0D%0AWhen%20you%20create%26nbsp%3Ban%20InstallScript%20project%2C%20and%20even%20before%20you%20have%20added%20files%20to%20the%20project%2C%20a%26nbsp%3Bdefault%20component%20will%20be%20create" title="LinkedIn"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.installationdeveloper.com%2F248%2Fsetting-the-components-shared-property%2F&amp;t=Setting%20the%20Component%27s%20Shared%20Property" title="MySpace"><img src="http://www.installationdeveloper.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.installationdeveloper.com/248/setting-the-components-shared-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
