Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

HOWTO: Uninstall a Shortcut Created with Actions

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X