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
- :
- Automation Interface, shortcut display name
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
Sep 10, 2008
09:51 AM
Automation Interface, shortcut display name
Hello,
I have some problems when I'm trying to create a new shortcut with the automation interface.
Actually, the creation is working, but I'm not able to set the DisplayName property to an already set string ID.
Set oShortcut = oFolder.AddShortcut("SHORTCUT_" & stringID)
With oShortcut
.Arguments = args
.DisplayName = "MY_ShortcutName"
.target = destination & Mid(fileName, InStrRev(fileName, "\") + 1)
End With
In this code DisplayName property will create a new string ID (for ex ID_STRING38 = "MY_ShortcutName". But I want to set the DisplayName to string ID "My_ShortcutName" which already exists for multiple languages.
I've tried "##MY_ShortcutName##", "{MY_ShortcutName}", "[MY_ShortcutName]" but none is working.
Do you know any way to set DisplayName to a known string ID?
Please Help!
Thank you
I have some problems when I'm trying to create a new shortcut with the automation interface.
Actually, the creation is working, but I'm not able to set the DisplayName property to an already set string ID.
Set oShortcut = oFolder.AddShortcut("SHORTCUT_" & stringID)
With oShortcut
.Arguments = args
.DisplayName = "MY_ShortcutName"
.target = destination & Mid(fileName, InStrRev(fileName, "\") + 1)
End With
In this code DisplayName property will create a new string ID (for ex ID_STRING38 = "MY_ShortcutName". But I want to set the DisplayName to string ID "My_ShortcutName" which already exists for multiple languages.
I've tried "##MY_ShortcutName##", "{MY_ShortcutName}", "[MY_ShortcutName]" but none is working.
Do you know any way to set DisplayName to a known string ID?
Please Help!
Thank you
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 11, 2008
01:45 PM
At this time, you need to use Windows Installer API instead of Automation Interface in order to accomplish it. Please refer to this thread for a sample code.