首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我的服务卸载失败

我的服务卸载失败
EN

Stack Overflow用户
提问于 2011-03-29 15:33:42
回答 1查看 5.1K关注 0票数 5

我最近试图更改我的windows服务的显示名称,但很明显我搞砸了。旧版本无法完全卸载,并且我无法安装新版本的windows服务。这是运行installutil /i myService时生成的错误:

代码语言:javascript
复制
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.

因此,事件日志源等于日志名称。这意味着什么?我该如何修复它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-03-29 17:05:52

我自己发现的。This post帮了忙。因此,注册表中基本上有3个位置与windows服务同名。因此,我首先尝试编写一个控制台应用程序来删除事件日志:

代码语言:javascript
复制
System.Diagnostics.EventLog.Delete("7 Ac Service");

它照顾了其中的两个人。我使用regedit手动删除了最后一个。然后我的windows服务安装就没有问题了。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5469270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档