Reinstall prompt after Windows service Uninstall "The specified service has been marked for deletion"

Source: Internet
Author: User

Background:

Make a project a Windows service, when debugging, you need to uninstall and install the service, but you are prompted with the following error: "The specified service has been marked for deletion," Enter the service management interface, start the service you registered, and cannot manually change to Enabled mode (when the Startup type displays the disabled), and the same prompt The specified service has been marked for deletion.

Workaround:

I closed the Service Management window, and the problem was solved (reboot the machine if necessary). Therefore, the reason for this is that the Service Management window is not closed when you run the Delete Service item command.

Install (I put the C_jk.exe file under the Shyy folder):

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installutil.exe E:/shyy/c_jk.exe

Pause

Unloading:

C:\windows\microsoft.net\framework\v2.0.50727\installutil/u C_jk.exe

Pause

Installation and uninstall are written in the bat file and are located in the same folder as the C_jk.exe file.

More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/skills/

Author: csdn Blog dress dance Morning Breeze

Related Article

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.