我创建了一个包含一个包、一个托管引导程序应用程序和一个包的设置。
我注意到,当包失败时,在某些情况下Error
不会调用该事件。我已经InstallationViewModel.cs
从 WixBA 设置中查看过,但没有找到解决方案。
我怎样才能正确处理这个?
详情:
该包创建一个
<firewall:FirewallException ... />
我注意到当“Windows 防火墙”服务没有运行时,这将失败。(我不知道这是错误还是功能,但这个问题与此无关。)
包的日志文件包含:
ExecFirewallExceptions: Installing firewall exception2 Foo (C:\Program Files (x86)\Foo\Foo.exe)
ExecFirewallExceptions: Error 0x800706d9: failed trying to find existing app
ExecFirewallExceptions: Error 0x800706d9: failed to add/update application exception for name 'Foo', file 'C:\Program Files (x86)\Foo\Foo.exe'
CustomAction WixExecFirewallExceptionsInstall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
主日志文件包含:
e000: Error 0x80070643: Failed to install MSI package.
e000: Error 0x80070643: Failed to execute MSI package.
e000: Error 0x80070643: Failed to configure per-machine MSI package.
执行回滚,一切正常,但不会向用户显示错误消息。
我应该处理哪个事件来向用户显示错误消息?还有其他方法可以正确处理吗?