FloseCode.UpdateLib 2.0.8

dotnet add package FloseCode.UpdateLib --version 2.0.8
NuGet\Install-Package FloseCode.UpdateLib -Version 2.0.8
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="FloseCode.UpdateLib" Version="2.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FloseCode.UpdateLib --version 2.0.8
#r "nuget: FloseCode.UpdateLib, 2.0.8"
#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 FloseCode.UpdateLib as a Cake Addin
#addin nuget:?package=FloseCode.UpdateLib&version=2.0.8

// Install FloseCode.UpdateLib as a Cake Tool
#tool nuget:?package=FloseCode.UpdateLib&version=2.0.8

UpdateLib

UpdateLib is a .Net library that helps to provide an update mechanism for applications. It supports incremental updates and provides a simple MessageBox based UI and a overlay UI for Windows Forms. It uses a JSON based file format for update information.

The library is available on NuGet: https://www.nuget.org/packages/FloseCode.UpdateLib/

Example in VB.Net

Dim u As New FloseCode.UpdateLib.Update(programName, programExeFile, programVersion, programPath, tempPath, updateMirrorFile, New String() {"https://defaultUpdateServer"}, uid)

' Optional settings
u.StatisticsServer = "https://statisticsServer/sendStats"
u.ProductFlavor = "Portable"
u.CurrentReleaseChannel = "beta"

' Install update if one was downloaded previously
If u.InstallUpdate() Then Return

' Set version info in Windows registry, needs admin privileges
u.SetUninstallInfoInRegistry("{UUID}")

' Translate strings, uses TranslationLib
u.Translate(language, translatedProgramName)

' Search for update
u.SearchUpdateAsync()

Example Update File "versions.json"

{
  "displayVersion": "1.0.0beta",
  "version": "0.9.95",
  "releaseNotesUrl": "https://website/releasenotes",
  "projectUrl": "https://website",
  "framework": "net4.5",
  "categories": [
    {
      "files": [
        {
          "name": "program.exe",
          "sha256": "172A2702F45834029D9915F898360E2DF65BDE4A4EE16BD5E0A76C547825E43C"
        },
        {
          "name": "TranslationLib.dll",
          "sha256": "CE9E77C5AAA9E72FA121478590B1460CD8B48B0FFCC2CBFDA8E541ED0A69EEE7"
        },
        {
          "name": "UpdateLib.dll",
          "sha256": "4F39EAA0EA7E88B0B664853C000D513F5F5E74183987CF1505D5A2A835340F71"
        }
      ]
    },
    {
      "name": "someCategory",
      "files": [
        {
          "name": "someFile",
          "sha256": "8D51E8FA57B4098C94C899F245CB65E9203443ED41833009BA24589A750A0A15"
        }
      ]
    }
  ]
}

License

Copyright: Flose 2006 - 2022 https://www.mal-was-anderes.de/

Licensed under the LGPLv3: http://www.gnu.org/licenses/lgpl-3.0.html

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 is compatible.  net403 was computed.  net45 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.8 411 8/7/2022
2.0.7 708 6/4/2019
2.0.6 701 1/27/2019
2.0.5 892 11/20/2017
2.0.4 997 10/29/2016
2.0.3 1,055 10/14/2016
2.0.2 985 7/6/2016
2.0.1 999 6/19/2016
2.0.0 999 6/18/2016