WiX位图是否可以使用.png图像 [英] Is it possible to use .png images for WiX bitmaps

查看:71
本文介绍了WiX位图是否可以使用.png图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用2 500K位图在WiX对话框中显示图像.

它们大大增加了安装软件包的大小,更糟糕的是-看起来没有办法将它们打包为.cab文件的一部分,因为它们在WiX术语中是<binary> -es.

所以,我想,有什么方法可以将其他文件格式用于位图,或者WiX与BMP捆绑在一起吗?理想情况下,如果可以使用.png格式,那就太好了,因为它带有无松散的压缩选项.

解决方案

位图控件指出图像应该是位图"(大概是.BMP文件)或JPEG.

使用WiX时,您必须记住它基于Windows Installer.这意味着WiX中的任何限制通常都是由基础Windows Installer实施中的限制引起的.

.BMP文件可以RLE压缩.我不知道它们是否支持其他任何压缩算法.

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.

解决方案

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.

这篇关于WiX位图是否可以使用.png图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