我正在使用Wix3.11并尝试自定义ExitDialog。对话框的源代码(在wix3-wix31rtm.zip ExitDialog.wxs)时间表此对话框下面的语句:Wix3:忽略<Show>元素的可重写属性?
<Show Dialog="ExitDialog" OnExit="success" Overridable="yes" />
所以,我复制该文件到我的本地目录MyExitDialog.wxs,重命名对话框从ExitDialog ID来MyExitDialog和预定此对话框:
<Show Dialog="MyExitDialog" OnExit="success" />
但是,当我跑光,我得到了以下错误:
MyExitDialog.wxs(37): error LGHT1050: The AdminUISequence table contains actions 'MyExitDialog' and 'ExitDialog' which both have the same sequence number -1. Please change the sequence number for one of these actions to avoid an ICE warning.
C:\build\work\eca3d12b\wix3\src\ext\UIExtension\wixlib\ExitDialog.wxs(29): error LGHT1051: The location of the action related to previous warning.
我期待MyExitDialog秀埃尔ement覆盖原来的ExitDialog的show元素,但它不是那样工作的。
我误解了Overridable属性的工作原理吗?或者,我看着错误的ExitDialog.wxs文件?
感谢您的回答。我想'Overrideable'属性会允许其他对话框'覆盖'序列-1。但是,它实际上做的是允许重新安排ExitDialog到其他序列。 –