不确定这是否是这个问题的合适论坛,但这里有:
我正在使用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>
答案 0 :(得分:4)
MSI在需要权限之前不会提示提升。只有当它要修改机器时才会这样,而不是在它显示UI的时候。