Autoupdater.NET.Official 1.8.5

dotnet add package Autoupdater.NET.Official --version 1.8.5
NuGet\Install-Package Autoupdater.NET.Official -Version 1.8.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Autoupdater.NET.Official" Version="1.8.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Autoupdater.NET.Official --version 1.8.5
#r "nuget: Autoupdater.NET.Official, 1.8.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Autoupdater.NET.Official as a Cake Addin
#addin nuget:?package=Autoupdater.NET.Official&version=1.8.5

// Install Autoupdater.NET.Official as a Cake Tool
#tool nuget:?package=Autoupdater.NET.Official&version=1.8.5


Build status

AutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.

The NuGet Package NuGet NuGet

PM> Install-Package Autoupdater.NET.Official

Supported .NET versions

  • .NET Framework 4.5 or above
  • .NET Core 3.1
  • .NET 5.0 or above

This library only works for WinForms or WPF application projects.

How it works

AutoUpdater.NET downloads the XML file containing update information from your server. It uses this XML file to get the information about the latest version of the software. If the latest version of the software is greater than the current version of the software installed on User's PC then AutoUpdater.NET shows update dialog to the user. If user press the update button to update the software then It downloads the update file (Installer) from URL provided in XML file and executes the installer file it just downloaded. It is a job of installer after this point to carry out the update. If you provide zip file URL instead of installer then AutoUpdater.NET will extract the contents of zip file to application directory.

Using the code

XML file

AutoUpdater.NET uses XML file located on a server to get the release information about the latest version of the software. You need to create XML file like below and then you need to upload it to your server.

<?xml version="1.0" encoding="UTF-8"?>

There are two things you need to provide in XML file as you can see above.

  • version (Required) : You need to provide latest version of the application between version tags. Version should be in X.X.X.X format.

  • url (Required): You need to provide URL of the latest version installer file or zip file between url tags. AutoUpdater.NET downloads the file provided here and install it when user press the Update button.

  • changelog (Optional): You need to provide URL of the change log of your application between changelog tags. If you don't provide the URL of the changelog then update dialog won't show the change log.

  • mandatory (Optional): You can set this to true if you don't want user to skip this version. This will ignore Remind Later and Skip options and hide both Skip and Remind Later button on update dialog.

    • mode (Attribute, Optional): You can provide mode attribute on mandatory element to change the behaviour of the mandatory flag. If you provide "1" as the value of mode attribute then it will also hide the Close button on update dialog. If you provide "2" as the value of mode attribute then it will skip the update dialog and start downloading and updating application automatically.
    <mandatory mode="2">true</mandatory>
    • minVersion (Attribute, Optional): You can also provide minVersion attribute on mandatory element. When you provide it, Mandatory option will be triggered only if the installed version of the app is less than the minimum version you specified here.
    <mandatory minVersion="">true</mandatory>
  • executable (Optional): You can provide the path of the executable if it was changed in the update. It should be relative to the installation directory of the application. For example, if the new executable is located inside the bin folder of the installation directory, then you should provide it as shown below.

  • args (Optional): You can provide command line arguments for Installer between this tag. You can include %path% with your command line arguments, it will be replaced by path of the directory where currently executing application resides.
  • checksum (Optional): You can provide the checksum for the update file between this tag. If you do this AutoUpdater.NET will compare the checksum of the downloaded file before executing the update process to check the integrity of the file. You can provide algorithm attribute in the checksum tag to specify which algorithm should be used to generate the checksum of the downloaded file. Currently, MD5, SHA1, SHA256, SHA384, and SHA512 are supported.
<checksum algorithm="MD5">Update file Checksum</checksum>

You can also use the XML creator tool created by one of the user to create the XML file. You can download it from here.

Adding one line to make it work

After you done creating and uploading XML file, It is very easy to add a auto update functionality to your application. First you need to add following line at the top of your form.

using AutoUpdaterDotNET;

Now you just need to add following line to your main form constructor or in Form_Load event. You can add this line anywhere you like. If you don't like to check for update when application starts then you can create a Check for update button and add this line to Button_Click event.


Start method of AutoUpdater class takes URL of the XML file you uploaded to server as a parameter.

AutoUpdater.Start should be called from UI thread.

Current version detection

AutoUpdater.NET uses Assembly version to determine the current version of the application. You can update it by going to Properties of the project as shown in following screenshot.

How to change assembly version of your .NET application?

Version specified in XML file should be higher than Assembly version to trigger the update.

