NATIVE CODE: Shortcut not uninstalled
Posted: Tue Feb 01, 2011 7:06 am
Hi,
I have a normal setup, only the shortcuts are installed with native code to use icons on target system. Here is the code snippet:
1. The problem is that the so created shortcuts are not being deleted on uninstall. What did I do wrong?
Thank you!
I have a normal setup, only the shortcuts are installed with native code to use icons on target system. Here is the code snippet:
Code: Select all
...
Install Files O:\Medias\pCon_MSI_IAX\_data\p-pl6PRO\App\plugins\*.* to $TARGETDIR$\plugins, include subfolders
Install Files O:\Medias\pCon_MSI_IAX\_data\p-pl6PRO\App\updater\*.* to $TARGETDIR$\updater, include subfolders
Set Variable NATIVE_ENGINE to True
Create Shortcut $SHORTCUTFOLDER$\pCon.planner 6 Pro to $TARGETDIR$\bin\planner.exe
if Variable DESKTOP Equals 1
Create Shortcut $DESKTOPDIR$\pCon.planner 6 Pro to $TARGETDIR$\bin\planner.exe
WriteLog "create shortcut: $DESKTOPDIR$$TITLE$" to $LOGFILE$
end
if Variable QUICKLAUNCH Equals 1
Create Shortcut $SHORTCUTFOLDER$\pCon.planner 6 Pro to $TARGETDIR$\bin\planner.exe, Pin to Start Menu, Pin to Taskbar
WriteLog "create shortcut: $SHORTCUTFOLDER$pCon.planner6" to $LOGFILE$
end
Set Variable NATIVE_ENGINE to False
if Variable DWGEXTENSION Equals TRUE
Create File Type pCon.planner 6 Drawing File with extensions .DWG and associate with program $TARGETDIR$\bin\planner.exe
...
Thank you!