PDA

View Full Version : Carriage return (\n) in string



Ryan A
11-23-2005, 12:01 PM
I'm trying to update the welcome dialog so that it reads:

Welcome to the InstallShield Wizard for [ProductName]
[ProductEdition]

Here is what I have run into so far.

Using the original string "Welcome to the InstallShield Wizard for %P", if I add a \n to the end, everything after it gets cut off, even though the text will wrap fine if it gets too long - this was submitted as a bug but who knows when it will get fixed.

If I edit the dialog and map it to the string Ids_Welcome_etc..., then it doesn't evaluate the [ProductName] property or any other property I put in the string.

If I try to build the string in installscript and pass it in through the SdWelcome function, it again cuts everything off after the \n.

And I can't just hardcode a string under the welcome string because the edition is different for each of my releases.

Any ideas?

Thanks,
Ryan