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