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

ShortCut name cannot evaluate the [ProductVersion] constant

I need to define a shortcut to an exe in my desktop, and that shortcut needs to have a name of the format [ProductName][ProductVersion] (e.g., "My App 1.0.2.0"). I tried to set the "Name" in the new shortcut dialog box as "My App [ProductVersion]". However, the shortcut name I got was "My App [ProductVersion]", but not "My App 1.0.2.0". Please advice here.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Currently this cannot be done in Advanced Installer. However, this feature is on our TODO list and it will be available in a future version of Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fd1
Posts: 21
Joined: Fri Sep 02, 2005 8:12 pm

You can create a custom action of type EXE with Working Dir in the Commit stage for example and use a command line to rename your shortcut:

Working Dir=SystemFolder
Full Path=cmd.exe /Q /C "ren "C:\Documents and Settings\All Users\Start Menu\Programs\My App" "[ProductName]""[ProductVersion]""
Daniela Petrescu
Posts: 30
Joined: Tue Aug 14, 2007 10:03 am

Hi,

This feature has been added to Advanced Installer 6.1.
You can now name a shortcut using properties e.g.

Code: Select all

"[|ProductName] [|ProductVersion]" => "My App 1.0.2"
Note that the shortcut name is of pseudo formatted type, so you must use "[|...]" to refer a property.

You can read more about latest features added to Advanced Installer 6.1 on http://www.advancedinstaller.com/release-6.1.html.

Regards,
Daniela
_________________
Daniela Petrescu
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”