cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
heiner_violet
Level 7

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
Labels (1)
0 Kudos
(3) Replies
heiner_violet
Level 7

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.
0 Kudos
m_rudolph
Level 6

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.
0 Kudos
heiner_violet
Level 7

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
0 Kudos