Results 1 to 6 of 6

Thread: Shortcuts - Overwriting or Deleting

  1. #1

    Default Shortcuts - Overwriting or Deleting

    I have an update that needs to change the EXE file that an already installed
    shortcut refers to.

    I use the "Replace Existing Shortcut" checkbox and the name of the shortcut
    in the new build is identical to one already on the computer.....including
    the group name. The prior EXE file reference remains and the new EXE is not
    referenced.

    I also couldnot find any script expression to delete a shortcut.

    Suggestions appreciated,

    Thanks,

    Michael

  2. #2

    Default Re: Shortcuts - Overwriting or Deleting

    Michael,

    You only need the "Replace Existing Shortcut" option if something in the
    Shortcut changes. For example, Shortcut name, command line parameters, the
    ..exe name, etc.

    If the exe name in your update does not change, there is no need to replace
    an existing Shortcut.

    BTW, a shortcut is nothing more or less than a file. You can use the
    "Delete Local File(s)" script function to delete a shortcut.

    Does this help?

    Friedrich

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3

    Default Re: Shortcuts - Overwriting or Deleting

    I am changing the file name that the shortcut refers to so I think the
    "Replace Existing Shortcut" checkbox should be handling that.

    But the shortcut was not changed.

    I also inserted the script function to delete a file and that did not work
    either.

    The prior installation was done with SB5.x so I'm not sure if that makes any
    difference.

    I also copied the shortcut name exactly.

    Becuse the delete file script didn't delete the file I wanted it to I think
    something
    odd is happening here.

    Mike

  4. #4

    Default Re: Shortcuts - Overwriting or Deleting

    Michael,

    Just tested this with SetupBuilder 6.5 (Pro and Dev) on Windows 2000, XP SP2
    and Vista and it worked fine.

    I have "Replace Existing Shortcut" set to "Yes" and it replaced the target
    value. The original install pointed to test1.exe, after installing the
    update it pointed to test2.exe.

    Project format does not make a difference. To be on the safe side, I c
    converted a SB5.0 project to SB6.5, recompiled, and same result. It updated
    the shortcut on all machines.

    If you are interested, you can send the script and I'll check this here.

    Friedrich

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  5. #5

    Default Re: Shortcuts - Overwriting or Deleting

    See private email.

    1. You are trying to rename an non-existing file.
    2. Original installation (done with SB4) Shortcuts are under Current User,
    your new installation Shortcuts (done with SB65) are under All Users.

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  6. #6

    Default Re: Shortcuts - Overwriting or Deleting

    Thank you Friedrich,

    I could never, ever have figured it out.

    See my private email response.

    Michael

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •