2007年10月23日
摘要: ServiceController 类详细介绍 //如果此服务存在 if (checkService()) { ServiceController sc = new ServiceController("mysql"); //mysql服务是否已启动,是,则停止 ... 阅读全文
posted @ 2007-10-23 17:18 高原之上 阅读(612) 评论(0) 推荐(0) 编辑
摘要: Process类详细介绍 1 //用msiexec.exe执行一个安装程序 2 string fileName = setupPath + "Installer.msi"; 3 Process p = new Process(); 4 p.StartInfo.FileName = "msiexec... 阅读全文
posted @ 2007-10-23 16:49 高原之上 阅读(538) 评论(0) 推荐(0) 编辑