-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
NSIS with oneClick set to true does not relaunch the app after update #884
Comments
macOS also doesn't relaunch app — update silently installed on quit. Are you sure? |
It does for me. Is it not supposed to relaunch the app after the update? I will post some of our updating code then. |
I don't think we are doing anything special below. We have IPC handlers that are promises and check for updates on init. If an update is found: A modal pops up, silently downloads, then quits, removes old, installs new app, then boots it back up on Mac. Using
|
In general, I don't recommend to call Please see https://github.com/develar/onshape-desktop-shell/blob/nsis/src/AppUpdater.ts Why do you need to bother user? Just show notification (native) that "Version ${releaseName} is downloaded and will be automatically installed on Quit" and nothing else. Don't interrupt user work. Exactly as Google Chrome update works (even without notification, only toolbar icon has different colour). Ok, ok, up to you. If you say that explicit quitAndInstall on macOs does relaunch — I will check and fix NSIS updater. |
If you are unable to reproduce it and/or its too heavy to fix, I will look into the Google Chrome way and potentially remind people to quit the app so they can get the latest versions. There are pros and cons to both, as you may know. For example a pro of "interrupting" way would be: An example of a con would be: In our case, the application is more of a platform, and its okay to interrupt the customer because no data is lost or needed to be saved via our application. All in all, I appreciate the guidance. Thanks! |
You are right, thanks. But in this case (explicit |
I wasn't going to be picky, but the install update showing progress would be great! An installer gif or a progress bar (similar to a normal install) would be awesome. |
Also, not sure if you know about this, but if you have the app on your taskbar on Windows and the app updates, the shortcut gets removed. It works fine on Mac, but I suspect that the NSIS updater deletes the shortcut when uninstalling the old app. |
I have a similar need for an application that I am developing - where the application is open/active for a very long time and the user is not going to close and restart the application. However, I am encountering the same issue whereby the autoUpdater.quitAndInstall() call does quit and update the application, however, it does not restart the application. As an aside - I am also considering adding an update check silently and then presenting the user with a prompt that the application will be upgraded in X minutes with the option to 'dismiss' this instance of the update. Naturally, I will need the auto-restart issue to work before I do this. Any ideas as to what may be causing this issue? I found a similar issue raised several years ago by the looks of things. Not sure if it is relevant... |
Fixed in electron-auto-updater 0.6.0. Please note — currently, app will be relaunched only if you don't set |
@pwdl I hope your issue is fixed as well. |
@develar - do you know if this will fix @Jflinchum issue as well, or should that be a different issue? I notice similar behavior. When you do auto-update, it installs it in a new folder, deletes the old folder, and leaves the dock icon referencing a folder that doesn't exist. Example workflow:
|
@SxMShaDoW please file your comment as new issue. |
Description of the problem: Windows NSIS with oneClick set to true does not relaunch the app after update (using quitAndInstall). On the other hand, using the same build for OSX (Squirrel.Mac) it relaunches the app after updating (using the same code of quitAndInstall). This confuses the customer as there is no installergif or validation that the update is done.
Configuration looks like:
The text was updated successfully, but these errors were encountered: