简体   繁体   English

WiX修补程序对话框-未显示背景图片

[英]WiX Patch dialog - background image not shown

I have created an working WiX Patch but during it's installation it does not show the product background image. 我已经创建了可以正常工作的WiX补丁,但是在安装过程中没有显示产品背景图片。

The original product setup dialog shows the images and they are defined in it's project like: 原始产品设置对话框显示图像,并且图像在其项目中定义为:

<Product ...>
    <WixVariable Id="WixUIBannerBmp" Value="gn_setup_dialog_banner.bmp" />
    <WixVariable Id="WixUIDialogBmp" Value="gn_setup_dialog.bmp" />

The patch is created and works fine. 该补丁已创建并且可以正常工作。 The problem is that it does not show these images. 问题是它不显示这些图像。 It shows some default background for the dialog. 它显示了对话框的一些默认背景。

Here is my patch if this helps: 如果有帮助,这是我的补丁:

<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
    <Patch AllowRemoval='yes'
        Manufacturer='xxx'
        MoreInfoURL='...'
        DisplayName='...'
        Description='Small Update Patch'
        Classification='Update'
        Codepage="...">

        <Media Id='5000' Cabinet='RTM.cab'>
            <PatchBaseline Id='RTM' />
        </Media>        

        <PatchFamily Id="HotFixPatchFamily" Version="1.0.1.0" Supersede="no" />
    </Patch>
</Wix>

Thanks for helping. 感谢您的帮助。

For some reason the patch was delivering these two files as "new" ones...even tough they were not changed. 由于某种原因,补丁程序将这两个文件作为“新”文件来提供...即使坚不可摧,它们也没有更改。

Anyway, I solved the problem by replacing the stock Wix dialog images, like it is suggested here (at bottom "Replacing the stock bitmaps"): 无论如何,我通过替换股票Wix对话框图像解决了该问题,如此处建议的那样(在底部的“替换股票位图”):

http://wix.sourceforge.net/manual-wix2/WixUI_dialog_library.htm http://wix.sourceforge.net/manual-wix2/WixUI_dialog_library.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM