HOWTO: Uninstall a Shortcut Created with Actions
Document ID: IR02008The information in this article applies to:
- Setup Factory 6.0
SUMMARY
This article explains shortcut creation and how to remove shortcuts created by actions.
DISCUSSION
There are two ways to create shortcuts in Setup Factory 6.0. The first is through File Properties and the second is by using a Create Shortcut action. All shortcuts created using the File Properties method will be removed automatically when the program is uninstalled, however shortcuts created with the Create Shortcut action will not be removed automatically.
In order to remove shortcuts created using a Create Shortcut action, a Remove Shortcut action must be used. The best way to accomplish this is to use a Remove Shortcut action on the "After Uninstalling" event. Using this method, here is the order of events that will occur during uninstall:
- Uninstall starts
- Perform actions listed on the "Before Uninstalling" tab
- Remove files installed by setup
- Remove shortcuts created from File Properties
- Remove folders created by setup
- Other uninstall functions
- Perform actions listed on the "After Uninstalling" tab
- Uninstall shuts down
Example:
Here is an example of an action that creates a shortcut in the Start Menu:
Folder: %SCFolderPath%\Help
Shortcut description: New Help Document
Target file: %SrcDrv%\Docs\Help\NewHelp.chm
Command line arguments:
Working directory:
Icon index: 0
Use external icon: Unchecked
Run mode: Normal
Since we created this shortcut with an action, we will have to remove it with a Remove Shortcut action on the "After Uninstalling" event. Here is the Remove Shortcut action that will accomplish this:Folder: %SCFolderPath%\Help
Shortcut description: New Help Document
Notice that the Folder and Shortcut description fields for both actions are identical.In general any Create Shortcut action should have a corresponding Remove Shortcut action on the "After Uninstalling" event to ensure that all shortcuts are uninstalled properly.
MORE INFORMATION
For more information please see the following topics in the Setup Factory 6.0 Help:
KEYWORDS: Setup Factory, shortcuts, Create Shortcut, Remove Shortcut, uninstall
Last reviewed: October 4, 2002
Copyright © 2002 Indigo Rose Corporation. All rights reserved.