gbdavid
gbdavid

Reputation: 1749

Wix UIMinimal dialogue not showing image

I did the following setup for custom banner / dialog image and license text:

    <UI>
      <Publish Dialog="ExitDialog"
        Control="Finish" 
        Event="DoAction" 
        Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1</Publish>
      <UIRef Id="WixUI_Minimal" />
    </UI>
    
    <WixVariable Id="WixUILicenseRtf" Value="LicenseAgreement.rtf" />
    <WixVariable Id="WixUIBannerBmp" Value="My banner.png" />
    <WixVariable Id="WixUIDialogBmp" Value="My dialog.png" />

I see strange behaviours happening for both Windows 7 and Windows 10 installers:

Windows 10

Banner and dialog display OK (correct image is a background image with left side black and right side white), but license agreement has a weird behaviour. As shown in first picture, License agreement is just a white space, but if you try to select over it, the text shows up (second picture)

enter image description here

enter image description here

If you scroll all over it and deselect it will show all the license agreement fine but only after doing this, and not when initially starting the installer. Every single time you start the installer it will show a white screen and you'll have to do the selection or scrolling to reveal the text.

Windows 7

Banners don't show at all, and License agreement won't show at all!

enter image description here

However, after selecting text on licence agreement at least licence agreement will show, but it's still unexpected (it should show by default and not after you select / scroll)

enter image description here

enter image description here

Is there anything wrong with the images / text ? I just created a plain rtf file with the license agreement. And the images are pngs which I assume Wix converts / resizes to the correct format

Update:

License issue was fixed by saving rtf using Word Pad

Upvotes: 1

Views: 542

Answers (1)

Pavel Anikhouski
Pavel Anikhouski

Reputation: 23238

Seems like, there is a known issue with rich text control and your license. According WiX documentation, one of the following workarounds will fix it in most cases:

  • Open your RTF file in WordPad and save it from there in order to remove the complex RTF content from the file. After saving it, rebuild your MSI.
  • Use a dialog set other than the WixUI_Minimal set. This problem typically only occurs when the license agreement screen is the first one displayed during setup, which only happens with the
    WixUI_Minimal dialog set.

As for the images, MSI bitmap control supports only BMP and JPEG files, PNG is supported starting from Windows 8, according to MSI bitmap control

Upvotes: 3

Related Questions