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
- :
- string table, placeholder
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 14, 2007
04:40 AM
string table, placeholder
Hello,
I'm using Installshield 2008, Basic-Msi.
In the String table (beneath General Information), how can I define a string with a placeholder, and how can I reference to this string in an Installscript CA?
In the string table I saw something like the following:
Identifier: IDS_STRING
Value: Resource [1] not available.
Usually I would reference to this string by @IDS_STRING, but how to fill the value for [1]?
Thanks for any hint. H
I'm using Installshield 2008, Basic-Msi.
In the String table (beneath General Information), how can I define a string with a placeholder, and how can I reference to this string in an Installscript CA?
In the string table I saw something like the following:
Identifier: IDS_STRING
Value: Resource [1] not available.
Usually I would reference to this string by @IDS_STRING, but how to fill the value for [1]?
Thanks for any hint. H
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2007
06:37 AM
I could give the answer for myself:
string table:
Identifier: IDS_STRING
Value: Resource %s not available.
InstallScript:
Sprintf( msg, @IDS_STRING, "Test" );
// msg has the value "Resource Test not available."
H.
string table:
Identifier: IDS_STRING
Value: Resource %s not available.
InstallScript:
Sprintf( msg, @IDS_STRING, "Test" );
// msg has the value "Resource Test not available."
H.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 14, 2007
10:12 AM
I think you can set the strings value to something like in the String Table.
In your script:
TextSubSetValue ("", "Whatever Strings Value Is", TRUE);
Then you just use wherever you want "Whatever Strings Value Is".
I don't know much about MSI's though, so I don't know if this is what you mean or if it works with custom actions.
In your script:
TextSubSetValue ("
Then you just use
I don't know much about MSI's though, so I don't know if this is what you mean or if it works with custom actions.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 16, 2007
03:11 PM
Thanks for your reply,
I meant something different. I was looking for a way to put some data (like a counter, the current date etc.) to a string referenced in the string table. I found the answer.
Greetings, H
I meant something different. I was looking for a way to put some data (like a counter, the current date etc.) to a string referenced in the string table. I found the answer.
Greetings, H
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)