8000
Skip to content

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages

0