【发布时间】:2018-01-23 13:00:42
【问题描述】:
不确定这是否是这个问题的适当论坛,但这里是:
我正在使用 WiX Toolset 3.14 构建安装程序,但我无法理解安装顺序。我知道 WiX 应该更具声明性,但在我的项目中,与大多数其他安装程序相比,事情似乎以奇怪的顺序发生。
行为: 用户启动安装,我的路径更改对话框是序列中出现的第一个对话框。但是,直到用户接受安装路径后,UAC 窗口才会弹出。这是正常的吗?似乎对于大多数安装,一旦启动安装,UAC 窗口就会弹出。
所以我的想法是我不太了解 Windows Installer 中的安装顺序概念。
问题:
1) 这与我的<Show> 标签Before="" 或After="" 属性有关吗?
2) WiX 的文档没有提供有关这两个属性的合法值的文档链接。我在哪里可以找到该文档?
在这种情况下发布代码没有什么意义,但这是安装顺序。我不确定要发布的相关代码是什么。如果还有什么我应该发布的,请发表评论,我会在这个原始帖子中添加任何需要的代码。谢谢!
<!-- sequence of dialogs to show when running in admin mode. -->
<AdminUISequence>
<Show Dialog="CustomDlg" After="CostFinalize"/>
<Show Dialog="ExitDialog" OnExit="success"/>
<Show Dialog="FatalError" OnExit="error"/>
<Show Dialog="UserExit" OnExit="cancel"/>
<Show Dialog="FilesInUse" OnExit="suspend"/>
</AdminUISequence>
<!-- sequence of dialogs to show when running in installation mode. -->
<InstallUISequence>
<Show Dialog="CustomDlg" After="CostFinalize"/>
<Show Dialog="ExitDialog" OnExit="success"/>
<Show Dialog="FatalError" OnExit="error"/>
<Show Dialog="UserExit" OnExit="cancel"/>
<Show Dialog="FilesInUse" OnExit="suspend"/>
</InstallUISequence>
【问题讨论】:
标签: xml wix windows-installer