Windows服务开发之安装程序的设置

Install.bat   安装服务:这里需要指定可执行文件名称(exe)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil /LogFile="" /InstallStateDir="" WSSetupWithBat.exe
pause

 

Start.bat     启动服务:这里指定的是图片设置的服务名称
net start WSSetupWithBat
pause

 

Stop.bat      停止服务:这里指定的是图片设置的服务名称
net stop WSSetupWithBat

 

Uninstall.bat 卸载服务:这里还是需要指定可执行文件的名称(exe)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil /u /LogFile="" /InstallStateDir="" WSSetupWithBat.exe
pause

 

posted @ 2010-06-01 14:50  Mr▪King  阅读(232)  评论(0编辑  收藏  举报