转:自动更新程序源码下载(C#.Net) http://www.cnblogs.com/jenry/archive/2006/08/15/477302.html
来源:互联网 发布:矩阵论教程张绍飞pdf 编辑:程序博客网 时间:2024/05/22 05:33
自动更新程序源码下载(C#.Net)
由于微软提供的更新程序使用不方便,所以又写了此程序。此程序是本人一年前所写的一段程序,当时在开发一个CS版本报价系统,当时由于开发过程仓促,代码可能有点不是太规范此程序编译后只有一下AutoUpdate.exe文件与一个配置文件UpdateList.xml,主要通过本地程序与服务端程序文件的版本号来升级与更新本地程序文件。
UpdateList.xml文件内容如下:
<?xml version="1.0" encoding="gb2312"?>
<AutoUpdater>
<description>Application autoUpdate</description>
<Updater>
<Url>http://10.0.5.98/SoftUpdate/</Url>
<LastUpdateTime>2005-09-05</LastUpdateTime>
</Updater>
<Application applicationId="ItemSoft">
<EntryPoint>ItemSoft.exe</EntryPoint>
<Location>.</Location>
<Version>1.0.0.0</Version>
</Application>
<Files>
<File Ver="1.0.0.0" Name="ItemSoft.exe" />
<File Ver="1.0.0.0" Name="Reports\test.txt"/>
<File Ver="1.0.0.0" Name="Interop.grproLib.dll"/>
<File Ver="1.0.0.0" Name="Reports\test.grf"/>
</Files>
</AutoUpdater>
说明:
<description></description> 程序的描述;
<Url></Url> 更新服务器地址,为一个虚拟目录或站点路径;
<EntryPoint></EntryPoint> 需要更新主程序文件,为exe;
<Location>.</Location> 需要更新主程序文件所在路径;
<Version>1.0.0.0</Version> 主程序版本号;
<Files> </Files> 需要更新的文件列表;Ver:文件版本号,Name:文件名,包括路径(相对);
使用时,在更新服务器上新建Web虚拟目录或站点,然后将需要更新的文件与UpdateList.xml放在上面;
本地将AutoUpdate.exe与UpdateList.xml放在主程序的根目录下。本地UpdateList.xml中的版本号如果小于服务端,自动程序会自动下载所需要更新的文件。
本人的完整.Net打包程序下载中所带的项目中,就使用了此更新程序。
源码下载:/Files/jenry/AutoUpdate.rar
二进制文件下载:/Files/jenry/bin.rar
生成配置文件UpdateList.xml工具:/Files/jenry/AULWriter1.0.rar (由whatisgood 提供,感谢!!)New
UpdateList.xml文件内容如下:
<?xml version="1.0" encoding="gb2312"?>
<AutoUpdater>
<description>Application autoUpdate</description>
<Updater>
<Url>http://10.0.5.98/SoftUpdate/</Url>
<LastUpdateTime>2005-09-05</LastUpdateTime>
</Updater>
<Application applicationId="ItemSoft">
<EntryPoint>ItemSoft.exe</EntryPoint>
<Location>.</Location>
<Version>1.0.0.0</Version>
</Application>
<Files>
<File Ver="1.0.0.0" Name="ItemSoft.exe" />
<File Ver="1.0.0.0" Name="Reports\test.txt"/>
<File Ver="1.0.0.0" Name="Interop.grproLib.dll"/>
<File Ver="1.0.0.0" Name="Reports\test.grf"/>
</Files>
</AutoUpdater>
说明:
<description></description> 程序的描述;
<Url></Url> 更新服务器地址,为一个虚拟目录或站点路径;
<EntryPoint></EntryPoint> 需要更新主程序文件,为exe;
<Location>.</Location> 需要更新主程序文件所在路径;
<Version>1.0.0.0</Version> 主程序版本号;
<Files> </Files> 需要更新的文件列表;Ver:文件版本号,Name:文件名,包括路径(相对);
使用时,在更新服务器上新建Web虚拟目录或站点,然后将需要更新的文件与UpdateList.xml放在上面;
本地将AutoUpdate.exe与UpdateList.xml放在主程序的根目录下。本地UpdateList.xml中的版本号如果小于服务端,自动程序会自动下载所需要更新的文件。
本人的完整.Net打包程序下载中所带的项目中,就使用了此更新程序。
源码下载:/Files/jenry/AutoUpdate.rar
二进制文件下载:/Files/jenry/bin.rar
生成配置文件UpdateList.xml工具:/Files/jenry/AULWriter1.0.rar (由whatisgood 提供,感谢!!)New
0 0
- 转:自动更新程序源码下载(C#.Net) http://www.cnblogs.com/jenry/archive/2006/08/15/477302.html
- (转)epoll源码分析 http://www.cnblogs.com/debian/archive/2012/02/16/2354454.html
- 给没有源代码的.NET程序“打补丁“(转http://www.cnblogs.com/lerit/archive/2011/08/22/2148858.html#2182758)
- .NET设计模式系列文章 http://www.cnblogs.com/Terrylee/archive/2006/07/17/334911.html
- IBatis.Net 日志 http://www.cnblogs.com/firstyi/archive/2007/08/22/865028.html
- .Net Remoting (转载)(转自http://www.cnblogs.com/JimmyZhang/archive/2008/07/26/1252183.html)
- 从一个程序的Bug解析C语言的类型转换(转自:http://www.cnblogs.com/dolphin0520/archive/2011/10/15/2212834.html)
- Js+XML 操作 http://www.cnblogs.com/skylaugh/archive/2006/09/15/505393.html
- http://www.cnblogs.com/pato/archive/2011/08/15/2139705.html
- http://www.cnblogs.com/tornadomeet/archive/2012/08/15/2640754.html
- http://www.cnblogs.com/lidabo/archive/2012/08/15/2640204.html
- 深入浅出JSON (转http://www.cnblogs.com/truly/archive/2006/12/31/608896.html)
- Snmp学习笔记 (转) http://www.cnblogs.com/jambol/archive/2007/08/30/875366.html
- HTC 编程思想(转http://www.cnblogs.com/xchunyu/archive/2004/08/05/30230.html)
- SVN (转http://www.cnblogs.com/licheng/archive/2008/11/08/1329634.html)
- js读取文件(转:http://www.cnblogs.com/huifeidejian/archive/2010/08/09/1795680.html)
- ACM基本输入输出(转自http://www.cnblogs.com/chenqiangjsj/archive/2011/04/08/2009452.html)
- 转之:http://www.cnblogs.com/sopper/archive/2007/06/15/784947.html
- cocos2d编辑工具
- (standard c libraries translation )getpagesize
- 基于tcpdump实例讲解TCP/IP协议
- linux ip命令
- 黑马程序员--jdk1.5的新特性:枚举(重要。很简单)
- 转:自动更新程序源码下载(C#.Net) http://www.cnblogs.com/jenry/archive/2006/08/15/477302.html
- java来打开默认的一些客户端程序
- Hough变换的基本原理
- 一个帐号同一时间只能一个人登录
- 第一个C程序从今天开始学习记录
- window 2003 server 安装
- jsp+servlet实现多个文件的上传
- IOS开发 NSUndoManager
- PHP json_decode