现在的位置: 首页 > 综合 > 正文

Windwos服务的安装卸载

2012年08月11日 ⁄ 综合 ⁄ 共 316字 ⁄ 字号 评论关闭

1:将InstallUtil.exe(Framework目录下)拷贝到系统目录下

2:安装
InstallUtil  myProject
eg:
InstallUtil H:\Pject\WINDOWS\Service\WindowsService\WindowsService\bin\Debug\WindowsService.exe
3:卸载
InstallUtil /u myProject
eg:
InstallUtil /u/uH:\Pject\WINDOWS\Service\WindowsService\WindowsService\bin\Debug\WindowsService.exe

.NET开发
1:创建服务
2:添加安装类
3:添加安装程序

抱歉!评论已关闭.