2004年7月2日

windows服务开发(一、安装)

摘要: 最近由于工作需要,写了一个windows服务程序,有许多经验,我会陆续写出来。请原谅我从安装谈起,因为我一直有一个误区:只要从System.ServiceProcess.ServiceBase继承一个类并编译好就可以用.net提供的命令行程序InstallUtil.exe安装了。经过尝试,发现如果仅仅做了这样的一个类是无法用InstallUtil.exe安装的,在安装时会输出下面的信息:D:\>i... 阅读全文

posted @ 2004-07-02 09:03 陈叙远 阅读(13353) 评论(7) 推荐(0) 编辑

windows服务安装类代码

摘要: using System.Collections;using System.Configuration.Install;using System.ServiceProcess;using System.ComponentModel; namespace WindowsService1{ /// /// myInstall 的摘要说明。 /// /// [RunInstaller(true)]... 阅读全文

posted @ 2004-07-02 09:01 陈叙远 阅读(4856) 评论(1) 推荐(0) 编辑

导航