There are bunch of options of creating shortcuts, but I do not see how can I remove shortcuts that become obsolete...
Any ideas or script samples?
Thank you
Professional Software Development Tools
There are bunch of options of creating shortcuts, but I do not see how can I remove shortcuts that become obsolete...
Any ideas or script samples?
Thank you
Any script samples please? Is there a "Shell.DeleteShortcut" function or something like that?
You can do that using a Remove Files action from the installer itself. See the attached project. It removes a shortcut called "My Old Notepad" from the Start > Programs > My Notepad group during installation. The secret is just to delete the file <shortcut name>.lnk. For example, "My Old Notepad.lnk".
If you want to do it from the bootstrapper using a script, see the Shell.DeleteShortcut action. Although in this case I would reccomend doing it directly from the MSI installer assuming that you know the name of the file.