Reputation: 1749
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:
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)
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.
Banners don't show at all, and License agreement won't show at all!
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)
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
License issue was fixed by saving rtf using Word Pad
Upvotes: 1
Views: 542
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:
WixUI_Minimal
set. This problem
typically only occurs when the license agreement screen is the
first one displayed during setup, which only happens with theWixUI_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