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: quit on decompression errors in NSIS #5888

Merged

Conversation

indutny
Copy link
Contributor

@indutny indutny commented May 13, 2021

Unlike 7zip, zip decompression pushes a return value on stack. If it not
success installer should fail and display the error to the user
instead of assuming that installation was successful.

One of the causes of decompression errors might be a lingering child
process that still uses dlls and node.js bindings so that they cannot be
overwritten. In such case, prior to this patch nsis installer would
update some of the non-locked files and start the app as if it had been
fully updated.

Unlike 7zip, zip decompression pushes a return value on stack. If it not
`success` installer should fail and display the error to the user
instead of assuming that installation was successful.

One of the causes of decompression errors might be a lingering child
process that still uses dlls and node.js bindings so that they cannot be
overwritten. In such case, prior to this patch nsis installer would
update some of the non-locked files and start the app as if it had been
fully updated.
@indutny-signal
Copy link
Contributor

Here's how the error message looks like:

image

@develar develar merged commit ef981ab into electron-userland:master May 14, 2021
@indutny-signal
Copy link
Contributor

Yay. Thank you!

@indutny indutny deleted the fix/report-decompress-errors branch May 14, 2021 22:39
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.

None yet

3 participants