Hi,
using SU 8.1.1006.0
creating a shortcut in On Post Install:
Delete the shortcut in On Post Uninstall:Code:-- Add Shortcut to "Startmenu\Bug ShellDeleteShortcut\ToBeDeleted" local strFolder, strDesc, strTarget -- Startmenu\Bug ShellDeleteShortcut\ToBeDeleted strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderName%\\ToBeDeleted"); strDesc = "TheDesc"; strTarget = SessionVar.Expand("%SystemFolder%\\notepad.exe"); Shell.CreateShortcut(strFolder, strDesc, strTarget);
The shortcut is deleted, but the folder path "Startmenu\Bug ShellDeleteShortcut\ToBeDeleted" ist still avail. I also tried UninstallData.AddItem(UNINDATA_SHORTCUTS, tItemData) with the same result.Code:-- delete shortcut local strFolder, strDesc, strTarget strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderName%\\ToBeDeleted"); strDesc = "TheDesc"; Shell.DeleteShortcut(strFolder, strDesc);
Do I have to delete the folder path manually by myself? In my opinion a setup should uninstall what it has installed. Only if I set a special script checker "leave it", it should remain installed on the computer.
Yes, I also noticed this IR stuff posts http://www.indigorose.com/forums/sho...DeleteShortcut and http://www.indigorose.com/forums/showthread.php?t=4997
Any idea would be appreciated.
Best regards,
Udo

