NATIVE CODE: Shortcut not uninstalled

Got a problem you cannot solve? Try here.
Post Reply
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

NATIVE CODE: Shortcut not uninstalled

Post 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!
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: NATIVE CODE: Shortcut not uninstalled

Post by giaviv »

Dear alibaba,

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

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: NATIVE CODE: Shortcut not uninstalled

Post by alibaba »

Done :)
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: NATIVE CODE: Shortcut not uninstalled

Post by giaviv »

Dear alibaba,

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

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Justin
Posts: 16
Joined: Wed Jan 12, 2011 3:40 am

Re: NATIVE CODE: Shortcut not uninstalled

Post 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
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: NATIVE CODE: Shortcut not uninstalled

Post by giaviv »

I am looking into this. I will let you guys know soon.
Last edited by giaviv on Thu Feb 10, 2011 4:34 pm, edited 1 time in total.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: NATIVE CODE: Shortcut not uninstalled

Post 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?
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: NATIVE CODE: Shortcut not uninstalled

Post 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?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: NATIVE CODE: Shortcut not uninstalled

Post 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?
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: NATIVE CODE: Shortcut not uninstalled

Post 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 :)
Last edited by alibaba on Fri Mar 18, 2011 6:21 am, edited 1 time in total.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: NATIVE CODE: Shortcut not uninstalled

Post by giaviv »

Dear alibaba,

Great! :)
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply