Is it possible to use .png images for WiX bitmaps

前端 未结 4 670
有刺的猬
有刺的猬 2020-12-19 02:48

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

4条回答
  •  情书的邮戳
    2020-12-19 03:06

    As was stated in other answers the image format limitation comes from Microsoft's implementation of MSI, and not from WiX. Although .jpeg seems to be supported starting from Windows 7, and PNG starting from Windows 8, be very careful about the format you use. Your trade-off is the look of your installer.

    My experience showed that the only reliable way to ensure that your resulting installer displays your images correctly is to use uncompressed BMPs. And that is it! Yes, I know they balloon the size of the final file, but, hey, like everything else with Microsoft they are ages behind and there's no way around it.

    So if you don't want to have your installer to display gray squares on Windows XP or Vista instead of your graphics, don't use anything other than raw .bmp format.

提交回复
热议问题