我最近试图更改我的windows服务的显示名称,但很明显我搞砸了。旧版本无法完全卸载,并且我无法安装新版本的windows服务。这是运行installutil /i myService时生成的错误:
An exception occurred during the uninstallation of the System.Diagnostics.EventLogInstaller installer.
System.InvalidOperationException: The event log source '7 Ac Service' cannot be deleted, because it's equal to the log name.
An exception occurred while uninstalling. This exception will be ignored and the uninstall will continue. However, the application might not be fully uninstalled after the uninstall is complete.因此,事件日志源等于日志名称。这意味着什么?我该如何修复它?
发布于 2011-03-29 17:05:52
我自己发现的。This post帮了忙。因此,注册表中基本上有3个位置与windows服务同名。因此,我首先尝试编写一个控制台应用程序来删除事件日志:
System.Diagnostics.EventLog.Delete("7 Ac Service");它照顾了其中的两个人。我使用regedit手动删除了最后一个。然后我的windows服务安装就没有问题了。
https://stackoverflow.com/questions/5469270
复制相似问题