Search code examples
wixwix3windows-installerwix3.8

How can I change the width of the Textbox in the header?


We are using Wix Toolset 3.11 to build an .msi. We use a banner that contains our company logo:

<WixVariable Id="WixUIBannerBmp" Value="Banner.bmp"/>

The Problem: Our logo has a width of 130px. In some Dialogs, the text in the header is too long and collides with the Logo:

enter image description here

Question: How can we limit the width of the textbox in the header so that the text will break into the next line?


Solution

  • In your .wxl File add an UI-Element and set the width of the Description control for a dialog:

    <WixLocalization>
        [...]
        <UI Dialog="InstallDirDlg" Control="Description" Width="whatever, default 280"/>
    </WixLocalization>
    

    Instead of the Description control you also can change the width of the Title control.

    How to customize UI Dialogs in Wix to modify location/size of Labels

    If you want your text to wrap in the control, be sure to set also the Height attribute large enough. E.g. to double the height of the above control, set Height="30".