如何自定义 Wix 进度对话框? [英] How do I customise the Wix Progress Dialog?

查看:32
本文介绍了如何自定义 Wix 进度对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自定义标准的 WiX 进度对话框(我想让它显示 ActionData).我遵循了 Neil 的自定义对话框指南,但是问题是,原始的 ProgressDlg 仍在显示,而不是我的.

I'm trying to customise the standard WiX Progress Dialog (I want to make it show the ActionData). I've followed Neil's guide to customising dialogs but the trouble is, the original ProgressDlg is still being shown instead of mine.

我想我知道为什么:如果您查看 source to ProgressDlg 你可以看到这段代码:

I think I know why: if you look at the source to ProgressDlg you can see this block of code:

   <InstallUISequence>
    <Show Dialog="ProgressDlg" Before="ExecuteAction" />
  </InstallUISequence>

因此,它不像大多数对话框那样由另一个对话框发布,而是作为 InstallUISequence 的一部分直接触发.那么我该如何覆盖它?

So rather than being published by another dialog, as most dialogs are, it is being triggered directly as part of the InstallUISequence. So how do I override this?

推荐答案

似乎进度对话框必须是 InstallUISequence 中 ExecuteAction 之前的最后一件事 - 否则,因为进度对话框是无模式的,它会立即显示然后隐藏.

It seems that the progress dialog must be the last thing in the InstallUISequence before ExecuteAction - otherwise, because Progress Dialogs are modeless, it is shown then hidden straight away.

因此,我的解决方案只是确保我的自定义进度对话框显示在现有进度对话框之后:

My solution therefore is just to make sure that my custom progress dialog is shown after the existing one:

  <InstallUISequence>
    <Show Dialog="CustomProgressDlg" After="ProgressDlg" />
  </InstallUISequence>

这篇关于如何自定义 Wix 进度对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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