2011-03-29 8 views
5

최근에 내 Windows 서비스의 표시 이름을 변경하려고했지만 apparantly 나는 엉망이되었습니다. 이전 버전이 완전히 제거되지 않아 새 버전의 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. 

따라서 이벤트 로그 소스는 로그 이름과 같습니다. 그게 무슨 뜻이며 어떻게 수정합니까?

+0

가능한 복제본 : http://stackoverflow.com/questions/5353736/cannot-uninstall-a-windows-service-cannot-be-deleted-because-its-equal-to – Anuraj

답변

8

나는 나 자신을 발견했다. This post 도움. 그래서 Windows 서비스와 같은 이름의 레지스트리에는 기본적으로 3 개의 위치가 있습니다. 그래서 먼저 이벤트 로그를 제거하는 콘솔 응용 프로그램을 작성하려고 시도했습니다.

System.Diagnostics.EventLog.Delete("7 Ac Service"); 

두 개를 처리했습니다. regedit를 사용하여 마지막으로 수동으로 제거했습니다. 그런 다음 내 Windows 서비스가 문제없이 설치되었습니다.

관련 문제