View Full Version : Remove shortcuts from desktop and Start Programs?
alexzfirm
07-19-2007, 07:32 PM
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
alexzfirm
07-23-2007, 11:54 AM
Any script samples please? Is there a "Shell.DeleteShortcut" function or something like that?
Brett
07-23-2007, 12:52 PM
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.
alexzfirm
07-23-2007, 01:05 PM
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"
That should work. Thank you!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.