<?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; Creating an Uninstallation Shortcut in an InstallScript Project</title>
	<atom:link href="http://www.installationdeveloper.com/290/creating-an-uninstallation-shortcut-in-an-installscript-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>Creating an Uninstallation Shortcut in an InstallScript Project</title>
		<link>http://www.installationdeveloper.com/290/creating-an-uninstallation-shortcut-in-an-installscript-project/</link>
		<comments>http://www.installationdeveloper.com/290/creating-an-uninstallation-shortcut-in-an-installscript-project/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 04:44:27 +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=290</guid>
		<description><![CDATA[Creating an Uninstallation Shortcut for an InstallScript project is relatively easy.&#160; Here is how you do it. First, you need to add an OnMoving event handler to your script.&#160; Next, add the following code to the event handler. function OnMoving() &#160;&#160;&#160;&#160; begin &#160;&#160; if( !REMOVEALLMODE ) then &#160;&#160;&#160;&#160;&#160; AddFolderIcon(FOLDER_PROGRAMS ^ &#34;Wavepoint Studios&#34; ^ &#34;Mega View&#34;, [...]]]></description>
			<content:encoded><![CDATA[<p>
Creating an Uninstallation Shortcut for an InstallScript project is relatively easy.&nbsp; Here is how you do it.
</p>
<p>
First, you need to add an OnMoving event handler to your script.&nbsp; Next, add the following code to the event handler.
</p>
<p>
function OnMoving()<br />
&nbsp;&nbsp;&nbsp;&nbsp;<br />
begin<br />
&nbsp;&nbsp; if( !REMOVEALLMODE ) then<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddFolderIcon(FOLDER_PROGRAMS ^ &quot;Wavepoint Studios&quot; ^ &quot;Mega View&quot;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Uninstall Mega View&quot;,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UNINSTALL_STRING + ADDREMOVE_STRING_REMOVEONLY,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;,&nbsp;&quot;&quot;,&nbsp;0,&nbsp;&quot;&quot;,&nbsp;REPLACE );&nbsp;<br />
&nbsp;&nbsp; endif;&nbsp;<br />
end;
</p>
<p>
The first parameter is the folder to put the uninstallation shortcut into.&nbsp; In this example, the shortcut will be placed under the Programs Menu, Wavepoint Studios company folder, Mega View application folder.&nbsp; The second parameter is the text that will appear under the shortcut.&nbsp; The&nbsp;third parameter is the command line, which&nbsp;in this example is&nbsp;the&nbsp;uninstall string with the removeonly&nbsp;parameter.
</p>
<p>
Now, since you put this call to AddFolderIcon in your script, this shortcut will be uninstalled along with the rest of your 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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project&amp;bodytext=%0D%0ACreating%20an%20Uninstallation%20Shortcut%20for%20an%20InstallScript%20project%20is%20relatively%20easy.%26nbsp%3B%20Here%20is%20how%20you%20do%20it.%20%0D%0A%0D%0A%0D%0AFirst%2C%20you%20need%20to%20add%20an%20OnMoving%20event%20handler%20to%20your%20script.%26nbsp%3B%20Next%2C%20add%20the%20following%20code%20to%20the%20event%20handler.%20%0D%0A%0D%0A%0D%0A" 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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project&amp;notes=%0D%0ACreating%20an%20Uninstallation%20Shortcut%20for%20an%20InstallScript%20project%20is%20relatively%20easy.%26nbsp%3B%20Here%20is%20how%20you%20do%20it.%20%0D%0A%0D%0A%0D%0AFirst%2C%20you%20need%20to%20add%20an%20OnMoving%20event%20handler%20to%20your%20script.%26nbsp%3B%20Next%2C%20add%20the%20following%20code%20to%20the%20event%20handler.%20%0D%0A%0D%0A%0D%0A" 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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;t=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;h=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project&amp;annotation=%0D%0ACreating%20an%20Uninstallation%20Shortcut%20for%20an%20InstallScript%20project%20is%20relatively%20easy.%26nbsp%3B%20Here%20is%20how%20you%20do%20it.%20%0D%0A%0D%0A%0D%0AFirst%2C%20you%20need%20to%20add%20an%20OnMoving%20event%20handler%20to%20your%20script.%26nbsp%3B%20Next%2C%20add%20the%20following%20code%20to%20the%20event%20handler.%20%0D%0A%0D%0A%0D%0A" 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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;submitHeadline=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project&amp;submitSummary=%0D%0ACreating%20an%20Uninstallation%20Shortcut%20for%20an%20InstallScript%20project%20is%20relatively%20easy.%26nbsp%3B%20Here%20is%20how%20you%20do%20it.%20%0D%0A%0D%0A%0D%0AFirst%2C%20you%20need%20to%20add%20an%20OnMoving%20event%20handler%20to%20your%20script.%26nbsp%3B%20Next%2C%20add%20the%20following%20code%20to%20the%20event%20handler.%20%0D%0A%0D%0A%0D%0A&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=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project%20-%20http%3A%2F%2Fwww.installationdeveloper.com%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;title=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%20Project&amp;source=Installation+Developer+InstallShield+Training+-+InstallShield+Tutorials&amp;summary=%0D%0ACreating%20an%20Uninstallation%20Shortcut%20for%20an%20InstallScript%20project%20is%20relatively%20easy.%26nbsp%3B%20Here%20is%20how%20you%20do%20it.%20%0D%0A%0D%0A%0D%0AFirst%2C%20you%20need%20to%20add%20an%20OnMoving%20event%20handler%20to%20your%20script.%26nbsp%3B%20Next%2C%20add%20the%20following%20code%20to%20the%20event%20handler.%20%0D%0A%0D%0A%0D%0A" 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%2F290%2Fcreating-an-uninstallation-shortcut-in-an-installscript-project%2F&amp;t=Creating%20an%20Uninstallation%20Shortcut%20in%20an%20InstallScript%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/290/creating-an-uninstallation-shortcut-in-an-installscript-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
