c# packaged windows service must be manually started after the installation is complete

According to what is said on the Internet, what is said is not very specific. I copied one article after another. After trying for a whole morning, I finally succeeded in the test. I felt it and recorded my specific operation.

After c# creates the service, the following interface will appear:

The code area appears, add the following code:

Down is the installation and deployment is complete

Guess you like

Origin blog.csdn.net/Z865785437029/article/details/113642349