windows服务安装及卸载

1)安装脚本Install.bat
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe JobSchedule.exe
Net Start ServiceOA
sc config ServiceOA start= auto

 

2)卸载脚本Uninstall.bat
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe /u JobSchedule.exe

posted @ 2014-05-09 09:31  行野摄色  阅读(364)  评论(1编辑  收藏  举报