使用WiX时,为什么我的MSI图像看起来已损坏? [英] Why do my MSI images look corrupted when using WiX?

查看:147
本文介绍了使用WiX时,为什么我的MSI图像看起来已损坏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的 WiX 生成的MSI设置自定义横幅和对话框图片。

I'm setting a custom banner and dialog image for my WiX generated MSI.

<WixVariable Id="WixUIBannerBmp" Value="./build/msi/InstallerBanner.jpg" />
<WixVariable Id="WixUIDialogBmp" Value="./build/msi/InstallerDialog.jpg" />

出于某种原因,内置到MSI中时图像会损坏。我已将这两个图像添加到我的问题中以便于比较。我尝试过各种压缩类型的BMP和JPEG - 它们看起来完全相同。我可以验证我使用了正确的图像尺寸(500 x 63像素)。

For some reason, the image becomes corrupted when built into the MSI. I've added the two images to my question for easy comparison. I've tried BMP and JPEG with a whole range of compression types - and they all look exactly the same. I can verify that I'm using exactly the correct image dimensions (500 by 63 pixels).

这是原始图片:
原始图片http://img193.imageshack.us/img193/7016/installerbanner.jpg

这就是MSI中的样子:
正在使用的图像 - 1 http://img26.imageshack.us/img26/2996/bannerinuse.jpg

And here's what it looks like in the MSI: Image in use - 1 http://img26.imageshack.us/img26/2996/bannerinuse.jpg

感谢您的回答,我从错误的尺寸.phprel =noreferrer>一个教程,实际上非常过时,(显然)非常不准确。从来没有,它是一个很好的黑客资源。我将来会坚持使用手册!

Thanks for your answers, I got the wrong dimensions from a tutorial, that's actually very out dated and (apparently) very inaccurate. Never the less, it's a good hacking resource. I'll stick to the manual in future!

推荐答案

你的图像尺寸过大。横幅图片必须为493×58,图片为500×63,因此需要调整大小。

Your image is too big dimension-wise. Banner Images must be 493 × 58 and your image is 500 × 63, causing it to be resized.

参见自定义内置WixUI对话框

顺便说一句:很高兴看到Synergy2终于得到了更新!

By the way: nice to see Synergy2 is finally getting an update!

这篇关于使用WiX时,为什么我的MSI图像看起来已损坏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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