c#客户端程序自动更新工具(含源码)

上传者: sea2988 | 上传时间: 2020-01-03 11:33:56 | 文件大小: 524KB | 文件类型: zip
这是综合网上的相关代码做了简化和测试,以保证完全可用。 1、配置好更新文件的web服务器,例如IIS服务器。 注意:要配置好服务器所能支持的文件下载类型,即MIME类型,否则下载时会出错。 假设下载地址为http://www.xxxxx.com 自动生成的程序和文件默认版本号均为1.0.0.0, 2、利用所带的AULWriter工具生成更新文件列表,即UpdateList.xml 将此文件放在web服务器下载文件相同目录下。 3、将这个autoupdate.exe和UpdateList.xml放到主程序下。 在你的主程序里调用这个autoupdate.exe文件即可。 当你想发布更新程序时,只需要更新web服务器上的文件,手工修改UpdateList.xml里的版本号即可。 例如web服务器上UpdateList.xml版本修改为1.0.0.1,客户端的UpdateList.xml里为1.0.0.0,即能升级。 源代码为VS2010,里面包含已编译文件,可直接使用。 主要参考:https://www.cnblogs.com/xiaxiaolu/p/4367159.html,非常感谢! TODO 生成xml工具来不及做成自动更新版本了(根据datetime和size判断),有兴趣的朋友可继续完善。 2018.1.22

文件下载

资源详情

[{"title":"( 78 个子文件 524KB ) c#客户端程序自动更新工具(含源码)","children":[{"title":"AutoUpdate","children":[{"title":"AutoUpdate.suo <span style='color:#111;'> 26.50KB </span>","children":null,"spread":false},{"title":"使用说明.txt <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"AutoUpdate.sln <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"AULWriter","children":[{"title":"Program.cs <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"frmAULWriter.resx <span style='color:#111;'> 17.21KB </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"frmAULWriter.cs <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 16.06KB </span>","children":null,"spread":false},{"title":"App.ico <span style='color:#111;'> 18.28KB </span>","children":null,"spread":false},{"title":"3.ico <span style='color:#111;'> 7.11KB </span>","children":null,"spread":false},{"title":"AULWriter.suo <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false},{"title":"AULWriter.csproj <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"AULWriter.csproj.GenerateResource.Cache <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.06KB </span>","children":null,"spread":false},{"title":"AULWriter.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"AULWriter.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"AULWriter.frmAULWriter.resources <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"AULWriter.exe <span style='color:#111;'> 33.50KB </span>","children":null,"spread":false},{"title":"AULWriter.pdb <span style='color:#111;'> 37.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"AULWriter.csproj.FileList.txt <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"ASP.CommonComponents.AULWriter.csproj.FileList.txt <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"Release","children":[{"title":"AULWriter.csproj.GenerateResource.Cache <span style='color:#111;'> 982B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"ASP.CommonComponents.AULWriter.frmAULWriter.resources <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"ASP.CommonComponents.AULWriter.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.07KB </span>","children":null,"spread":false},{"title":"AULWriter.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"AULWriter.csproj.FileListAbsolute.txt <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"AULWriter.frmAULWriter.resources <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"ASP.CommonComponents.AULWriter.csproj.GenerateResource.Cache <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1019B </span>","children":null,"spread":false},{"title":"AULWriter.exe <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"AULWriter.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"AULWriter.csproj.user <span style='color:#111;'> 676B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"UpdateList.xml <span style='color:#111;'> 594B </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"UpdateList.xml <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"AULWriter.exe <span style='color:#111;'> 33.00KB </span>","children":null,"spread":false},{"title":"AULWriter.exe.config <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"AULWriter.pdb <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AutoUpdate","children":[{"title":"IniFiles.cs <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"UpdateList.xml <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"AutoUpdate.suo <span style='color:#111;'> 25.50KB </span>","children":null,"spread":false},{"title":"FrmUpdate.cs <span style='color:#111;'> 20.67KB </span>","children":null,"spread":false},{"title":"AutoUpdate.csproj <span style='color:#111;'> 5.98KB </span>","children":null,"spread":false},{"title":"AppUpdater.cs <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false},{"title":"XmlFiles.cs <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false},{"title":"app.config <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"FrmUpdate.resx <span style='color:#111;'> 144.41KB </span>","children":null,"spread":false},{"title":"App.ico <span style='color:#111;'> 24.62KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"AutoUpdate.exe <span style='color:#111;'> 148.00KB </span>","children":null,"spread":false},{"title":"AutoUpdate.dll <span style='color:#111;'> 164.00KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"AutoUpdate.pdb <span style='color:#111;'> 35.50KB </span>","children":null,"spread":false},{"title":"AutoUpdate.FrmUpdate.resources <span style='color:#111;'> 93.04KB </span>","children":null,"spread":false},{"title":"AutoUpdate.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.84KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"AutoUpdate.csproj.GenerateResource.Cache <span style='color:#111;'> 906B </span>","children":null,"spread":false},{"title":"AutoUpdate.projdata <span style='color:#111;'> 13.51KB </span>","children":null,"spread":false},{"title":"temp","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"AutoUpdate.exe <span style='color:#111;'> 148.00KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"AutoUpdate.FrmUpdate.resources <span style='color:#111;'> 93.04KB </span>","children":null,"spread":false},{"title":"AutoUpdate.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferences.cache <span style='color:#111;'> 723B </span>","children":null,"spread":false},{"title":"AutoUpdate.csproj.GenerateResource.Cache <span style='color:#111;'> 906B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"UpdateList.xml <span style='color:#111;'> 438B </span>","children":null,"spread":false}],"spread":false},{"title":"Release","children":[{"title":"UpdateList.xml <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"AutoUpdate.exe <span style='color:#111;'> 148.00KB </span>","children":null,"spread":false},{"title":"AutoUpdate.exe.config <span style='color:#111;'> 144B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • jackycaixun :
    网上看了无数自动升级的程序文档 不是使用所谓的三层让人看得眼花缭乱就是根本看不懂的神仙之作。这有这位兄弟写的代码简洁移动,具有使用价值,,感恩感恩
    2021-04-04
  • sug254te :
    还是不错的,谢谢分享!!!
    2020-10-12
  • 寒冰老祖 :
    借鉴学习很不错,至少可以提供一些处理思路,谢谢分享
    2019-11-27
  • guohouchang :
    一般。。。界面部好看
    2019-09-27
  • kingwolfer :
    一般。。。。。
    2019-04-08

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明