为什么在安装过程中创建事件源
这与我的问题此处有些相关。基本上,在 .net 中写入事件日志很简单,我假设其他语言也是如此。那么为什么人们要在 WiX 中经历这样的麻烦呢?我知道原因之一可能是权限,但是我还缺少其他什么吗?
谢谢
This is somewhat related to my question here. Basically it is trivial to write to the eventlog in .net and I am assuming other languages as well. So why would people go through the trouble of doing that in WiX? I know one reason could be permissions but is there anything else I am missing?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不会写入 WiX 中的事件日志(除了实际记录安装期间发生的事件)。您在 WiX 中所做的就是为您的应用程序安装事件源,这必须使用管理权限来完成。
如果您知道事件源已存在,或者您的应用程序将以管理权限运行,则无需从安装程序创建事件源。
You do not write to the event log in WiX (except maybe for actually logging events that occur during installation). What you are doing in WiX is installing an Event Source for your application, which must be done with administrative privileges.
If you know the Event Source already exists, or your application will be run with Administrative privileges, you would not need to create the event source from the installer.