wix - InstallExecuteSequence 表中没有包含我的 CA 的行
我有这样的代码
<Fragment>
<CustomAction Id="IsPrivileged" Error="You should be an adminuser" />
<InstallExecuteSequence>
<Custom Action="IsPrivileged" Before="LaunchConditions">Not AdminUser</Custom>
</InstallExecuteSequence>
<CustomAction Id="install_myfile" FileKey="id_myfile.exe" ExeCommand="/install" Return="check"/>
<InstallExecuteSequence>
<Custom Action="install_myfile" Sequence="5750"/>
</InstallExecuteSequence>
</Fragment>
但安装程序忽略了这个片段。我用 Orca.exe 查看了 msi 数据库。我发现在 InstallExecuteSequence 表中没有包含此自定义操作的行。问题是什么?我应该将自定义操作绑定到对话框的控件吗?
i have code like this
<Fragment>
<CustomAction Id="IsPrivileged" Error="You should be an adminuser" />
<InstallExecuteSequence>
<Custom Action="IsPrivileged" Before="LaunchConditions">Not AdminUser</Custom>
</InstallExecuteSequence>
<CustomAction Id="install_myfile" FileKey="id_myfile.exe" ExeCommand="/install" Return="check"/>
<InstallExecuteSequence>
<Custom Action="install_myfile" Sequence="5750"/>
</InstallExecuteSequence>
</Fragment>
But installer ignores this fragment. i looked the msi-database with Orca.exe. and i found that in InstallExecuteSequence Table there are no rows with this custom actions. what is the problem? should i bind my custom actions to dialog's controls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 CustomActionRef 将片段引用到您的产品中。
Use CustomActionRef to reference the Fragment into your Product.