如何在WelcomeDlg之前插入自定义对话框? [英] How can I insert custom dialog before WelcomeDlg?
问题描述
我想让用户在WiX中启动欢迎对话框之前选择语言,以便安装程序可以为每种语言安装不同的功能.
I want to let the user select the language before start the welcome dialog in WiX, so that the installer can install the different features for each language.
到目前为止,我已经创建了自己的包含ComboBox的自定义对话框,我知道如何在其他任何对话框之间插入自定义对话框,但是我不知道如何在WelcomeDlg之前插入它.
So far, I have created my own custom dialog that contains ComboBox, I am aware of how to insert custom dialog between any other dialog, but I have no idea how to insert it before the WelcomeDlg.
推荐答案
我还没有做过,但是我敢肯定它可以很容易地完成:
I have not done it but I am sure it can be easily done:
在WelcomeDlg的底部,您应该看到以下内容:
At the bottom of the WelcomeDlg you should see this:
<InstallUISequence>
<Show Dialog="WelcomeDlg" After="CostFinalize" Overridable="yes">NOT Installed OR PATCH</Show>
</InstallUISequence>
这使您可以覆盖对话框顺序.安排您的自定义对话框在CostFinalize
之后和WelcomeDlg之前运行.我还没有测试过,但是应该很容易做到.
This allows you to override the dialog sequence. Schedule your custom dialog to run after CostFinalize
and before WelcomeDlg. I haven't tested this but it should easily be done.
<InstallUISequence>
<Show Dialog="CustomDlg" After="CostFinalize">NOT Installed OR PATCH</Show>
<Show Dialog="CustomDlg" Before="WelcomeDlg">NOT Installed OR PATCH</Show>
</InstallUISequence>
这篇关于如何在WelcomeDlg之前插入自定义对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!