摘要: 自定义安装类中不能出现堆栈溢出,否则在安装时没有任何提示,也不会执行代码。制作安装程序时,可以把自己需要的配置功能和额外操作写在服务的安装类的OnAfterInstall函数中。比如安装服务完成后需要启动服务的代码如下: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--try{//安装完成后启动服务管理程序RunProcessrp=newRunProcess();rp.Run("net","startS3SvcWatcher");if(rp. 阅读全文
posted @ 2010-12-22 23:42 南桥一梦 阅读(259) 评论(0) 推荐(0) 编辑