Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: windows auto-update feature when selecting install for all users #1556

Merged
merged 3 commits into from
Jun 26, 2020

Conversation

rafaelramalho19
Copy link
Contributor

Fixes #1514

@rafaelramalho19 rafaelramalho19 self-assigned this Jun 22, 2020
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't we also need to add code that sets _installOnQuit ? (set it to true in update-downloaded etc)?

@rafaelramalho19
Copy link
Contributor Author

don't we also need to add code that sets _installOnQuit ? (set it to true in update-downloaded etc)?

Yes! Sorry about that, was juggling between my macbook & desktop and ended up screwing the one I wanted to push 😅

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, should be safe to merge (assuming we don't hit any other upstream bugs 🤞 😬)

TL;DR on why disabling autoInstallOnAppQuit is "safe"

autoUpdater.quitAndInstall() docs state that:

Note: It is not strictly necessary to call this function to apply an update, as a successfully downloaded update will always be applied the next time the application starts.

In other words, according to Electron docs, autoUpdater.autoInstallOnAppQuit = false does not disable installation of updates, only postpones it until the next time app starts – so pretty safe from the auto-update standpoint.

@rafaelramalho19 rafaelramalho19 merged commit c26525f into master Jun 26, 2020
@rafaelramalho19 rafaelramalho19 deleted the fix/windows-auto-update-all-users branch June 26, 2020 13:33
lidel added a commit that referenced this pull request Oct 7, 2020
@lidel lidel mentioned this pull request Oct 7, 2020
6 tasks
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.

Auto update not working on Windows when installed globally for all users
2 participants