WinSparkle, Squirrel and Velopack: auto updates for Windows apps

Windows has no built-in way for an app sold outside the Microsoft Store to update itself, so you pick a library. Here's how WinSparkle works and how to set it up, where Squirrel.Windows stands today, what Velopack replaced, and how to send updates only to licensed customers.

An open window with sparks drifting through it

If you ship a native Windows app from your own website, there are three open source updaters you'll keep running into: WinSparkle, Squirrel.Windows and Velopack. They solve the same problem in two different ways.

  • WinSparkle adds an update check to an app that already has an installer. It reads a feed, shows a window, downloads your new installer and runs it.
  • Squirrel.Windows and Velopack replace the installer. They package your app, install it per user, and swap in new versions with small delta downloads.

Everything below was checked against each project's repository and documentation on November 19, 2026.

Which one to pick

WinSparkle Squirrel.Windows Velopack
Latest release 0.9.4, July 2026 2.0.1, September 2020 1.2.161, September 2026
Actively developed Yes No. The README asks for maintainers Yes
What it is A DLL that checks a feed and runs your installer An installer and updater for .NET apps An installer and updater for several languages
Works with your existing installer Yes: MSI, Inno Setup, NSIS No, it replaces it No, it replaces it
Languages C and C++, C# through P/Invoke, community bindings for Python and Go C# C#, Rust, JavaScript, C++, Python
Feed Sparkle appcast (XML) RELEASES file releases.win.json
Delta updates No Yes Yes
Install location Wherever your installer puts it Per user, in %LocalAppData% Per user by default, per machine with an MSI
Platforms Windows Windows Windows, macOS, Linux
License MIT MIT MIT

The short version:

  • You have an installer you're happy with, or a C++ app: use WinSparkle
  • You're starting fresh, especially on .NET, and want small background updates: use Velopack
  • You're on Squirrel.Windows today: plan a move to Velopack, which was built to migrate from it
  • You already ship a Mac version with Sparkle: WinSparkle reads the same feed format and uses compatible signing keys

WinSparkle

WinSparkle is the Windows counterpart of the Sparkle framework for macOS. It's a single DLL with a C API and, in its documentation's words, "no additional dependencies, not even the C runtime". The official builds cover x86, x64 and arm64 and run on Windows 7 and later.

1. Add the DLL

Download WinSparkle.dll from the project's GitHub releases, or install the WinSparkle NuGet package. Ship the DLL next to your executable.

2. Tell it who your app is

WinSparkle reads your app's name, version and company from the version resource of your executable: the ProductName, ProductVersion and CompanyName fields. Most build setups fill those in already. If yours doesn't, set them in code before initializing:

win_sparkle_set_app_details(L"My Company", L"MyApp", L"1.4.0");

3. Initialize it

Call these once your app has started, right before the event loop:

#include <winsparkle.h>

win_sparkle_set_appcast_url("https://updates.myapp.com/appcast.xml");
win_sparkle_set_eddsa_public_key("base64-encoded-public-key");
win_sparkle_init();

And two more:

win_sparkle_check_update_with_ui(); // from your "Check for updates" menu item
win_sparkle_cleanup();              // when the app exits

That's the whole integration. WinSparkle does nothing on first launch. On the second run it asks the user whether to check for updates automatically, and from then on it checks once a day. You can change the interval with win_sparkle_set_update_check_interval(), in seconds, with a minimum of one hour.

4. Use it from C

There's no official managed wrapper. The documentation's approach is P/Invoke:

