View Full Version : Shortcuts - Overwriting or Deleting
NewsArchive
04-27-2007, 02:23 AM
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
NewsArchive
04-27-2007, 02:30 AM
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
NewsArchive
04-27-2007, 10:02 AM
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
NewsArchive
04-27-2007, 10:02 AM
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
NewsArchive
04-28-2007, 08:03 AM
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
NewsArchive
04-28-2007, 08:03 AM
Thank you Friedrich,
I could never, ever have figured it out.
See my private email response.
Michael
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.