Skip to content

feat(updater): allow disabling auto install on quit - #173

Open
zamuwelle wants to merge 1 commit into
NativePHP:mainfrom
zamuwelle:feat/auto-install-on-quit-config
Open

zamuwelle wants to merge 1 commit into
NativePHP:mainfrom
zamuwelle:feat/auto-install-on-quit-config

Conversation

@zamuwelle

Copy link
Copy Markdown
Contributor

Fixes #90

electron-updater installs downloaded updates automatically when the app quits. On Windows the NSIS installer runs silently and can take minutes, so relaunching the app during that window leaves it stuck on the loading screen.

This makes the behavior configurable with NATIVEPHP_AUTO_INSTALL_ON_APP_QUIT (default true, so existing apps keep the current behavior). Set it to false to control installation and call Updater::quitAndInstall() when ready. This addresses the feedback on #92 that disabling it unconditionally would be a breaking change. Existing apps need to republish config/nativephp.php (or add the key) to use the setting.

Tests

  • npx tsc --noEmit -p electron-plugin/tsconfig.json: passed
  • vendor/bin/pint --test: passed

Silent NSIS install can take minutes on Windows; relaunch during
install leaves app stuck. Default stays true.

Fixes NativePHP#90
@zamuwelle
zamuwelle force-pushed the feat/auto-install-on-quit-config branch from 5e19df2 to ffff37a Compare October 29, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoInstallOnAppQuit causes stuck app on Windows when user relaunches during silent NSIS install

1 participant