- 注册服务
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
InstallUtil.exe "C:\Users\Administrator\Desktop\Debugmlf\WindowsService1.exe"
- 删除服务
InstallUtil.exe /u "C:\Users\Administrator\Desktop\Debugmlf\WindowsService1.exe"
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
InstallUtil.exe "C:\Users\Administrator\Desktop\Debugmlf\WindowsService1.exe"
InstallUtil.exe /u "C:\Users\Administrator\Desktop\Debugmlf\WindowsService1.exe"