Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: disable autoInstallOnAppQuit (#9726)

Abdullah Atta4ba2e900c507
diff --git a/apps/desktop/src/utils/autoupdater.ts b/apps/desktop/src/utils/autoupdater.ts
index c0e59009c..7f3255fa9 100644
--- a/apps/desktop/src/utils/autoupdater.ts
+++ b/apps/desktop/src/utils/autoupdater.ts
@@ -37,7 +37,11 @@ async function configureAutoUpdater() {
config.releaseTrack === "stable" &&
autoUpdater.currentVersion.prerelease.length > 0;
autoUpdater.allowPrerelease = false;
- autoUpdater.autoInstallOnAppQuit = true;
+ // Do NOT auto-install on quit. On Windows, if the system shuts down while
+ // the NSIS installer is running, it first removes all old files and then
+ // gets killed before copying new ones — leaving an empty install directory.
+ // Updates should only be installed when the user explicitly triggers it.
+ autoUpdater.autoInstallOnAppQuit = false;
autoUpdater.disableWebInstaller = true;
}