I am having a heck of a time getting the most recent install to remove old shortcuts. They remove from the desktop without any issue, but will not remove from the start menu. I have tried using both with and without the COMMON. I have also used Cut/Paste for the program name so I don't have any typo, spacing, etc issue. It IS creating the new shortcut in the proper location. Here are the lines which are in the PreInstall section:
Shell.DeleteShortcut(Shell.GetFolder(SHF_DESKTOP), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU _COMMON), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS_COMMON), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU ), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS), "MyProgramName is in here version xx");
Also, the log is turned on but there are no listing for the DeleteShortcut. I do get at the end:
Notice Exit setup process (Return code: 5)
Any suggestion will be greatly appreciated.
Shell.DeleteShortcut(Shell.GetFolder(SHF_DESKTOP), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU _COMMON), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS_COMMON), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU ), "MyProgramName is in here version xx");
Shell.DeleteShortcut(Shell.GetFolder(SHF_STARTMENU PROGRAMS), "MyProgramName is in here version xx");
Also, the log is turned on but there are no listing for the DeleteShortcut. I do get at the end:
Notice Exit setup process (Return code: 5)
Any suggestion will be greatly appreciated.
Comment