squirrelWindows key contains set of options instructing electron-builder on how it should build Squirrel.Windows.
Requirements
To use Squirrel.Windows please installelectron-builder-squirrel-windows dependency.
To build for Squirrel.Windows on macOS, please install mono (brew install mono).
Your app must be able to handle Squirrel.Windows startup events that occur during install and uninstall. See electron-squirrel-startup.
Configuration
A URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). Defaults to the Electron icon.If you don’t plan to build windows installer, you can omit it. If your project repository is public on GitHub, it will be
https://github.com/${u}/${p}/blob/master/build/icon.ico?raw=true by default.The path to a .gif file to display during install.
build/install-spinner.gif will be used if exists (it is a recommended way to set) (otherwise default).Whether to create an MSI installer. Defaults to
false (MSI is not created).A URL to your existing updates. Or
true to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.Authentication token for remote updates.
Use
appId to identify package instead of name.The custom squirrel vendor dir. If not specified will use the Squirrel.Windows that is shipped with electron-installer.
Private option for package name override.
Why NSIS is Recommended
NSIS is the recommended installer format for Windows because:- Better maintained: NSIS receives more active development and updates
- More flexible: Extensive customization options through scripts
- Smaller size: Better compression results in smaller installer files
- Modern features: Better support for Windows 10/11 features
- One-click installation: Default one-click installer with optional assisted mode
- Auto-updates: Better integration with electron-updater
- Code signing: More robust code signing support
Migrating from Squirrel.Windows to NSIS
To migrate from Squirrel.Windows to NSIS:- Remove the
electron-builder-squirrel-windowsdependency - Update your configuration:
- Remove Squirrel.Windows startup event handling code (if using
electron-squirrel-startup) - Update your auto-updater implementation to use NSIS-compatible updates
Example Configuration
Inherited Properties
The following properties are inherited from Common Configuration:artifactNamepublish