Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use .png images for WiX bitmaps

I am using 2 500K bitmaps in to display images on my WiX dialogs.

They dramatically increase the size of the installation package, and what is worse - it looks there's no way to package them as a part of a .cab file since they're <binary>-es in the WiX terms.

So, I thught, is there any way to use other file formats for bitmaps or WiX is tethered with BMP? Ideally it would be greate if there's a way to use .png format since it comes with a looseless compression option.

like image 944
user48829 Avatar asked Dec 25 '08 09:12

user48829


3 Answers

The Windows Installer documentation for the Bitmap control states that the image should be a "bitmap" -- presumably a .BMP file -- or a JPEG.

You have to remember, when working with WiX, that it's based on Windows Installer. This means that any limitations in WiX are often caused by limitations in the underlying Windows Installer implementation.

.BMP files can be RLE-compressed. I don't know if they support any other compression algorithms.

like image 146
Roger Lipscombe Avatar answered Oct 15 '22 17:10

Roger Lipscombe


The WiX toolset isn't tethered to BMP and JPG. As you've found you could put any of those other image formats into your package. However, the MSI SDK only documents BMP and JPG support.

like image 20
Rob Mensching Avatar answered Oct 15 '22 16:10

Rob Mensching


Yes, if you only need to install on Windows 8 or later. From Bitmap Control:

Windows 8 and Windows Server 2012: The image file can be in any standard format supported by the Windows Imaging Component (WIC), including TIFF, JPEG, PNG, GIF, BMP, and HDPhoto. The control does not support animation.

like image 33
Doug Richardson Avatar answered Oct 15 '22 16:10

Doug Richardson