【发布时间】:2008-12-16 12:46:59
【问题描述】:
我正在编写托管自定义操作。我正在使用 Windows Installer Xml 中的 DTF 框架将托管 dll 包装到可用的 CA dll 中。 CA 做了它应该做的事,但我仍然无法处理错误:
Dim record As New Record(1)
' Field 0 intentionally left blank
' Field 1 contains error number
record(1) = 27533
session.Message(InstallMessage.Error, record)
以上代码在 MSI 日志中生成以下文本:
MSI (c) (C4 ! C6) [13:15:08:749]:产品:TestMSI -- 错误 27533。区分大小写的密码不匹配。
错误编号是指包含在 MSI 中的错误表中的代码。上面显示的消息是正确的。
我的问题是:为什么 Windows Installer 没有创建一个对话框来通知用户错误?
【问题讨论】:
标签: error-handling windows-installer managed custom-action