Windwos服务的安装卸载

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:添加安装程序

posted @ 2009-02-03 23:51  zfh424  阅读(206)  评论(0编辑  收藏  举报