If you want to provide your own Assembly then you can do it by providing second argument of Start method as shown below.

AutoUpdater.Start("", myAssembly);

Configuration Options

Provide installed version manually

If you don't want AutoUpdater.NET to determine the installed version from assembly then you can provide your own version by assigning it to InstalledVersion field as shown below.

AutoUpdater.InstalledVersion = new Version("1.2");

Download Update file and XML using FTP

If you like to use ftp XML URL to check for updates or download the update file then you can provide you FTP credentials in alternative Start method as shown below.

AutoUpdater.Start("", new NetworkCredential("FtpUserName", "FtpPassword"));

If you are using FTP download URL in the XML file then credentials provided here will be used to authenticate the request.

Check for updates synchronously

If you want to check for updates synchronously then set Synchronous to true before starting the update as shown below.

AutoUpdater.Synchronous = true;

Disable Skip Button

If you don't want to show Skip button on Update form then just add following line with above code.

AutoUpdater.ShowSkipButton = false;

Disable Remind Later Button

If you don't want to show Remind Later button on Update form then just add following line with above code.

AutoUpdater.ShowRemindLaterButton = false;

Ignore previous Remind Later or Skip settings

If you want to ignore previously set Remind Later and Skip settings then you can set Mandatory property to true. It will also hide Skip and Remind Later button. If you set Mandatory to true in code then value of Mandatory in your XML file will be ignored.

AutoUpdater.Mandatory = true;

Forced updates

You can enable forced updates by setting Mandatory property to true and setting UpdateMode to value of Mode.Forced or Mode.ForcedDownload. Mode.Forced option will hide Remind Later, Skip and Close buttons on the standard update dialog. Mode.ForcedDownload option will skip the standard update dialog and start downloading and updating the application without user interaction. Mode.ForceDownload option will also ignore value of OpenDownloadPage flag.

AutoUpdater.Mandatory = true;
AutoUpdater.UpdateMode = Mode.Forced;

Basic Authentication

You can provide Basic Authentication for XML, Update file and Change Log as shown in below code.

BasicAuthentication basicAuthentication = new BasicAuthentication("myUserName", "myPassword");
AutoUpdater.BasicAuthXML = AutoUpdater.BasicAuthDownload = AutoUpdater.BasicAuthChangeLog = basicAuthentication;

Set User-Agent for http web requests

Set the User-Agent string to be used for HTTP web requests so you can differentiate them in your web server request logs.

AutoUpdater.HttpUserAgent = "AutoUpdater";

Enable Error Reporting

You can turn on error reporting by adding below code. If you do this AutoUpdater.NET will show error message, if there is no update available or if it can't get to the XML file from web server.

AutoUpdater.ReportErrors = true;

Run update process without Administrator privileges

If your application doesn't need administrator privileges to replace old version then you can set RunUpdateAsAdmin to false.

AutoUpdater.RunUpdateAsAdmin = false;

Open Download Page

If you don't want to download the latest version of the application and just want to open the URL between url tags of your XML file then you need to add following line with above code.

AutoUpdater.OpenDownloadPage = true;

This kind of scenario is useful if you want to show some information to users before they download the latest version of an application.

Remind Later

If you don't want users to select Remind Later time when they press the Remind Later button of update dialog then you need to add following lines with above code.

AutoUpdater.LetUserSelectRemindLater = false;
AutoUpdater.RemindLaterTimeSpan = RemindLaterFormat.Days;
AutoUpdater.RemindLaterAt = 2;

In above example when user press Remind Later button of update dialog, It will remind user for update after 2 days.

Proxy Server

If your XML and Update file can only be used from certain Proxy Server then you can use following settings to tell AutoUpdater.NET to use that proxy. Currently, if your Changelog URL is also restricted to Proxy server then you should omit changelog tag from XML file cause it is not supported using Proxy Server.

var proxy = new WebProxy("ProxyIP:ProxyPort", true)
    Credentials = new NetworkCredential("ProxyUserName", "ProxyPassword")
AutoUpdater.Proxy = proxy;

Specify where to download the update file

You can specify where you want to download the update file by assigning DownloadPath field as shown below. It will be used for ZipExtractor too.

AutoUpdater.DownloadPath = Application.StartupPath;

Specify where to extract zip file containing updated files

If you are using a zip file as an update file then you can set the "InstallationPath" equal to the path where your app is installed. This is only necessary when your installation directory differs from your executable path.

