简体   繁体   English

从WiX部署工具基金会获取进度事件

[英]Getting progress events from WiX Deployment Tools Foundation

How can I get install progress events using the WiX Deployment Tools Foundation Microsoft.Deployment.WindowsInstaller.Installer.InstallProduct() ? 如何使用WiX部署工具基金会Microsoft.Deployment.WindowsInstaller.Installer.InstallProduct()获得安装进度事件?

I do not want any kind of UI, just an event that I can handle. 我不想要任何类型的UI,只是我可以处理的事件。 I see references to the InstallMessage enum, which has a Progress member, but I'd like to see an example of its usage. 我看到了对InstallMessage枚举的引用,该枚举有一个Progress成员,但我想看看其用法的示例。

Call Installer.EnableLog with InstallLogModes.Progress and Installer.SetExternalUI before Installer.InstallProduct. 在Installer.InstallProduct之前,使用InstallLogModes.Progress和Installer.SetExternalUI调用Installer.EnableLog。 The delegate gets messages including InstallMessage.Progress. 委托获取包括InstallMessage.Progress的消息。

将源下载到WiX并查看src / DTF / Samples / EnbeddedUI项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM