%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe C:\Users\gary\source\repos\S2\S2\bin\Debug\S2.exe
Net Start S2
sc config S2 start= auto
pause
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe /u C:\Users\gary\source\repos\S2\S2\bin\Debug\S2.exe
pause
![](https://i-blog.csdnimg.cn/blog_migrate/efd61597bd16e359bff597115e260ecc.jpeg)