Shorcut missing in Application Shortcut folder - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Shorcut missing in Application Shortcut folder

I found that if the targets of the shortcuts in Application Shortcut folder are missing, then the shortcuts will disappear all together.

This is not a desire behavior.

Let say, if I have placed a shortcut to an exe in my application directory, then, for certain reasons, I need to edit the AIP file in other computer that does not have the application directory, then I will not be able to retrieve the shortcut anymore. So when I check-in my AIP file, the new AIP file will no longer contain a shortcut to the exe. This will cause great confusion!

A better way of handling this situation is to put a question mark in front of the unavailable shortcuts, so that when I merged back the AIP file, in the build machine I still have reference to the shortcuts.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens because the the shortcut is placed in the same component as it's target. Therefore, when you delete the target, the shortcut will also be removed.

If you need a shortcut to a target that may or may not exists then you can create a shortcut to an External File. This shortcut will have the "Shortcut Target" field set to "[APPDIR]target.exe" (for example) and it will remain in the project even if it's target is deleted.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

cosmin wrote:Hi,

This happens because the the shortcut is placed in the same component as it's target. Therefore, when you delete the target, the shortcut will also be removed.

If you need a shortcut to a target that may or may not exists then you can create a shortcut to an External File. This shortcut will have the "Shortcut Target" field set to "[APPDIR]target.exe" (for example) and it will remain in the project even if it's target is deleted.

Regards,
Cosmin
I see, thank you for your help

Return to “Common Problems”