The specified service has been marked as deleted.
The following error occurs when you try to reinstall a service:
An exception occurred during the install phase.
System. componentmodel. win32exception: the specified service has been marked as deleted.
I don't want to rename the service, so I Googled it. The content found on http://support.microsoft.com/kb/823942/zh-cnis is as follows:
When you try to reinstall the Microsoft Windows service application on a Microsoft Windows 2000-based computerProgramThe service may receive the following error message:
The specified service has been marked as deleted.
When this problem occurs again, the service is not installed.
Cause
This problem may occur if the following conditions occur in this order:
1. You have installed the service in a Windows service application.
2. Delete the service by using the windowsinstaller (. MSI) file.
Note that you can use the. MSI file to delete the service, right-click the program icon on the. MSI file, and then click Uninstall.
3. reinstall the same service without restarting the computer.
You can reinstall the service. If you have installed the service on a Windows 2000-based computer, you must restart the computer.
In Windows 2000, the service is not completely deleted until the computer is restarted. After you reinstall the service, you must restart the computer.
Note: If you use the executable (.exe) file, the system prompts you to restart the computer when you delete the service.
Alternative Method
To fix this problem, reinstall the service and restart the computer.
Note: If you exit the Microsoft Management Console (MMC) before verifying that the service has been stopped and deleted, you may be able to reinstall the service without restarting the computer.
Because it is the result of machine translation, the sentence looks very fluent, but it can still be understood:
1. Using the MSI file to uninstall the Service may cause this problem.
2. Sometimes the service is marked as deleted by windows after it is uninstalled, but it may still exist in the service list before it is restarted, resulting in a failure to reinstall the service.
Solution:
1. Restart your computer and reinstall the service.
2. if you can confirm that the service has been stopped and deleted, and exit all Microsoft Management Console (MMC), you may be able to reinstall the service without restarting your computer.