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 311 times
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”