小言_互联网的博客

winform自动更新之AutoUpdater.NET

978人阅读  评论(0)

使用AutoUpdater.NET对winform程序进行自动更新

介绍

AutoUpdater.NET是一个.NET平台下桌面应用程序的一个自动升级类库,开源在Github类似工具还包括微软的ClickOnce

使用

PM> Install-Package Autoupdater.NET.Official

更新服务器上的xml配置:

<?xml version="1.0" encoding="UTF-8"?>
<item>
    <version>2.0.0.0</version>
    <url>http://127.0.0.1/downloads/Test-2.0.0.0.zip</url>
    <changelog>http://127.0.0.1/changelog.html</changelog>
    <mandatory>false</mandatory>
</item>

其中url节点表示新的程序包的地址,changelog表示更新日志,mandatory表示是否强制更新,其他更多属性见Github

C#中的使用:

using AutoUpdaterDotNET;

AutoUpdater.Start("http://rbsoft.org/updates/AutoUpdaterTest.xml");

Demo

Issue


转载:https://blog.csdn.net/zhaobw831/article/details/82226291
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场