| name | electron-install-persistence |
| description | Preserve post-install execution and background residency for Electron apps in Squirrel-style delivery chains. Use when the payload checks in once, then dies after install or on app close. |
| metadata | {"author":"GhostWorks"} |
Electron Install Persistence
Use this skill when a payload runs inside Electron but exits after install, update completion, or user close actions.
Focus Areas
process.argv handling for --squirrel-*
- install/update continuation behavior
- updater-parent termination or continuation logic
- quit and close suppression
- hidden
BrowserWindow keepalive patterns
- background execution without visible UI
Workflow
- Identify install/update entrypoints and
--squirrel-* handling in the main process.
- Preserve or reproduce the continuation pattern that keeps the app alive after install completes.
- If the app requires a live window to remain resident, create a hidden/background
BrowserWindow and prevent close-driven teardown.
- Neutralize only the quit/close paths that prematurely terminate residency.
- Verify that post-install launch, callback continuity, and background residency all survive the installer flow.
Output
Always report:
- install/update path inspected
- continuation logic preserved or added
- hidden-window behavior used, if any
- specific quit/close paths neutralized
- remaining blockers or unknowns