Borgas
Posts: 56
Joined: Tue Jan 22, 2008 10:49 pm

[|ProductName] vs [ProductName]

I am trying to create Start Menu folders based on Instance name and I cant use [|ProductName].


[|ProductName] = Always unformated productname
[ProductName] = Current Instance name
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [|ProductName] vs [ProductName]

Hello,

Unfortunately this is not possible because the folders don't accept formatted property references in their names. The workaround to achieve what you want is this:
1. go to "Files and Folders" page and create a new start menu folder (MY_APP_MENU) under "Start Menu\Programs" folder
2. right click on the new created folder (MY_APP_MENU) and choose "Properties"; from the properties window copy the identifier set for the folder (usually something like MY_APP_MENU_Dir)
3. go to "Custom Actions" page and add a "Set installer property" action with sequence, scheduled after "Wizard Dialogs Stage -> Paths Resolution" action group, configured like this:
  • Property: MY_APP_MENU_Dir
    Value: ProgramMenuFolder[InstanceId]
Note: "ProgramMenuFolder" is the identifier property of the "Programs" folder from "Files and Folders" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”