This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Changing shortcut display name at run time
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2017
09:07 PM
Changing shortcut display name at run time
I want to change the shortcut display name at run time based on a property supplied by IsCmdBld.
The display name has to be a string, but as far as I can tell, strings can't be changed at install time -- I've tried "Program Name [SHORTCUT_NAME]" and it creates a shortcut with that literal name instead of replacing [SHORTCUT_NAME] with the appropriate property.
Is there a way to change the shortcut display name (or any other values in the string table) at run time?
The display name has to be a string, but as far as I can tell, strings can't be changed at install time -- I've tried "Program Name [SHORTCUT_NAME]" and it creates a shortcut with that literal name instead of replacing [SHORTCUT_NAME] with the appropriate property.
Is there a way to change the shortcut display name (or any other values in the string table) at run time?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2017
01:54 PM
The "Display Name" in InstallShield maps to the "Name" field in MSI Shortcuts
https://msdn.microsoft.com/en-us/library/windows/desktop/aa371847(v=vs.85).aspx
It is a Filename data type and thus you cannot embed a Property to resolve to a value at runtime.
You would need a Formatted data type in order to do that. Such as Arguments. You can use a Property in a Formatted data type but not in a Filename data type.
The Formatted data type is a text string that is processed to resolve embedded property names, table keys, environment variable references, and other special substrings. The following conventions are recognized to resolve the string:
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2017
11:57 AM
I ended up creating different components for each shortcut and filtering them based on a property. See http://forum.installsite.net/index.php?showtopic=22031
