Inno Setup and NSIS auto updates: how to add them

Inno Setup and NSIS build good installers, and neither one checks for updates. Here's how apps that ship as a setup.exe update themselves anyway, the exact silent switches to use, the settings that make upgrades clean, and how to send updates only to licensed customers.

A cardboard box being repacked with a new item

Inno Setup and NSIS are the two free installer builders most independent Windows developers use. Both make a setup.exe that installs your app. Neither includes a way for the installed app to find out there's a newer version: Inno Setup's FAQ has no entry on automatic updates, and NSIS's feature list has none either.

The good news is that updating an installer-based app is a solved pattern, and the installer does most of the work. Everything below was checked against the Inno Setup and NSIS documentation, and Microsoft's, on November 19, 2026.

The pattern

Every installer-based updater, whether you write it or use a library, does these five things:

  1. Check. The app asks a server for the latest version number
  2. Compare. If the server's version is newer, tell the user or continue quietly
  3. Download the new installer to a temporary folder
  4. Verify it, with a hash or signature from the feed
  5. Run the installer silently and exit, so the installer can replace the app's files

Step 5 is where the installer matters. A well-configured installer run over an existing install is an upgrade: same folder, same uninstall entry, same shortcuts.

Make your installer upgrade cleanly

Inno Setup

Three [Setup] directives do the work:

