How to use a property in a shortcut name - 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!

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

How to use a property in a shortcut name

Before installing, I allow the user to enter an 'instance name' and then I use that in the folder I install into. So, if the user enters 'foo', I install to somethinng like this:

C:\Program Files\MyApp (foo)\

Similarly, I want to name my shortcut 'MyApp (foo)'. But, It seems like the name of the shortcut is not getting resolved at runtime, and only gets resolved as compile time.

Thanks for any/all suggestions.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: How to use a property in a shortcut name

Hello Steve,

Unfortunately Windows Installer does not support this behavior. However this can still be achieved using vbscript.
I have attached a sample project. You can edit the vbscript in the marked section to customize it to your needs.

Best regards,
Gabriel
Attachments
sample.zip
(204.55 KiB) Downloaded 312 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”