Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WiX Simple Line Break?

Tags:

string

wix

Using 3.5 and I just want a newline character in my Text Element:

<Dialog><Control><Text>
    &#13;&#10;The [Wizard] will install [ProductName]
    &#13;&#10;on your computer.
    &#13;&#10;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.

like image 206
Snowy Avatar asked Mar 08 '26 08:03

Snowy


2 Answers

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.

like image 93
rmrrm Avatar answered Mar 10 '26 23:03

rmrrm


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.

like image 35
Louis Pellerin Avatar answered Mar 11 '26 00:03

Louis Pellerin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!