var currentDirectory = new DirectoryInfo(Application.StartupPath);
if (currentDirectory.Parent != null)
    AutoUpdater.InstallationPath = currentDirectory.Parent.FullName;

Specify relative path to executable you want to execute after update

If you are using a zip file as an update file, then you can set "ExecutablePath" equal to a new executable path relative to the installation directory. This is only necessary if your new executable path differs from current executable path. The "executable" value defined in XML takes precedence over this value.

AutoUpdater.ExecutablePath = "bin/AutoUpdater.exe";

Clear application directory before extracting update file

Sometimes it is necessary to clear previous version files before doing an update. In this case, you can specify whether to clear the application directory before extracting the update file using the below code.

AutoUpdater.ClearAppDirectory = true;

Specify size of the UpdateForm

You can specify the size of the update form by using below code.

AutoUpdater.UpdateFormSize = new System.Drawing.Size(800, 600);

Change Icon of the UpdateForm

You can change the icon of the update form by using below code. It assumes that you have an image resource named Icon in your project. Size of icon file should be 64x64.

AutoUpdater.Icon = Resources.Icon;

Set the owner Form / Window

To ensure the dialogs showed by the auto updater are visible and always focussed correctly related to an application Form or Window, it may be necessary to set an owner. You can assign a Form or WPF Window as the owner by following the example below.


Set the TopMost property of all updater dialogs

To ensure that the dialogs displayed by the auto updater are always on top, you can set the "TopMost" to true, as demonstrated in the code snippet below.

AutoUpdater.TopMost = true;

Change storage method of Remind Later and Skip options

You can change how AutoUpdater.NET saves the Remind Later and Skip values by assigning the PersistenceProvider. If you don't provide a PersistenceProvider then it will save the values in Windows registry.

If you are using .NET 4.0 or above then you can use JsonFilePersistenceProvider instead of default RegistryPersistenceProvider as shown below.

string jsonPath = Path.Combine(Environment.CurrentDirectory, "settings.json");
AutoUpdater.PersistenceProvider = new JsonFilePersistenceProvider(jsonPath);

You can create your own PersistenceProvider by implementing IPersistenceProvider interface.

Check updates frequently

You can call Start method inside Timer to check for updates frequently.


System.Timers.Timer timer = new System.Timers.Timer
    Interval = 2 * 60 * 1000,
    SynchronizingObject = this
timer.Elapsed += delegate


DispatcherTimer timer = new DispatcherTimer {Interval = TimeSpan.FromMinutes(2)};
timer.Tick += delegate

Handling Application exit logic manually

If you like to handle Application exit logic yourself then you can use ApplicationExitEvent like below. This is very useful if you like to do something before closing the application.

AutoUpdater.ApplicationExitEvent += AutoUpdater_ApplicationExitEvent;

private void AutoUpdater_ApplicationExitEvent()
    Text = @"Closing application...";

Handling updates manually

Sometimes as a developer you need to maintain look and feel for the entire application similarly or you just need to do something before update. In this type of scenarios you can handle the updates manually by subscribing to an event. You can do it by adding following line with above code.

AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;

