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
- :
- Re: Dynamically alter shortcut argument using a variable
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
‎Dec 04, 2009
07:40 PM
Dynamically alter shortcut argument using a variable
Hi,
I've scoured everywhere and I can't seem to find out how to set the Arguments section of a Shortcut via variable in InstallScript, or even by including a variable in the Arguments section of the Shortcuts configuration. All I get is the string representation of my variable name.
Anyone here that can help me?
thanks!
I've scoured everywhere and I can't seem to find out how to set the Arguments section of a Shortcut via variable in InstallScript, or even by including a variable in the Arguments section of the Shortcuts configuration. All I get is the string representation of my variable name.
Anyone here that can help me?
thanks!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 07, 2009
03:04 PM
If you're talking about an MSI-based installation, the Arguments column of the Shortcut Table is Formatted, meaning you can use a bracketed string to pull the value of [SOME_PROPERTY]. You can set such properties from InstallScript code by calling MsiSetProperty.
If instead you mean an InstallScript setup, you might want to investigate using AddFolderIcon from your script, or at least make sure to use angle brackets around your InstallScript. (It's unclear exactly what you've tried.)
If instead you mean an InstallScript setup, you might want to investigate using AddFolderIcon from your script, or at least make sure to use angle brackets around your InstallScript
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 08, 2009
12:43 PM
ok, so in my InstallScript project we had this:
szCommandLine =
szPrefix +
" -R..\\Support\\WebSupp.rsp " +
"-pCMsgBox.exe -s -C \"Web Update\" -M \"Your Web support files have been updated.|You may now re-start IIS.\"";
ComponentSetTarget( MEDIA, "", szCommandLine );
and you're saying I should be using AddfolderIcon instead of ComponentSetTarget? This was a project converted to InstallShield 2010 from Installshield Professional 6.1.
I will check it out, thanks for your response.
Yong
szCommandLine =
szPrefix +
" -R..\\Support\\WebSupp.rsp " +
"-pCMsgBox.exe -s -C \"Web Update\" -M \"Your Web support files have been updated.|You may now re-start IIS.\"";
ComponentSetTarget( MEDIA, "
and you're saying I should be using AddfolderIcon instead of ComponentSetTarget? This was a project converted to InstallShield 2010 from Installshield Professional 6.1.
I will check it out, thanks for your response.
Yong
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 08, 2009
06:22 PM
Michael,
That was exactly what I needed, thanks for the help.
That was exactly what I needed, thanks for the help.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)