Skip to content

AutoUpdate is a library for automatically updating .NET applications. It can check for new update packages, download them, and install them.

License

Notifications You must be signed in to change notification settings

HeHang0/AutoUpdateDotNet

Repository files navigation

AutoUpdate NuGet Build AutoUpdate

AutoUpdate is a library for automatically updating .NET applications. It can check for new update packages, download them, and install them.

Usage


AutoUpdate is available as NuGet package.

void NewPackageChecked(AutoUpdate.Core.AutoUpdate sender, PackageCheckedEventArgs e)
{
    Console.WriteLine($"[{DateTime.Now}] New Update: {e.Version}");
    CancellationTokenSource cts = new CancellationTokenSource();
    sender.Update(new SingleInstaller(), cts.Token, new Progress<int>(p =>
    {
        Console.WriteLine($"[{DateTime.Now}] Download Progress: {p}");
        if(p == 50) cts.Cancel();
    }));
}

var githubChecker = new GithubChecker("hehang0", "FileViewer", "FileViewer.exe", "v1.3.0");
var autoUpdate = new AutoUpdate.Core.AutoUpdate(new Options(githubChecker));
autoUpdate.NewPackageChecked += NewPackageChecked;

autoUpdate.Start();

Repository


The source code for AutoUpdateDotNet is hosted on GitHub. You can find it at the following URL: https://github.com/HeHang0/AutoUpdateDotNet

License


AutoUpdateDotNet is released under the MIT license. This means you are free to use and modify it, as long as you comply with the terms of the license.

About

AutoUpdate is a library for automatically updating .NET applications. It can check for new update packages, download them, and install them.

Topics

Resources

License

Stars

Watchers

Forks

Languages