PDA

View Full Version : Replace existing desktop shortcut - problem



NewsArchive
01-15-2016, 12:32 PM
A client asked for the app version number in the desktop shortcut text so I
checked that the option for Replace existing shortcut is set. Now the result
is a new additional desktop shortcut after each update. What do I do to fix
this (other than telling the client to delete previous shortcuts on his
desktop)? My guess is that ALL the shortcuts are also accumulaing!)

Sim

NewsArchive
01-15-2016, 12:33 PM
Sim,

> A client asked for the app version number in the desktop shortcut text
> so I checked that the option for Replace existing shortcut is set. Now
> the result is a new additional desktop shortcut after each update. What
> do I do to fix this (other than telling the client to delete previous
> shortcuts on his desktop)? My guess is that ALL the shortcuts are also
> accumulaing!)

A Shortcut (.lnk) is nothing more than a file. So if you add a version
number to the Shortcut file name and this number changes from build to build
then you do not really "replace" the Shortcut but you always add a new one.

What you have to do in this case is to use the "Delete File(s)..." script
function to remove the previous Shortcut(s).

Friedrich