PDA

View Full Version : HOWTO: Uninstall a Shortcut Created with Actions



Support
09-25-2002, 09:50 AM
<HTML><HEAD><TITLE>HOWTO: Uninstall a Shortcut Created with Actions</TITLE></HEAD><BODY><h3>HOWTO: Uninstall a Shortcut Created with Actions</h3><b>Document ID: IR02008</b><hr>The information in this article applies to:<ul><li>Setup Factory 6.0</li></ul><hr><h3>SUMMARY</h3><p>This article explains shortcut creation and how to remove shortcuts created by actions.</p><h3>DISCUSSION</h3><p>There are two ways to create shortcuts in Setup Factory 6.0. The first is through <b>File Properties</b> and the second is by using a <b>Create Shortcut</b> action. All shortcuts created using the <b>File Properties</b> method will be removed automatically when the program is uninstalled, however shortcuts created with the <b>Create Shortcut</b> action will not be removed automatically.<br><br>In order to remove shortcuts created using a <b>Create Shortcut</b> action, a <b>Remove Shortcut</b> action must be used. The best way to accomplish this is to use a <b>Remove Shortcut</b> action on the "After Uninstalling" event. Using this method, here is the order of events that will occur during uninstall:<br><ul><li>Uninstall starts</li><li>Perform actions listed on the "Before Uninstalling" tab</li><li>Remove files installed by setup</li><li>Remove shortcuts created from File Properties</li><li>Remove folders created by setup</li><li>Other uninstall functions</li><li>Perform actions listed on the "After Uninstalling" tab</li><li>Uninstall shuts down</li></ul><b>Note:</b> Placing the <b>Remove Shortcut</b> action on the "Before Uninstalling" event will generally work as well as having them on the "After Uninstalling" event. Although it is recommended that the <b>Remove Shortcut</b> action be placed on the After Uninstalling tab to insure that all files are deleted before the shortcuts to them are.<br><br><b>Example:</b><br><br>Here is an example of an action that creates a shortcut in the Start Menu:<br><PRE><code><b>Folder:</b> %SCFolderPath%\Help<br><b>Shortcut description:</b> New Help Document<br><b>Target file:</b> %SrcDrv%\Docs\Help\NewHelp.chm<br><b>Command line arguments:</b><br><b>Working directory:</b><br><b>Icon index:</b> 0<br><b>Use external icon:</b> Unchecked<br><b>Run mode:</b> Normal</code></PRE>Since we created this shortcut with an action, we will have to remove it with a <b>Remove Shortcut</b> action on the "After Uninstalling" event. Here is the <b>Remove Shortcut</b> action that will accomplish this:<br><br><PRE><code><b>Folder:</b> %SCFolderPath%\Help<br><b>Shortcut description:</b> New Help Document</code></PRE>Notice that the <b>Folder</b> and <b>Shortcut description</b> fields for both actions are identical.<br><br>In general any <b>Create Shortcut</b> action should have a corresponding <b>Remove Shortcut</b> action on the "After Uninstalling" event to ensure that all shortcuts are uninstalled properly.<br></p><h3>MORE INFORMATION</h3><p>For more information please see the following topics in the Setup Factory 6.0 Help:<br><li><b>Command Reference | Actions | Individual Actions | Create Shortcut</b></li><li><b>Command Reference | Actions | Individual Actions | Remove Shortcut</b></li><li><b>Command Reference | Reference | How the Uninstall works</b></li><li><b>Command Reference | Design Environment | Dialogs | Uninstall | Uninstall Dialog</b></li><li><b>Command Reference | Design Environment | Dialogs | File Properties | Shortcut tab</b></li></p><p>KEYWORDS: Setup Factory, shortcuts, Create Shortcut, Remove Shortcut, uninstall</p><hr><FONT SIZE=1>Last reviewed: October 4, 2002<br>Copyright 2002 <A HREF="http://www.indigorose.com" target="blank">Indigo Rose Corporation</a>. All rights reserved.<br></FONT></BODY></HTML>