steveschoon
Posts: 5
Joined: Tue Jul 07, 2009 6:33 am

How to install desktop shortcut via a separate feature

I can create the desktop shortcut no problem, but I am not able to assign that particular shortcut to it's own optional feature. When I'm in the Deployment->Organization screen, the shortcuts seem 'bound' to the component for the .EXE that the shortcut is pointing to. I'd like to assign it to it's own separate 'Create Desktop Shortcut' feature that is optionally installed.

Any idea? I'm using AI 7.5.1.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to install desktop shortcut via a separate feature

Hi,

This is the Windows Installer default behavior, i.e. to place the shortcut in the same component as the target EXE file.

If you wish to condition the installation of the shortcut you can use a custom action to create it and not create it from the
Files and Folders page. You can use as a custom action a VBScript, JavaScript or DLL file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to install desktop shortcut via a separate feature

Hi,

To complete my previous post, another solution would be for you to create a shortcut to an external file.
This shortcut will not be forced to the same component as the previous one so you can move it anywere you want.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”