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