Skip to content
WinSparkle updates

Update a WinSparkle application

This guide connects WinSparkle in your Windows application to Seatify. At the end, WinSparkle finds a new release, downloads the installer and runs it. Seatify applies the licensing rules of the product to each check.

Before you start

  • A product with a published release that has a Windows installer, an .exe or an .msi. See Publish a release.
  • Your application uses WinSparkle. A licensed product needs WinSparkle 0.9.3 or later. Earlier versions do not send the license key when they download the file.
  • An EdDSA key pair. winsparkle-tool generate-key creates it. See the WinSparkle documentation.
  • For a product with the licensed distribution setting, your application stores the license key. See Add your application. An open product does not need a license key.

Steps

Add the feed URL

Copy the WinSparkle address from the Distribution tab of the product in the dashboard. Add the architecture of your build, and set the address before win_sparkle_init:

#include <winsparkle.h>

win_sparkle_set_appcast_url(
    "https://dist.seatify.dev/v1/products/<product id>/appcast.xml?platform=windows&arch=amd64");
win_sparkle_set_eddsa_public_key("<your public key>");
win_sparkle_init();
  • arch is amd64, x86 or arm64. Without arch, a release with files for several architectures answers 404.
  • If a release ships both an .exe and an .msi, add &filetype=exe or &filetype=msi. See Architectures and installers.

Send the license key

Skip this step for an open product.

Send the license key in the Seatify-License-Key header. Set the header before win_sparkle_init. WinSparkle sends it with the check and with the download.

win_sparkle_set_http_header("Seatify-License-Key", licenseKey);

Set the version

WinSparkle compares sparkle:version of the feed with the build version of your application. sparkle:version is the build of the release. When the release has no build, it is the version of the release. Set the build version to the version of your application:

win_sparkle_set_app_build_version(L"1.4.0");

Without this call, WinSparkle reads ProductVersion from your executable.

Add the version to the feed URL too, such as &version=1.4.0. The feed then stays in the channel of that version. Without a version, the feed holds the newest stable release.

Sign and upload the installer

Sign the installer with winsparkle-tool:

winsparkle-tool sign -f private.key MyApp-1.4.0-x64-setup.exe

The tool prints one line, such as sparkle:edSignature="…" length="…". Upload the installer to the release. Paste the line into the vendor signature of the file in the dashboard. The dashboard keeps only the signature. It warns you when the length does not match the file.

WinSparkle checks the signature when your application sets a public key. Seatify does not check the vendor signature. The feed serves a file without a vendor signature too, with no sparkle:edSignature. Sign every installer.

Then publish the release.

Test the feed

curl "https://dist.seatify.dev/v1/products/$PRODUCT_ID/appcast.xml?platform=windows&arch=arm64" \
  -H "Seatify-License-Key: $LICENSE_KEY"

The feed holds the newest release and its installer:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
  <channel>
    <title>Beacon Studio</title>
    <item>
      <title>1.4.0</title>
      <pubDate>Sun, 20 Sep 2026 23:00:00 +0000</pubDate>
      <sparkle:version>1400</sparkle:version>
      <sparkle:shortVersionString>1.4.0</sparkle:shortVersionString>
      <description sparkle:format="plain-text">Updates through Sparkle.</description>
      <enclosure url="https://dist.seatify.dev/v1/products/<product id>/releases/1.4.0/artifacts/BEACON-1.4.0-arm64-setup.exe"
                 length="50" type="application/octet-stream" sparkle:os="windows-arm64"
                 sparkle:edSignature="<the signature from winsparkle-tool>"></enclosure>
    </item>
  </channel>
</rss>

url is a download address of the Distribution API. It needs the license key too.

A feed without an <item> tells WinSparkle that no update exists.

Handle the answer

WinSparkle reads a feed only from an answer with the status 200. For any other status, WinSparkle stops the check and calls the callback that you set with win_sparkle_set_error_callback. WinSparkle shows the error only when the user started the check.

StatusCauseWhat to do
200The feed has an item for the newest release, or no item.No action is needed. WinSparkle compares the version and offers a newer release.
400The query is not valid, such as an unknown architecture.Correct the feed URL.
401The license key is missing on a licensed product, or the key is not valid.Ask the user for a valid key.
403Seatify refused the license, for example because it has expired or is suspended.Call Validate to learn the reason and show it to the user.
404Several files of the release match.Add arch or filetype to the feed URL. The message of the answer names the problem.
429Your application sent too many requests.Try again later.

A license that has expired under the After expiry rule that keeps access to older releases is not refused. Its feed holds the newest release that it covers.

Architectures and installers

  • The item names the architecture of the file in sparkle:os: windows-x64, windows-x86 or windows-arm64. A universal file is windows. A 64-bit WinSparkle ignores an x86 item.
  • A universal file matches a feed for any architecture. A file for the exact architecture wins over a universal file.
  • A release that ships both an .exe and an .msi needs filetype in the feed URL. Without it, the feed answers 404.

Release notes

WinSparkle shows the release notes as HTML. The line breaks of the notes are lost. Write the notes of a Windows release as one paragraph.

Beta and version lines

WinSparkle has no channels of its own. The feed URL chooses the channel. See Channels.

  • Add &channel=beta to the feed URL to offer beta releases.
  • Add &constraint=2 to keep your application on version 2. See Newest release.

To let the user choose the channel, build the feed URL at run time and set it before win_sparkle_init.

Next steps