Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > window serviec & c#
【标  题】:window serviec & c#
【关键字】:window,serviec
【来  源】:http://www.cublog.cn/u/21356/showart.php?id=178983

window serviec & c#

Your Ad Here
1.安装一个服务
假设服务的路径如下:d:\windowsServiceTest\bin\release下
 
用installutil命令安装
 
installutil  windowsService.exe
 
 
2.卸载一个服务
假设服务的路径如下:d:\windowsServiceTest\bin\release下
 
用uninstallutil命令卸载
 
installutil /u  windowsService.exe
 
 
3.创建windows service
(1)Service
 创建一个服务程序,这个程序用来处理服务,给参数serviceName一个名字,这是你的服务 名称。
(2)ProjectInstaller
创建一个安装服务程序,这个程序用来安装你的服务程序到Windows service中
有几个参数需要设置   一个是ServiceName ,这个参数要和 service 中的一样
。另一个是accout,设成localSystem.
 
4.几个重要的类
 
System.ServiceProcess.ServiceBase
System.ServiceProcess.ServiceController
System.ServiceProcess.ServiceInstaller
 
 
如何进行阳台装饰:【上一篇】
.net2003不能debug:【下一篇】
【相关文章】
  • 双系统 linux and winodws ,在windows重装以后
  • linux和dos(windows)的回车符号区别
  • javascript:window.popup()+XSLT弹出式菜单
  • 在windows环境中编译ACE/TAO注意事项
  • phpMyWebmin 1.0 (window.php)
  • Introduction to Microsoft Windows Services for UNIX 3.5
  • 微软Windows Service For Unix (SFU) 3.5的安装和使用
  • VS.NET 2005 开发 Window Mobile 5.0 配置指南
  • MySQL on Windows 2003
  • Windows Media Drm开发
  • 【随机文章】
  • 用asp实现的代码批量修改程序
  • 黑客入门(2)
  • 筑一道安全防线 文件变化尽在掌握
  • Director 3D 基础(2)
  • ASP的XML缓存类,代替了Application
  • Solstice DiskSuite 虚拟卷管理
  • [转载]Bourne Shell及shell编程 二
  • 进程退出前删除自身EXE
  • 我与MATLAB这三年
  • 墨香 贺岁版七大任务完全解析
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.