<?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; Deleting Files Not Installed, But Created at Run-Time</title>
	<atom:link href="http://www.installationdeveloper.com/276/deleting-files-not-installed-but-created-at-run-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.installationdeveloper.com</link>
	<description>InstallShield Training - InstallShield Tutorials</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:57:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Deleting Files Not Installed, But Created at Run-Time</title>
		<link>http://www.installationdeveloper.com/276/deleting-files-not-installed-but-created-at-run-time/</link>
		<comments>http://www.installationdeveloper.com/276/deleting-files-not-installed-but-created-at-run-time/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 23:50:15 +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=276</guid>
		<description><![CDATA[
This happens all the time.&#160; You write an InstallShield installation program.&#160; You use it to install an application.&#160; The application runs.&#160; You uninstall the application and files are left behind.&#160; Files that your installation program didn&#39;t install, but were created during the use of the application.&#160; So, what do you do?


In a Basic MSI project, [...]]]></description>
			<content:encoded><![CDATA[<p>
This happens all the time.&nbsp; You write an InstallShield installation program.&nbsp; You use it to install an application.&nbsp; The application runs.&nbsp; You uninstall the application and files are left behind.&nbsp; Files that your installation program didn&#39;t install, but were created during the use of the application.&nbsp; So, what do you do?
</p>
<p>
In a Basic MSI project, there are three ways to uninstall run-time-created files:
</p>
<ol>
<li>
<div>
	You can create a dummy file that has the same name as the file created at run-time.&nbsp;&nbsp;There doesn&#39;t have to be any information in the file.&nbsp; Generally, I just put the words &quot;Dummy File&quot; or &quot;Placeholder&quot;&nbsp;in the file and save it out.&nbsp; Add this file to a component in your installation, rebuild and test.&nbsp; The installer will install the file.&nbsp; When you run the application, it will overwrite the file.&nbsp; Then when you uninstall, the file will be deleted, because InstallShield installed it originally.&nbsp; Personally, I use this method almost exclusively.&nbsp; It works when you have a small number of files to work with.
	</div>
</li>
<li>
<div>
	You can create an InstallScript Custom Action which deletes the file or folder of files.&nbsp; Place a condition on the Custom Action such that it is only run during&nbsp;uninstallation.&nbsp; Then, add it to the User Interface sequence after ExecuteAction.&nbsp;&nbsp;This works.&nbsp; Some may not consider this very elegant, but it does work.
	</div>
</li>
<li>
<div>
	Add the file(s) to the RemoveFile table.&nbsp; This is a little more complicated, so you&#39;ll have to consult the InstallShield Help.&nbsp; If you are a Basic MSI or Windows Installer purist, you will probably like this solution the best.
	</div>
</li>
</ol>
<p>
That&#39;s it.&nbsp; Three ways to get rid of files created at run-time.</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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time&amp;bodytext=%0D%0AThis%20happens%20all%20the%20time.%26nbsp%3B%20You%20write%20an%20InstallShield%20installation%20program.%26nbsp%3B%20You%20use%20it%20to%20install%20an%20application.%26nbsp%3B%20The%20application%20runs.%26nbsp%3B%20You%20uninstall%20the%20application%20and%20files%20are%20left%20behind.%26nbsp%3B%20Files%20that%20your%20installat" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time&amp;notes=%0D%0AThis%20happens%20all%20the%20time.%26nbsp%3B%20You%20write%20an%20InstallShield%20installation%20program.%26nbsp%3B%20You%20use%20it%20to%20install%20an%20application.%26nbsp%3B%20The%20application%20runs.%26nbsp%3B%20You%20uninstall%20the%20application%20and%20files%20are%20left%20behind.%26nbsp%3B%20Files%20that%20your%20installat" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;t=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;h=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time&amp;annotation=%0D%0AThis%20happens%20all%20the%20time.%26nbsp%3B%20You%20write%20an%20InstallShield%20installation%20program.%26nbsp%3B%20You%20use%20it%20to%20install%20an%20application.%26nbsp%3B%20The%20application%20runs.%26nbsp%3B%20You%20uninstall%20the%20application%20and%20files%20are%20left%20behind.%26nbsp%3B%20Files%20that%20your%20installat" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;submitHeadline=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time&amp;submitSummary=%0D%0AThis%20happens%20all%20the%20time.%26nbsp%3B%20You%20write%20an%20InstallShield%20installation%20program.%26nbsp%3B%20You%20use%20it%20to%20install%20an%20application.%26nbsp%3B%20The%20application%20runs.%26nbsp%3B%20You%20uninstall%20the%20application%20and%20files%20are%20left%20behind.%26nbsp%3B%20Files%20that%20your%20installat&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=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;title=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0AThis%20happens%20all%20the%20time.%26nbsp%3B%20You%20write%20an%20InstallShield%20installation%20program.%26nbsp%3B%20You%20use%20it%20to%20install%20an%20application.%26nbsp%3B%20The%20application%20runs.%26nbsp%3B%20You%20uninstall%20the%20application%20and%20files%20are%20left%20behind.%26nbsp%3B%20Files%20that%20your%20installat" 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%2F276%2Fdeleting-files-not-installed-but-created-at-run-time%2F&amp;t=Deleting%20Files%20Not%20Installed%2C%20But%20Created%20at%20Run-Time" 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/276/deleting-files-not-installed-but-created-at-run-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
