<?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; Rules for Overwriting of Files in a Basic MSI Project</title>
	<atom:link href="http://www.installationdeveloper.com/308/rules-for-overwriting-of-files-in-a-basic-msi-project/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>Rules for Overwriting of Files in a Basic MSI Project</title>
		<link>http://www.installationdeveloper.com/308/rules-for-overwriting-of-files-in-a-basic-msi-project/</link>
		<comments>http://www.installationdeveloper.com/308/rules-for-overwriting-of-files-in-a-basic-msi-project/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 15:45:41 +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=308</guid>
		<description><![CDATA[There are some basic rules to know in understanding how the Windows Installer handles the overwriting of files on the user&#39;s system.&#160; Here are the rules: If you use the Always Overwrite property of a component to indicate that a file should always&#160;be overwritten, the file will always be overwritten on the target machine regardless [...]]]></description>
			<content:encoded><![CDATA[<p>
There are some basic rules to know in understanding how the <strong>Windows Installer</strong> handles the <strong>overwriting of files</strong> on the user&#39;s system.&nbsp; Here are the rules:
</p>
<ul>
<li>
<div>
	If you use the <strong>Always Overwrite</strong> property of a component to indicate that a file should always&nbsp;be overwritten, the file will always be overwritten on the target machine regardless of the file version, date, or language.
	</div>
</li>
<li>
<div>
	If the file being installed has a later <strong>version number</strong> than the file on the target system, it will replace the existing file.
	</div>
</li>
<li>
<div>
	If the file being installed has a <strong>version resource</strong>, and the file on the target system does not, the file with the <strong>version resource</strong> will replace the existing file.
	</div>
</li>
<li>
<div>
	If neither file has a <strong>version resource</strong>, the existing file will be overwritten if its <strong>Created</strong> and <strong>Modified</strong> times are the same.
	</div>
</li>
<li>
<div>
	If the <strong>Modified</strong> date of an existing file is later than the file&#39;s creation date, then the file is not overwritten.&nbsp; This protects user preference files from being wiped out during an upgrade or reinstallation.&nbsp; Very important!
	</div>
</li>
</ul>
<p>
Now, if you are debugging a <strong>Basic MSI</strong> installation and&nbsp;files are being overwritten that aren&#39;t supposed to be, or files are not being overwritten that are supposed to be, then you can use a log file to determine why this is happening.
</p>
<p>
Finally, if an installation tries to overwrite an executable file that is currently running, a dialog is displayed telling the user to close the application.</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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project&amp;bodytext=%0D%0AThere%20are%20some%20basic%20rules%20to%20know%20in%20understanding%20how%20the%20Windows%20Installer%20handles%20the%20overwriting%20of%20files%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20Here%20are%20the%20rules%3A%20%0D%0A%0D%0A%0D%0A%09%0D%0A%09%0D%0A%09If%20you%20use%20the%20Always%20Overwrite%20property%20of%20a%20component%20to%20indicate%20that" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project&amp;notes=%0D%0AThere%20are%20some%20basic%20rules%20to%20know%20in%20understanding%20how%20the%20Windows%20Installer%20handles%20the%20overwriting%20of%20files%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20Here%20are%20the%20rules%3A%20%0D%0A%0D%0A%0D%0A%09%0D%0A%09%0D%0A%09If%20you%20use%20the%20Always%20Overwrite%20property%20of%20a%20component%20to%20indicate%20that" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;t=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;h=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project&amp;annotation=%0D%0AThere%20are%20some%20basic%20rules%20to%20know%20in%20understanding%20how%20the%20Windows%20Installer%20handles%20the%20overwriting%20of%20files%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20Here%20are%20the%20rules%3A%20%0D%0A%0D%0A%0D%0A%09%0D%0A%09%0D%0A%09If%20you%20use%20the%20Always%20Overwrite%20property%20of%20a%20component%20to%20indicate%20that" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;submitHeadline=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project&amp;submitSummary=%0D%0AThere%20are%20some%20basic%20rules%20to%20know%20in%20understanding%20how%20the%20Windows%20Installer%20handles%20the%20overwriting%20of%20files%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20Here%20are%20the%20rules%3A%20%0D%0A%0D%0A%0D%0A%09%0D%0A%09%0D%0A%09If%20you%20use%20the%20Always%20Overwrite%20property%20of%20a%20component%20to%20indicate%20that&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=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;title=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0AThere%20are%20some%20basic%20rules%20to%20know%20in%20understanding%20how%20the%20Windows%20Installer%20handles%20the%20overwriting%20of%20files%20on%20the%20user%26%2339%3Bs%20system.%26nbsp%3B%20Here%20are%20the%20rules%3A%20%0D%0A%0D%0A%0D%0A%09%0D%0A%09%0D%0A%09If%20you%20use%20the%20Always%20Overwrite%20property%20of%20a%20component%20to%20indicate%20that" 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%2F308%2Frules-for-overwriting-of-files-in-a-basic-msi-project%2F&amp;t=Rules%20for%20Overwriting%20of%20Files%20in%20a%20Basic%20MSI%20Project" 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/308/rules-for-overwriting-of-files-in-a-basic-msi-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
