可复用的自动升级系统C#实现(二)
上一篇文章解决了实现可复用的自动升级系统的思路,这篇文章将给出UpdateActionSystem.exe的参考实现及相关的牵涉主程序的代码。
UpdateActionSystem.exe的主窗体UpdatingForm的主要成员如下:
private UpdateConfigParser updateParser = null ;//用于解析版本配置文件UpdateConfig.xml
private DealSoftwareVersion dealVersion = null ;//用于访问数据库的SoftwareVersion表
private string curApppath = null ; //当前路径
//构造函数中初始化各成员
阅读全文>
发表于 @ 2007年06月27日 13:41:00|评论(loading...)|编辑
开机自启动
RegistryKey key = Registry.LOCAL_MACHINE;
RegistryKey key1 =key.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run",true);
key1.CreateSubKey(@"程序地址"); 阅读全文>
发表于 @ 2007年06月27日 13:39:00|评论(loading...)|编辑
在WinForm中使用Web Services 来实现 软件 自动升级(C#)阅读全文>
发表于 @ 2007年06月27日 13:37:00|评论(loading...)|编辑