将文本颜色更改为Wix对话框 [英] Changing text color to Wix dialogs

查看:64
本文介绍了将文本颜色更改为Wix对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Wix创建安装程序的新手,我设法完成了所有工作,并且安装程序正在按预期运行.我唯一遇到的问题是,我为WixUI_Minimal对话框使用了背景和横幅图像,这些图像是深色图像,因此由于文本的颜色是黑色,所以现在正在显示某些文本.

I'm new to creating installers using Wix, I managed to get it all done and the installer is working as expected. The only issue I'm having is that I'm using a background and banner image for the WixUI_Minimal dialogs and these are dark color images so some of the text is now showing since the color of the text is black.

我想知道如何根据需要将每个对话框中的文本颜色更改为另一种颜色.在第一个屏幕中,许可协议在哪里,我希望它是橙色,而在安装过程中,最上面的横幅中,我希望它是白色.我该如何实现?

I will like to know how to change the text color to another color on each of the dialogs depending on the needs. In the first screen where is the license agreement I want it to be orange and in the installation process in the top banner I want it to be white. How can I achieve this ?

推荐答案

WiX默认GUI设置 :DLL 中包含默认的WiX MSI GUI. WixUIExtension.dll .通常,您只需在WiX项目中添加对此文件的引用,然后指定 默认的WiX GUI集 (例如 <UIRef Id="WixUI_Mondo" /> <UIRef Id="WixUI_Minimal" /> )-足够了.可以在%ProgramFiles(X86)%下的WiX主安装目录中找到 WixUIExtension.dll 文件.

WiX Default GUI-Sets: The default WiX MSI GUIs are included from the DLL WixUIExtension.dll. Normally you just add a reference to this file in your WiX project and specify a default WiX GUI set such as <UIRef Id="WixUI_Mondo" /> or <UIRef Id="WixUI_Minimal" /> - and that is good enough. The WixUIExtension.dll file can be found in the main WiX installation directory under %ProgramFiles(X86)%.

1)内置的WiX对话框自定义 :有一些方法可以略微更改这些WiX设置对话框.此处描述了整个方法: 自定义内置WixUI对话框集 .我认为这足以满足您的目的.可能的调整:1)指定特定于产品的许可协议文件. 2)指定特定于产品的设置UI位图. 3)在ExitDlg中添加一个可选的复选框和可选的文本. 4)自定义内置对话框中显示的文本. 5)更改内置对话框集的UI顺序. 6)将自定义对话框插入内置对话框集.

1) Built-In WiX Dialog Customization: There are some ways to slightly change these WiX setup dialogs. The overall method is described here: Customizing Built-in WixUI Dialog Sets. I think it should suffice for your purpose. Possible tweaks: 1) Specifying a product-specific license agreement file. 2) Specifying product-specific setup UI bitmaps. 3) Adding an optional checkbox and optional text to the ExitDlg. 4) Customizing the text displayed in built-in dialogs. 5) Changing the UI sequence of a built-in dialog set. 6) Inserting a custom dialog into a built-in dialog set.

2)更改默认对话框-高级对话框 :除了通过上述方法对对话框进行一些自定义外,有时还需要进行大规模更改.然后,您需要将对话框源文件复制到您的项目文件夹中,然后根据需要对其进行置换.这有点涉及,但火箭科学没有涉及. 您只需将WiX对话框源文件复制到项目文件夹中.我认为这对于您的目的不是必需的.我将尝试找出一个描述该过程的链接.

2) Change Default Dialogs - Advanced Dialogs: Beyond customizing the dialogs slightly by the method described above, you sometimes need large scale changes. Then you need to copy the dialog source files to your project folder, and then permute them to their needs. This is somewhat involved, but not rocket science. You simply copy the WiX dialog source files to your project folder. I don't think this is necessary for your purpose. I will try to dig up a link which describes the procedure.

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