An error occurs when you try to reinstall a service: the specified service has been marked as deleted.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.