WindowsService服务安装脚本

 

安装脚本
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe D:\liuyl\WeiXinService\WindowsService.exe
net start WXService
sc config WXService start= auto

WXService 是服务的名称

 

卸载脚本

%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe -u D:\liuyl\WeiXinService\WindowsService.exe

posted @ 2015-05-29 11:29  dragon.net  阅读(644)  评论(0编辑  收藏  举报