WindowsService服务安装脚本

时间:2015-05-29 13:36:55   收藏:0   阅读:368

 

安装脚本
%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

原文:http://www.cnblogs.com/dragon-L/p/4538074.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!