Use WixUIBannerBmp in my custom dialog

In my installer, I installed WixUIBannerBmp to point to my own dialog-banner.bmp .
Now I have added a special dialog that would like to have the same banner as in other dialogs.

Is there a way to reference an existing WixUIBannerBmp?

A workaround would be to create a binary file containing the image and access it. But it does not seem to be necessary.

/ l

+4
source share
1 answer

I think you just need to use this in your dialogue definition:

 <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="!(loc.InstallDirDlgBannerBitmap)"/> 

When I need to create a user dialog, I just copy one of the standard dialogs from wix sources and adapt it to my needs. All these controls have the above line, and I never had to do anything extra so that the banners in my custom dialogs were the same as for the rest.

+6
source

Source: https://habr.com/ru/post/1305927/


All Articles