electron / electron/update-electron-app

There is a way to Prevent auto-update installation on app.quit()?

Open
#154 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
824
Forks
145
Avg merge
9h 22m
Merged PRs (30d)
3

Description

have a modal that appears when an update is available with the following details:

• Title: “New update has been downloaded”
• Buttons: “Update Now”, “Later”

The expected behavior is:

• Clicking “Update Now” should restart the app and apply the update.
• Clicking “Later” should close the modal without updating.

However, if the user closes the app using the X button (triggering app.quit()), the app updates and relaunches with the new version on the next run.

Question:
Is there a way to control this behavior so that the update only happens when the “Now” button is clicked? I want to ensure that the app only updates when the user explicitly chooses to do so by clicking “Now”.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.