Indigo Rose Software
  #1  
Old 09-25-2002
Support Support is offline
Super Moderator
 
Join Date: Jan 2000
Location: Indigo Rose Corporation
Posts: 204
HOWTO: Uninstall a Shortcut Created with Actions

HOWTO: Uninstall a Shortcut Created with Actions

HOWTO: Uninstall a Shortcut Created with Actions

Document ID: IR02008
The 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
Note: Placing the Remove Shortcut 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 Remove Shortcut action be placed on the After Uninstalling tab to insure that all files are deleted before the shortcuts to them are.

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:

  • Command Reference | Actions | Individual Actions | Create Shortcut
  • Command Reference | Actions | Individual Actions | Remove Shortcut
  • Command Reference | Reference | How the Uninstall works
  • Command Reference | Design Environment | Dialogs | Uninstall | Uninstall Dialog
  • Command Reference | Design Environment | Dialogs | File Properties | Shortcut tab
  • KEYWORDS: Setup Factory, shortcuts, Create Shortcut, Remove Shortcut, uninstall


    Last reviewed: October 4, 2002
    Copyright © 2002 Indigo Rose Corporation. All rights reserved.
     

    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is On



    All times are GMT -6. The time now is 05:42 PM.


    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
    Indigo Rose Software