Creating ShortCut Based On Instance Name - Advanced Installer Community
GovardhanaReddy
Posts: 12
Joined: Mon Oct 28, 2013 10:43 am

Creating ShortCut Based On Instance Name

For multiple instances feature, Creating a shortcut on desktop always creating for first instance only and the shortcut name was not resolving at installation time.

We tried Configuring the shortcut name like the one mentioned in the below attachment.

Thanks for your support
Attachments
ShortcutProblem.png
ShortcutProblem.png (22.94 KiB) Viewed 2316 times
Last edited by GovardhanaReddy on Mon Nov 11, 2013 12:51 pm, edited 2 times in total.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Creating ShortCut Based On Instance Name

Hello,

Indeed, the shortcut file's name field is of pseudoformatted type. Unfortunately the limitation is in Windows Installer. The Name field in the Shortcut table needs to be a filename, which is basically a text string.
Therefore, a shortcut name cannot be modified during the installation (it is set when the package is created).

However, you can try using a custom action to rename the shortcut after it is created. You can find some sample VBScript code here. Please note that in this case the custom action should be scheduled under "InstallExecuteSequence" -> "InstallFinalize".

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”