Page 1 of 1

NATIVE CODE: Shortcut not uninstalled

Posted: Tue Feb 01, 2011 7:06 am
by alibaba
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:

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
...
1. The problem is that the so created shortcuts are not being deleted on uninstall. What did I do wrong?

Thank you!

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Tue Feb 01, 2011 12:00 pm
by giaviv
Dear alibaba,

Please send your actual project and script to support at installaware.com and we will review it.

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Thu Feb 03, 2011 1:54 am
by alibaba
Done :)

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Fri Feb 04, 2011 6:00 pm
by giaviv
Dear alibaba,

I haven't received anything - could you please try sending it again to support at installaware.com?

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Mon Feb 07, 2011 2:02 am
by Justin
Hi Giaviv

Was a solution found to this problem, i appear to have run into this myself. I was using the native engine to be able to use variables in the shortcut name and when i come to uninstall it doesnt work.

Thanks

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Mon Feb 07, 2011 10:51 am
by giaviv
I am looking into this. I will let you guys know soon.

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Thu Feb 10, 2011 5:53 am
by alibaba
Sorry that I answer but now. I sent you the message again with a download link to my project file, hope you got it now.

You say it is resolved, how can I solve the problem?

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Fri Feb 11, 2011 7:16 pm
by giaviv
Dear alibaba,

I received your project. I have a quick question - why are you not using the Native Engine in your installer? Why are you switching to it just to install the shortcuts?

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Mon Feb 14, 2011 3:35 am
by alibaba
Yes I am using the MSI Engine cause I have not much experience with the Native Engine. Also the product manager will not change the whole (already working) setup project cause in this case we will have to take more time for testing.
I only would like to take advantage of the possobility to use icons for shortcuts on the target system. Thats why I only use native engine for the shortcuts. I think it is possible to switch between the two engines all the time, isn't it?

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Thu Mar 17, 2011 8:49 am
by alibaba
I could solve my problem with the missing icons for shortcuts. I now simply leave the icon path and index field empty and so the standard icon of the exe is of use. So I don't need native code for shortcuts anymore :)

Re: NATIVE CODE: Shortcut not uninstalled

Posted: Thu Mar 17, 2011 10:03 am
by giaviv
Dear alibaba,

Great! :)