hi

C#

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  1 Posts :: 0 Stories :: 4 Comments :: 0 Trackbacks

<?xml version="1.0" encoding="UTF-8"?>
<updater>
 <description>update</description>

 <updateUrls defaultUrl="http://localhost/Tables/" >
  <updateUrl>http://localhost/Tables/</updateUrl>
 </updateUrls>

 <application ver="1.0.0.0" path="E:\NewAudit\AuditBuilder\AuditBuilder\Config.File\Tables" lastUpdate="2008-6-26 13:41:38" >
  Main.exe
 </application>

   <dir name="A1" lastUpdate="2008-6-23 9:05:07" ver="1.0.0.0" >
        <file lastUpdate="2008-6-26 9:23:35" ver="1.0.0.0" auditor="tanrh" name="vssver2.scc" />
        <file lastUpdate="2008-6-23 17:05:59" ver="1.0.0.0" auditor="tanrh" name="表1.4-1建筑能源审计成员名单.xml" />
        <file lastUpdate="2008-6-23 17:05:59" ver="1.0.0.0" auditor="tanrh" name="附表A1电梯.xml" />
        <dir name="附表A1.10其他空调冷热源设备" lastUpdate="2008-6-23 9:05:07" ver="1.0.0.0" >
             <file lastUpdate="2008-6-26 9:23:35" ver="1.0.0.0" auditor="tanrh" name="vssver2.scc" />
             <file lastUpdate="2008-6-23 17:05:59" ver="1.0.0.0" auditor="tanrh" name="附表A1.10其他空调冷热源设备-冷热源设备.xml" />
             <file lastUpdate="2008-6-23 17:05:59" ver="1.0.0.0" auditor="tanrh" name="附表A1.10其他空调冷热源设备-水泵.xml" />
        </dir>
    </dir>

 <updateLog updateTime="2008-6-26 13:41:38">
  <files>
   <file name="" path="" ver="" error="" />
  </files>
 </updateLog>
</updater>

以上为自动更新的配置文件update.xml, 通过updatetools工具选择程序文件夹自动生成。
程序能够按目录,文件的修改时间,自动去更新最新的文件。使用了应用程序域。要了解请下载源码,感谢您能提供宝贵意见,如要进行修改,请注明来源。
由于时间关系,只完成了基本功能。有时间,会继续更新,希望您能提出宝贵意见。
C#自动更新程序及源码原创

posted on 2008-06-26 13:56 trenhui 阅读(611) 评论(4)  编辑 收藏 网摘

Feedback

#1楼 2008-07-09 10:01 yins[未注册用户]
下了...不错.
  回复  引用    

#2楼[楼主] 2008-07-09 14:26 trenhui      
@yins
谢谢你的鼓励

  回复  引用  查看    

#3楼 2008-09-24 10:09 张冰      
谢谢。很快就解决我的问题。
建议稍微做了下改进:
1、可以指定版本;
2、在下载完毕后,提示用户是否关闭系统,重新启动;
3、再机器重启后自动更新
4、支持ftp方式获取更新程序,安全性更好些。

  回复  引用  查看    

#4楼 2009-04-21 17:19 newpin      
不错
  回复  引用  查看    




发表评论

昵称: [登录] [注册]

主页:

邮箱:(仅博主可见)

评论内容:

  登录  注册

[使用Ctrl+Enter键快速提交评论]

0 1230387




相关文章:

相关链接: