SetupJuggler
12-17-2008, 11:00 AM
Hi,
using SU 8.1.1006.0
creating a shortcut in On Post Install:
-- Add Shortcut to "Startmenu\Bug ShellDeleteShortcut\ToBeDeleted"
local strFolder, strDesc, strTarget
-- Startmenu\Bug ShellDeleteShortcut\ToBeDeleted
strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderNam e%\\ToBeDeleted");
strDesc = "TheDesc";
strTarget = SessionVar.Expand("%SystemFolder%\\notepad.exe");
Shell.CreateShortcut(strFolder, strDesc, strTarget);
Delete the shortcut in On Post Uninstall:
-- delete shortcut
local strFolder, strDesc, strTarget
strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderNam e%\\ToBeDeleted");
strDesc = "TheDesc";
Shell.DeleteShortcut(strFolder, strDesc);
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.
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/showthread.php?t=23685&highlight=Shell.DeleteShortcut and http://www.indigorose.com/forums/showthread.php?t=4997
Any idea would be appreciated.
Best regards,
Udo
using SU 8.1.1006.0
creating a shortcut in On Post Install:
-- Add Shortcut to "Startmenu\Bug ShellDeleteShortcut\ToBeDeleted"
local strFolder, strDesc, strTarget
-- Startmenu\Bug ShellDeleteShortcut\ToBeDeleted
strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderNam e%\\ToBeDeleted");
strDesc = "TheDesc";
strTarget = SessionVar.Expand("%SystemFolder%\\notepad.exe");
Shell.CreateShortcut(strFolder, strDesc, strTarget);
Delete the shortcut in On Post Uninstall:
-- delete shortcut
local strFolder, strDesc, strTarget
strFolder = SessionVar.Expand("%StartProgramsFolderCommon%\\%AppShortcutFolderNam e%\\ToBeDeleted");
strDesc = "TheDesc";
Shell.DeleteShortcut(strFolder, strDesc);
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.
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/showthread.php?t=23685&highlight=Shell.DeleteShortcut and http://www.indigorose.com/forums/showthread.php?t=4997
Any idea would be appreciated.
Best regards,
Udo