[Setup]
AppId={{8C2F1E5A-3B7D-4E2A-9F61-0A1B2C3D4E5F}
AppVersion=1.4.0
PrivilegesRequired=lowest
CloseApplications=yes
RestartApplications=yes
  • AppId must never change. It's how Setup recognizes an existing installation. With the same AppId, and UsePreviousAppDir at its default of yes, a new installer goes into the same folder and shares the same uninstall entry. Change it, and your update installs a second copy
  • PrivilegesRequired=lowest makes Setup run without asking for administrator rights, installing for the current user. That means no User Account Control prompt on every update. If you install for all users instead, each update needs elevation
  • CloseApplications uses the Windows Restart Manager to close programs that hold files Setup needs to replace. It defaults to yes, and when Setup runs silently it closes and restarts them without asking
  • RestartApplications relaunches your app afterwards, but only if your app registered for restart with the Windows RegisterApplicationRestart function

One condition from the documentation: an upgrade has to run in the same mode as the original install. A per-user install updated by an all-users installer, or a 32-bit install by a 64-bit one, is treated as a different application. For a complete script built around these settings, see the Inno Setup script examples.

The current version is Inno Setup 7, with 7.1.1 released on October 28, 2026. The 6.x line is still updated. The license allows commercial use, and its author asks commercial users to buy a license, without strictly requiring it.

NSIS

NSIS leaves upgrade behaviour to your script. The parts that matter for updates:

RequestExecutionLevel user
InstallDir "$LOCALAPPDATA\MyApp"

RequestExecutionLevel defaults to admin. The documentation says installers that don't write to system folders or to the machine-wide registry should specify user, and that's what avoids a prompt on each update. Keep the install folder and the uninstall registry key the same in every version, and make sure your app has exited before the installer copies files.

The current version is NSIS 3.13, released on September 27, 2026, under the zlib license.

The silent switches

For Inno Setup, run the downloaded installer like this:

MyApp-Setup-1.4.0.exe /SILENT /SP- /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS
Switch What it does
/SILENT Hides the wizard and shows only the progress window
/VERYSILENT Hides the progress window too
/SP- Skips the "This will install... Do you wish to continue?" prompt
/SUPPRESSMSGBOXES Suppresses message boxes. Only works with one of the silent switches
/NORESTART Stops Setup from restarting Windows
/CLOSEAPPLICATIONS Closes applications using files that need updating
/RESTARTAPPLICATIONS Restarts them afterwards, if they support it

Prefer /SILENT to /VERYSILENT for updates. People should see that something is happening. And always pass /NORESTART: the documentation warns that a very silent Setup that needs a reboot "will reboot without asking".

For NSIS there are two switches:

MyApp-Setup-1.4.0.exe /S /D=C:\Users\me\AppData\Local\MyApp

/S runs silently. /D sets the install folder; it must be the last parameter, and it must not be quoted even when the path has spaces. A silent NSIS installer shows nothing at all, so show your own "updating" message before you launch it.

The silent install switches reference has the full list for both tools, with the uninstall commands, log options and exit codes, and the same for MSI, InstallShield and WiX installers.

Add the update check

You have three ways to do steps 1 to 4.

Use an updater library

Library Language Feed Notes
WinSparkle C and C++, others through bindings Sparkle appcast Shows an update window, verifies an EdDSA signature, runs your installer with arguments from the feed
NetSparkle C# Sparkle appcast The same idea for .NET, with WPF, Windows Forms and Avalonia windows
AutoUpdater.NET C# A small XML file The simplest. Optional checksum, no signature scheme

All three are open source under the MIT license, and all three end by running your installer. WinSparkle's documentation lists the arguments to put in the feed: /SILENT /SP- /NOICONS for Inno Setup and /S for NSIS. The pages on WinSparkle and on ClickOnce and .NET auto updates have the setup for each.

Write it yourself

In any language, it's an HTTPS request, a version comparison, a download and a process launch. The details that go wrong:

  • Compare versions as numbers. As text, 1.10 sorts before 1.9
  • Verify before running. Check the download against a SHA-256 or SHA-512 from your feed, served over HTTPS
  • Exit after launching the installer. Windows won't replace a running executable. Start the installer as its own process, then quit
  • Don't check on every keystroke. Once at startup and once a day is the convention

Let the installer download

Since version 6.1, Inno Setup's scripting can download files and check their SHA-256 hash, with DownloadTemporaryFile and CreateDownloadPage. That's meant for small "web installers" that fetch the real payload during setup. It doesn't make the installed app check for updates, so you still need one of the two approaches above.

What about winget?

The Windows Package Manager understands both installer types. In a winget manifest you can set the installer type to inno or nullsoft, and Microsoft's documentation says the client then sets the silent switches for you. Once your app is in the community repository, winget upgrade --all updates it along with everything else.

It's worth doing, and it isn't an auto updater. winget upgrades when a user runs the command, and only for users who have it and use it. It also needs your installer to register a version in Windows' list of installed apps, because that's how it matches what's installed against your manifest. Treat it as a second channel next to the update check in your app.

Sign every installer

An updater downloads and runs an executable, which is exactly what Windows is suspicious of. Sign each installer with the same publisher identity, using SignTool, so the SmartScreen reputation from your earlier releases carries over. For most independent developers the cheapest way to get a certificate is now Azure Trusted Signing.

Signing is also a second check for your updater. Before running a downloaded installer, you can confirm its Authenticode signature names your company, which protects users even if your download server is compromised.

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. A static file on a web server can't make that decision, because it gives the same answer to everyone.

LicenseSeat provides a feed that can. You upload each installer, and it serves your product's releases in two forms an installer-based app can use:

  • A Sparkle appcast for WinSparkle and NetSparkle, at https://licenseseat.com/p/<product-slug>/appcast.xml, with an Ed25519 signature on each installer
  • A JSON endpoint for your own check, with the version, a download URL and a SHA-512:
curl -H "Authorization: Bearer YOUR-LICENSE-KEY" https://licenseseat.com/p/<product-slug>/latest

With the feed set to licensed, a request without a valid license key gets no update, 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. There's also a permanent download link for your website, https://licenseseat.com/p/<product-slug>/download/windows, that always serves the newest installer.

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

Common questions about installer-based updates

Does Inno Setup have auto update?

No. Inno Setup builds the installer and handles upgrades when a newer installer is run over an existing install. Checking for a new version and downloading it is up to your app or an updater library.

Does NSIS have a built-in updater?

No. NSIS has a silent mode and download plug-ins, and no feature that checks for updates. Pair it with an updater library or your own check.

How do I run an Inno Setup installer silently?

Pass /SILENT to hide the wizard, or /VERYSILENT to hide the progress window as well. Add /SP- to skip the opening prompt, /SUPPRESSMSGBOXES to suppress message boxes, and /NORESTART so Windows is never rebooted.

How do I run an NSIS installer silently?

Pass /S. To set the install folder add /D=C:\path as the last parameter, without quotes.

Why does my update install a second copy of the app?

In Inno Setup, the AppId changed between versions, or the new installer ran in a different mode: all users where the original was per user, or 64-bit where the original was 32-bit. Keep AppId and the install mode the same for the life of the product.

How do I update without a UAC prompt?

Install per user. In Inno Setup set PrivilegesRequired=lowest; in NSIS set RequestExecutionLevel user and install under the user's profile. An app installed in Program Files needs elevation for every update.

Is Inno Setup free for commercial use?

Its license permits commercial use. Its author asks commercial users to buy a license and says the purchase isn't strictly required.

Can winget keep my app updated?

It can update your app when a user runs winget upgrade. It doesn't replace an update check inside the app, because not every customer uses winget.