When you try to reinstall a service in a Microsoft Windows Service application on a Microsoft Windows 2000-based computer, you may receive the following error message:
The specified service has been marked for deletion
When this problem occurs, the service is not reinstalled.
This problem may occur if the following conditions occur in this order:
You install a service in a Windows Service application.
You remove the service by using a Windows Installer (.msi) file.
NoteTo remove the service by using an .msi file, right-click the program icon for the .msi file, and then click Uninstall.
You reinstall the same service without first restarting the computer.
If you installed the service on a Windows 2000-based computer, you must restart the computer before you can reinstall the service.
In Windows 2000, services are not completely deleted until the computer is restarted. Although you do not receive a prompt to restart the computer after you remove the service, you must restart the computer before you reinstall the service.
Note If you remove the service by using an executable (.exe) file, you receive a prompt to restart the computer.
To work around this problem, restart the computer before you reinstall the service.
Note If you first verify that the service is stopped, and then you quit the Microsoft Management Console (MMC) before you remove the service, you may be able to reinstall the service without restarting the computer.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.
For more information about how to add a service and about how to remove a service in a Windows Service application, see the "Walkthrough: Creating a Windows Service Application in the Component Designer" topic in the Visual Studio .NET documentation in the Microsoft Developer Network (MSDN) Library.