Typically, when you install a service program, delete the service, and install again, the system will prompt you with the error code 1072: “The specified service is marked for deletion.” Anti-virus software, for example, needs to be restarted after uninstalling before it can be installed, or it may report an error: “The specified service is marked for deletion.”
Here is a way to repeat the installation without restarting it.
First, close all access instances, that is, close all service handles that are opened by the CreateService and OpenService functions. Close all CreateFile handles.
The ControlService then stops serving.
DeleteService removal service.
As a final step, delete the registry keys “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Name of your server” and “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ name of your server”.
http://zhanyonhu.blog.163.com/blog/static/161860442010223115539853/
Here is a way to repeat the installation without restarting it.
First, close all access instances, that is, close all service handles that are opened by the CreateService and OpenService functions. Close all CreateFile handles.
The ControlService then stops serving.
DeleteService removal service.
As a final step, delete the registry keys “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ Name of your server” and “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ name of your server”.
http://zhanyonhu.blog.163.com/blog/static/161860442010223115539853/
Read More:
- Install / Remove of the Service denied! Error occurred when installing MySQL service
- Solution to x service error when installing NVIDIA graphics driver under Ubuntu
- Centos7 executes the command service mysqld start and prompts Failed to start mysqld.service: Unit mysqld.service not loaded
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- How to solve the “specified service has been marked for deletion” error
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- Failed to restart ssh.service: Unit not found.
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- Modify samba configuration, restart service failed
- The most complete solution for service network restart failure under CENTOS 7
- Redirecting to /bin/systemctl stop firewalled.service Failed to stop firewalled.service: Unit firewa
- MySQL error set: failed to start mysql.service : Unit mysql.service is masked.
- Docker service start, restart, close command
- WIN7 + IIS7 Service Unavailable HTTP Error 503. The service is unavailable.
- Failed to restart xxx.service: The name org.freedesktop.PolicyKit1 was not provided by any..
- How to Fix Failed to start service jboss.deployment.unit.”jboss-as-bmt.war”.INSTALL: org.jboss.msc.service.S
- Solution to the error of installing MySQL install remove of the Service denied
- Solution to device or resource busy error in docker redeployment service
- An error was reported during MySQL 6.0 installation: start service failed
- HTTP error 405.0 – method not allowed solution for put and delete operations of rest Service on iis7.5