【发布时间】:2016-01-11 21:09:46
【问题描述】:
我见过How do you create an event log source using WiX。我的问题是在 Wix 中指定事件源的常见用途(场景)是什么?我在想,指定源将在事件日志中的该源下列出您的应用程序的安装/卸载过程,因此很容易过滤/检查,但即使在这样做之后,源对我来说仍显示为 MsiInstaller。我做错了什么还是我误解了util:EventSource的用法?
这是我的代码:
<Component Id="EventLogSettings" Guid="A456420B-21E7-4306-904E-5CD3822193F0">
<util:EventSource Log="Application" Name="WixSample" SupportsErrors ="yes" SupportsInformationals ="yes" SupportsWarnings ="yes" EventMessageFile="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll" KeyPath="yes"/>
<!--<?if $(var.Platform) = x64 ?>
<util:EventSource Log="Application" Name="WixSample" EventMessageFile="[NETFRAMEWORK20INSTALLROOTDIR64]EventLogMessages.dll" KeyPath="yes" />
<?else ?>
<util:EventSource Log="Application" Name="WixSample" EventMessageFile="[NETFRAMEWORK20INSTALLROOTDIR]EventLogMessages.dll" KeyPath="yes" />
<?endif ?>-->
</Component>
如您所见,我尝试了两种选择。他们每个人都在 Computer\HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\WixSample 中创建了一个注册表项,但我不确定是否需要引用 WixNetFxExtension。如果我这样做了,那么安装非 .net 应用程序呢?在这些情况下我该怎么办?
【问题讨论】:
标签: events wix event-log wix3.5