electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.46k stars 1.71k forks source link

Error: No valid update available, can't quit and install #8257

Open James-Shared-Studios opened 3 weeks ago

James-Shared-Studios commented 3 weeks ago

We have experienced the exact same issue as reported many years ago here: Error: No update available, can't quit and install #3269 and Error no valid update available, can't quite and install / EExist file already exist.

the latest update has been downloaded, but it can not be installed, and getting the following error: error: "Error: No valid update available, can't quit and install\n at m.install (C:\\Users\\Portal\\AppData\\Local\\Programs\\pragent-dev\\resources\\app\\dist\\main\\webpack:\\pragent-dev\\node_modules\\electron-updater\\out\\BaseUpdater.js:45:32)\n at m.quitAndInstall (C:\\Users\\Portal\\AppData\\Local\\Programs\\pragent-dev\\resources\\app\\dist\\main\\webpack:\\pragent-dev\\node_modules\\electron-updater\\out\\BaseUpdater.js:13:34)\n at IpcMainImpl.<anonymous> (C:\\Users\\Portal\\AppData\\Local\\Programs\\pragent-dev\\resources\\app\\dist\\main\\webpack:\\pragent-dev\\src\\main\\main.ts:1086:29)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)" ---- event: {}

It does not seem that a valid solution has ever been discovered. Is there any solution available now? Please advise. Thank you.

MadEddieFFS commented 1 day ago

We had this recently and it was due to the signing certificate not validating as electron updater deletes the downloaded files and so this next step fails to find the files