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:(nsis): Do not abort when uninstaller fails #5292

Merged

Conversation

o2genum
Copy link
Contributor

@o2genum o2genum commented Sep 10, 2020

This fixes #4057, the most commented open issue.

image

Current behavior: when installer detects previously installed version, it tries to run its uninstaller. And if the uninstaller is missing/entire installation directory is missing/uninstaller is damaged/uninstaller fails with error code - then the installation is aborted and the user has only one option: "Cancel" button.

Proposed behavior: ignore and proceed to installation. The most popular scenario causing the bug #4057 is user manually deleting the installation directory. After that, the user is unable to install the app again. The only way for the user to fix the issue is to manually delete the uninstall registry entry. The sole purpose of the installer is to install the app, so I think it should proceed to installation. Error logging/displaying the error in the installer window might be added latter, but the logic should never prevent the user from installing the app.

Do not abort installation when the uninstaller is missing, fails to run or returns error code.
@o2genum o2genum changed the title Do not abort when uninstaller fails fix:(nsis): Do not abort when uninstaller fails Sep 10, 2020
@develar develar merged commit ea9281b into electron-userland:master Sep 17, 2020
@ustun
Copy link

ustun commented Oct 1, 2020

@o2genum @develar This PR also closed #4057. Are you sure this issue and #4057 are the same? In that issue, installer was being stuck rather than aborted.

@o2genum
Copy link
Contributor Author

o2genum commented Oct 1, 2020

@ustun Installer getting stuck is the same issue occuring in OneClick mode. In OneClick mode, it gets aborted just the same, even though there is no "Aborted" message.

@ustun
Copy link

ustun commented Oct 2, 2020

Thank you for the reply @o2genum !

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.

NSIS Installer stuck at "Installing, please wait..."
3 participants