[DllImport("WinSparkle.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern void win_sparkle_init();

[DllImport("WinSparkle.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern void win_sparkle_set_appcast_url(string url);

[DllImport("WinSparkle.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
public static extern void win_sparkle_set_eddsa_public_key(string publicKey);

For a .NET app there's also NetSparkle, a separate project written in C# that reads the same appcast format. The page on ClickOnce and .NET auto updates covers it.

5. Generate a key and sign your installer

WinSparkle's getting started guide says every update must be signed. Since version 0.9.0 that means an EdDSA (Ed25519) signature, made with the winsparkle-tool that ships with the library. Generate a key pair once:

winsparkle-tool generate-key --file private.key

It saves the private key to the file and prints the public key, which is the string you pass to win_sparkle_set_eddsa_public_key(). Then sign each installer:

winsparkle-tool sign --verbose --private-key-file private.key MyApp-Setup.exe

The output is the pair of attributes to paste into your feed: sparkle:edSignature="..." and length="...".

Older tutorials use DSA signatures and win_sparkle_set_dsa_pub_pem(). DSA still works but was deprecated in 0.9.0, and the project says it will be removed. If you set an EdDSA key, DSA signatures are ignored.

This signature is separate from Authenticode. WinSparkle's signature tells your app the update came from you. The Authenticode signature you add with SignTool is what Windows and SmartScreen look at. You need both.

6. Publish the appcast

The feed is the same RSS-based appcast Sparkle uses on macOS. This example combines the attributes WinSparkle documents:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
  <channel>
    <title>MyApp updates</title>
    <item>
      <title>Version 1.4.0</title>
      <sparkle:version>1.4.0</sparkle:version>
      <sparkle:releaseNotesLink>https://myapp.com/release-notes/1.4.0.html</sparkle:releaseNotesLink>
      <sparkle:minimumSystemVersion>10.0.19045</sparkle:minimumSystemVersion>
      <pubDate>Thu, 19 Nov 2026 10:00:00 +0000</pubDate>
      <enclosure url="https://updates.myapp.com/MyApp-Setup-1.4.0.exe"
                 sparkle:os="windows-x64"
                 sparkle:installerArguments="/SILENT /SP- /NOICONS"
                 sparkle:edSignature="JhQ69m...OBw=="
                 length="1736832"
                 type="application/octet-stream" />
    </item>
  </channel>
</rss>
Attribute or tag What it does
sparkle:version The version WinSparkle compares with the installed one
sparkle:os windows, windows-x86, windows-x64 or windows-arm64. The last three match the DLL your app loaded
sparkle:installerArguments Passed to your installer. The documented values are /SILENT /SP- /NOICONS for Inno Setup, /passive for MSI and /S for NSIS
sparkle:edSignature The signature from winsparkle-tool sign
sparkle:minimumSystemVersion A Windows version like 10.0.22000, which is Windows 11
sparkle:releaseNotesLink A page shown inside the update window

What shows in that window is your release notes, so write them for customers. There are release notes templates sized for an update dialog.

What WinSparkle doesn't do

  • No delta updates. Every update downloads the full installer
  • No channels. The sparkle:channel tag from Sparkle 2 isn't read, so run a separate feed for beta builds
  • No silent install of its own. It launches your installer, and whether that needs admin rights depends on the installer. The documentation recommends the installer isn't completely invisible. The page on Inno Setup and NSIS auto updates covers the installer side
  • Only http and https feeds

The project is MIT licensed and free to use. Its author asks companies that depend on it to buy a support subscription, which is a request and not a license condition.

Squirrel.Windows

Squirrel.Windows was the default answer for .NET desktop apps for years, and Electron's built-in autoUpdater still uses it for apps packaged with a traditional installer. How it works:

  • Setup.exe installs the app for the current user into %LocalAppData%\MyApp, with no admin prompt
  • Each version lives in its own app-1.0.0 folder, and shortcuts go through Update.exe
  • Updates are .nupkg packages, full and delta, listed in a plain text RELEASES file with a SHA1, a filename and a size on each line

The update code is short:

using (var mgr = new UpdateManager("https://updates.myapp.com/releases"))
{
    await mgr.UpdateApp();
}

And you build a release from a NuGet package:

Squirrel --releasify MyApp.1.0.0.nupkg

The problem is maintenance. The last release, 2.0.1, came out in September 2020. The README opens with "Contributors Needed", and the issue it links to, a proposal to restart the project, has been open since 2019. The repository isn't archived, and apps built on it still work, but nobody is fixing bugs.

Its documentation also lists limits you'll feel: installs are per user only, company policies that block executables in %LocalAppData% break it, and antivirus false positives are a known problem.

If you're choosing today, don't start on Squirrel.Windows. If you're on it, the next section is your way out.

Velopack

Velopack is the successor, and there's a full Velopack guide with signing, channels and hosting. It started in 2021 as Clowd.Squirrel, a fork of Squirrel.Windows; that fork is now archived and its README points to Velopack. The core was rewritten in Rust, it supports Windows, macOS and Linux, and it has libraries for C#, Rust, JavaScript, C++ and Python.

The C# integration is one line at the very start of Main:

static void Main(string[] args)
{
    VelopackApp.Build().Run();
    // your other startup code
}

Then check for updates wherever suits your app:

var mgr = new UpdateManager("https://updates.myapp.com/releases");

var newVersion = await mgr.CheckForUpdatesAsync();
if (newVersion == null)
    return; // no update available

await mgr.DownloadUpdatesAsync(newVersion);
mgr.ApplyUpdatesAndRestart(newVersion);

To build a release, publish your app to a folder and pack it:

dotnet tool install -g vpk
vpk pack --packId YourAppId --packVersion 1.0.0 --packDir .\publish --mainExe yourMainApp.exe

That produces YourAppId-Setup.exe, a portable zip, full and delta packages, and the feed file releases.win.json. Upload the folder to any static host. Delta updates are on by default.

Things worth knowing:

  • Install location. Setup.exe installs per user into %LocalAppData% with no admin prompt. For a per-machine install, Velopack can build an MSI
  • Migrating from Squirrel. Swap the NuGet package, replace SquirrelAwareApp with VelopackApp.Build().Run(), and ship it as a normal update. Velopack still writes a legacy RELEASES file so installed Squirrel apps can find the new version
  • Update sources. Besides a plain URL there are built-in sources for GitHub, GitLab and Gitea releases, and you can write your own by implementing IUpdateSource

Updates only for licensed customers

If you sell your app, you may not want every old copy to receive every new version for ever. The usual cases are a subscription that lapsed, a refund, or a paid upgrade to a new major version. That takes two things: the app has to identify its customer when it checks, and the server has to decide what that customer gets.

WinSparkle has the first part built in. You set a header and it's sent with the feed request and, since version 0.9.3, with the download too:

win_sparkle_set_http_header("Authorization", "Bearer YOUR-LICENSE-KEY");

The second part is a feed that's generated per request and knows your licenses. LicenseSeat provides that. You upload each release, it signs the installer with your product's Ed25519 key on the server, and it serves an appcast whose Windows items carry the sparkle:os and sparkle:edSignature attributes WinSparkle reads:

win_sparkle_set_appcast_url("https://licenseseat.com/p/<product-slug>/appcast.xml");
win_sparkle_set_eddsa_public_key("<the Ed25519 public key from your dashboard>");

With the feed set to licensed, a request without a valid license key gets an empty feed, so an unlicensed copy sees "no updates" and the version the customer has keeps working. A license whose year of updates has ended is still offered every release published before it ended. If you also ship a Mac version, the same feed serves Sparkle.

Velopack and Squirrel read their own feed formats, which LicenseSeat doesn't generate. For those, the plain version endpoint works with a custom update source:

curl https://licenseseat.com/p/<product-slug>/latest

It returns the latest version, a download URL and a SHA-512. Velopack's documentation says custom authentication means implementing IUpdateSource yourself, so budget for that code.

The guide to shipping desktop updates covers the feeds in detail. LicenseSeat charges a flat monthly fee and takes 0% of your revenue.

Sign the installer too

Whichever updater you choose, the file it downloads is an installer that Windows will inspect. An unsigned one triggers SmartScreen on every release. Sign it with the same publisher identity each time, so the reputation your earlier versions earned carries over. The cheapest route for most developers is now Azure Trusted Signing, and the page on EV code signing certificates explains why paying more no longer skips the warning.

Common questions about Windows auto updates

What is WinSparkle?

An open source library that adds update checks to a Windows app. It reads a Sparkle-style appcast, shows the user what's new, downloads your installer and runs it. It's a single DLL with a C API.

Is WinSparkle the same as Sparkle?

No. Sparkle is a macOS framework and WinSparkle is a separate project for Windows by a different author. They share the appcast format and compatible EdDSA keys, so one team can use both.

Is Squirrel.Windows still maintained?

Not actively. Its last release was 2.0.1 in September 2020 and its README asks for maintainers. Velopack, which grew out of a Squirrel fork, is where development continues.

What is the difference between Squirrel and Velopack?

Velopack is a rewrite of the same idea, and it's the one being developed. It supports macOS and Linux as well as Windows, works from several languages, and can migrate an installed Squirrel app in a normal update.

Does WinSparkle support delta updates?

No. It downloads and runs your full installer each time. If small incremental downloads matter, Velopack does them by default.

Can I use WinSparkle with a C# or .NET app?

Yes, through P/Invoke, using the declarations in WinSparkle's documentation. NetSparkle is an alternative written in C# that reads the same feed.

Do I need admin rights to update a Windows app?

It depends on where the app is installed. Squirrel and Velopack install per user and never ask. With WinSparkle it's up to your installer: one that writes to Program Files will prompt on every update.

Do I need a server for Windows auto updates?

No. All three read static files you can host anywhere. You need a server that generates the feed only when the answer should depend on who's asking, as with licensed updates.