假定:
ServicePath = C:\ServiceTest.exe
安装服务命令
C:/Windows/Microsoft.NET/Framework/v2.0.50727/InstallUtil.exe *ServicePath *
启动服务
net start ServiceTest
停止服务命令重点内容
net stop ServiceName
卸载服务命令
C:/Windows/Microsoft.NET/Framework/v2.0.50727/InstallUtil.exe /u ServicePath