【发布时间】:2017-09-14 19:05:42
【问题描述】:
我正在编写一个带有一些自定义操作的 WiX 安装程序。
我读到here,如果操作是由于单击按钮(DoAction)而运行的,那么 C# 自定义操作中的 Session.Log 将不起作用。
MSDN 说you can use the Message Method,所以我尝试了 Session.Message:
var foo = new Record(1);
foo.SetString(0, "hello world");
session.Message(InstallMessage.ActionData, foo);
但即使使用 VERBOSE=1,我仍然看不到日志消息。 安装程序是使用 WiX Burn 创建的,因此没有单独的 msi。
有什么帮助吗?
【问题讨论】:
标签: c# logging wix windows-installer custom-action