Overriding banner images in Wix 3.5 Wixlib does not work in MSI

I use several articles and other questions to override the banner bitmaps for binary wixlib, which I use in 20+ other installers. This library provides its own user interface, some user dialogs, shared resources, binaries, user actions, etc.

Here is the code I use in wixlib to override images:

<Binary Id="WixUI_Bmp_Banner" SourceFile="Bitmaps\bnnrbmp.bmp/> <Binary Id="WixUI_Bmp_Dialog" SourceFile="Bitmaps\dlgbmp.bmp/> 

But when I refer to my wixlib in my actual MSI project, everything works, except for overriding the UI banner image (my user launch dialogs, process work, shared binaries are installed, etc.). Is there anything special I need to do in my wixlib binary project to override the default UIExtension.wixlib images in my own wixlib binary?

I saw this question here: Can I install WixUiBannerBmp in wixlib? However, the answer to this question did not answer the question, it was directly related to the icon, and I'm not sure if this guy used binary wixlib (redistributable). My add / remove programs icon built into wixlib already works fine.

+8
wix wixlib
source share
1 answer

Images are set using bind time variables, not binary elements. Your .wixlib may contain variable values. Approach used in Can WixUiBannerBmp be installed in wixlib? doesn't use .wixlib, but otherwise the same. (A.wixlib is just a collection of .wixobj files.)

The WiX help file documents the variables in "Configuring WixUI Embedded Dialog Sets":

Replacing default bitmaps

The WixUI dialog box library includes default bitmaps for the background of the welcome and completion dialog boxes and the top banner of other dialogs. You can replace these bitmaps with your own for branding a product. To replace the default bitmaps, specify the WiX variable with the file names of your bitmaps, as if replacing the default license text.

Example:

 <WixVariable Id="WixUIBannerBmp" Value="banner.bmp" /> <WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" /> 
+14
source share

All Articles