Using 3.5 and I just want a newline character in my Text Element:
<Dialog><Control><Text>
The [Wizard] will install [ProductName]
on your computer.
Click Next to continue or Cancel to exit the [Wizard].
</Text></Control>....
That does not seem to insert a new line character. How can I get a linebreak in there?
Thanks.
Unfortunately Windows Installer doesn’t support line breaks in static text controls. During installation the text is automatically formatted based on control and font sizes.
However, if you really want a line break, simply use another static text control for the next line.
The official answer from Microsoft regarding line breaks in Text controls reads as follows:
The recommended method for displaying text with specified line breaks is to use multiple one-line text controls located below each other. The character sequences \n, \r\n, or \n\r in the text field for the control are not displayed as a line break. These character sequences are literally displayed by the control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With