private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args)
    if (args.Error == null)
        if (args.IsUpdateAvailable)
            DialogResult dialogResult;
            if (args.Mandatory.Value)
                dialogResult =
                        $@"There is new version {args.CurrentVersion} available. You are using version {args.InstalledVersion}. This is required update. Press Ok to begin updating the application.", @"Update Available",
                dialogResult =
                        $@"There is new version {args.CurrentVersion} available. You are using version {
                            }. Do you want to update the application now?", @"Update Available",
            // Uncomment the following line if you want to show standard update dialog instead.
            // AutoUpdater.ShowUpdateForm(args);
            if (dialogResult.Equals(DialogResult.Yes) || dialogResult.Equals(DialogResult.OK))
                    if (AutoUpdater.DownloadUpdate(args))
                catch (Exception exception)
                    MessageBox.Show(exception.Message, exception.GetType().ToString(), MessageBoxButtons.OK,
            MessageBox.Show(@"There is no update available please try again later.", @"No update available",
                MessageBoxButtons.OK, MessageBoxIcon.Information);
        if (args.Error is WebException)
                @"There is a problem reaching update server. Please check your internet connection and try again later.",
                @"Update Check Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
                args.Error.GetType().ToString(), MessageBoxButtons.OK,

When you do this it will execute the code in above event when AutoUpdater.Start method is called instead of showing the update dialog.

  • IsUpdateAvailable (bool) : If update is available then returns true otherwise false.
  • DownloadURL (string) : Download URL of the update file..
  • ChangelogURL (string) : URL of the webpage specifying changes in the new update.
  • CurrentVersion (Version) : Newest version of the application available to download.
  • InstalledVersion (Version) : Version of the application currently installed on the user's PC.
  • Mandatory (Mandatory) : Shows if the update is required or optional.

Handling parsing logic manually

If you want to use other format instead of XML as an AppCast file then you need to handle the parsing logic by subscribing to ParseUpdateInfoEvent. You can do it as follows.

AutoUpdater.ParseUpdateInfoEvent += AutoUpdaterOnParseUpdateInfoEvent;

private void AutoUpdaterOnParseUpdateInfoEvent(ParseUpdateInfoEventArgs args)
    dynamic json = JsonConvert.DeserializeObject(args.RemoteData);
    args.UpdateInfo = new UpdateInfoEventArgs
        CurrentVersion = json.version,
        ChangelogURL = json.changelog,
        DownloadURL = json.url,
        Mandatory = new Mandatory
            Value = json.mandatory.value,
            UpdateMode = json.mandatory.mode,
            MinimumVersion = json.mandatory.minVersion
        CheckSum = new CheckSum
            Value = json.checksum.value,
            HashingAlgorithm = json.checksum.hashingAlgorithm

JSON file used in the Example above

      "minVersion": "",

Steps to build it for further development

You can follow below steps to build the project on your local development environment.

  • Disable signing from project properties of both AutoUpdater.NET and ZipExtractor.

  • Edit both .csproj file of AutoUpdater.NET and ZipExtractor and change following line. Use .NET version you prefer.




  • Build ZipExtractor project in "Release" configuration to create the executable in Resources folder. While compiling it for .NET Core 3.1 or above, you have to use publish command instead of build as shown here and copy the resulting executable to "AutoUpdater.NET/Resources" folder.

  • VS2022 doesn't allow building .NET Framework 4.5 by default, so if you are using it then you can just change it to any supported .NET version, or you have to follow steps from here to use .NET Framework 4.5.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Autoupdater.NET.Official:

Package Downloads



Oluşturduğunuz Programlar İçin Otomatik Güncelleme Özelliğini Kullanabileceksiniz.




Package Description


Package Description

GitHub repositories (39)

Showing the top 5 popular GitHub repositories that depend on Autoupdater.NET.Official:

Repository Stars
visualized crawler & ETL IDE written with C#/WPF
Twitch VOD/Clip Downloader - Chat Download/Render/Replay
a tiling window manager for Windows
Unreal Engine Archives Explorer
Fast, free and customizable image viewer for Windows 10 and 11.
Version Downloads Last updated
1.8.5 8,382 2/19/2024
1.8.4 33,661 8/20/2023
1.8.3 17,670 6/12/2023
1.8.2 5,073 5/17/2023
1.8.1 4,790 5/1/2023
1.8.0 4,339 4/19/2023
1.7.7 8,737 3/3/2023
1.7.6 32,367 11/1/2022
1.7.5 14,932 8/25/2022
1.7.4 9,953 7/14/2022
1.7.3 7,481 6/13/2022
1.7.2 4,224 6/6/2022
1.7.1 3,453 6/1/2022
1.7.0 118,696 7/17/2021
1.6.4 52,376 11/5/2020
1.6.3 24,995 9/15/2020
1.6.2 3,655 8/28/2020
1.6.1 1,906 8/28/2020
1.6.0 21,982 4/7/2020
1.5.8 27,190 11/1/2019
1.5.7 11,825 9/10/2019
1.5.6 9,667 8/21/2019
1.5.5 5,531 8/10/2019
1.5.4 7,071 7/19/2019
1.5.3 8,326 6/7/2019
1.5.2 2,875 5/29/2019
1.5.1 37,766 3/6/2019
1.5.0 5,790 1/26/2019
1.4.11 20,821 8/2/2018
1.4.10 7,112 6/11/2018
1.4.9 6,531 4/12/2018
1.4.7 6,281 2/10/2018
1.4.6 3,966 12/24/2017
1.4.5 2,976 12/6/2017
1.4.4 3,477 11/16/2017
1.4.3 7,695 8/5/2017
1.4.2 4,584 6/20/2017
1.4.1 2,411 6/19/2017
1.4.0 3,295 4/25/2017
1.3.2 21,602 9/3/2016