Don't overwrite existing shortcuts? - 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!

rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Don't overwrite existing shortcuts?

Hi:

I have included the shortcuts dialog & defined three shortcuts in the installer. If the shortcut checkboxes are selected, they're installed OK and if they're unselected an existing shortcut is removed.

The problem is that some of my users have customized their shortcuts after the initial installation and an update causes the shortcut to be overwritten, forcing them to redo the shortcut each time.

Is there a way to tell AI to use an existing shortcut & not overwrite it with a new one?

Thanks.

Rex Conn
JP Software
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rex,

Please see following tutorial:
http://www.advancedinstaller.com/user-g ... -file.html

Hope this helps. Let me know if you encounter any problems.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
rconn
Posts: 70
Joined: Sat Mar 03, 2007 5:38 pm

Hi Gigi:

I'm not clear about that tutorial -- the problem is that the installer is overwriting the shortcut (.lnk file). Do I need to create a custom action to save the .lnk file before installation & restore it afterwards?

One of the my apps is a console mode application that has a lot of extra properties for the buffer & window size; those are getting lost when the app is updated.

Rex Conn
JP Software
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Rex,
Do I need to create a custom action to save the .lnk file before installation & restore it afterwards?
Yes, you need to create a custom action to backup and other to restore the shortcuts to the original location. This is similar to this tutorial:
http://www.advancedinstaller.com/user-g ... le-ca.html

Other solution will be to create external shortcuts, move them to a dummy component and mark them as permanent and never overwrite. To delete them only on uninstall (not on upgrade) you can use a simple custom action scheduled under "InstallFinalize" with (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)) as "Execution Condition".

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”