hi

C#

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

<?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  阅读(3855)  评论(8编辑  收藏  举报