Hi,
I'm attempting to use electron-updater for the first time (previously used Squirrel for windows) but I am getting an error in the logs when it is attempting to "download differentially". I am using an S3 bucket. The error is:
[2018-10-04 16:09:24.332] [error] Cannot download differentially, fallback to full download: Error: ENOENT: no such file or directory, open 'C:\Users\James\AppData\Roaming\my-app\__installer.exe'
at C:\Users\James\AppData\Local\Programs\my-app\resources\app.asar\node_modules\electron-updater\src\differentialDownloader\DifferentialDownloader.ts:119:29
at Generator.next (<anonymous>)
From previous event:
at GenericDifferentialDownloader.doDownloadFile (C:\Users\James\AppData\Local\Programs\my-app\resources\app.asar\node_modules\electron-updater\src\differentialDownloader\DifferentialDownloader.ts:118:82)
at GenericDifferentialDownloader.downloadFile (C:\Users\James\AppData\Local\Programs\my-app\resources\app.asar\node_modules\electron-updater\src\differentialDownloader\DifferentialDownloader.ts:92:17)
at GenericDifferentialDownloader.doDownload (C:\Users\James\AppData\Local\Programs\my-app\resources\app.asar\node_modules\electron-updater\src\differentialDownloader\DifferentialDownloader.ts:79:17)
at C:\Users\James\AppData\Local\Programs\my-app\resources\app.asar\node_modules\electron-updater\src\differentialDownloader\GenericDifferentialDownloader.ts:6:16
at Generator.next (<anonymous>)
It appears to be looking for the latest installer as __installer.exe which does not exist in my AppData\Roaming\my-app\ folder.... but there is a MyApp Setup 0.0.5.exe in the AppData\Roaming\my-app\__update__\ directory... perhaps it should be looking there instead?
It does successfully download the full version for update, but obviously the delta update would be better.
Thanks for advice.
same problem over here
Hi @bishbashbosh123 , do you use different name in package.json name and build.productName?
I also got this issue because __installer.exe is put into other directory when using different name. #3375 also report similar issue. __installer.exe is put in build.productName directory, but differential downloader is looking for name directory.
@ddio as for me I've tried to use the same name in electron-buildr.json' productName and package.json' name - same issue. But in my case the name is a scoped NPM package like @my-scope/my-package.
Does this only occur on first update? Try version 20.30.0 or greater. The fix for this issue was introduced in 20.29.1.
Duplicates #3400
Hi there!
First of all, thank you for all your work on electron-builder (it's remarkable!), and for being so responsive to the issues raised. We're using electron-builder v20.34.0 and just got the same error trying to auto-update for the first time on a windows machine. Mac auto-updating seems to be working fine, but on the windows box we got:
[error] Cannot download differentially, fallback to full download: Error: ENOENT: no such file or directory, open 'C:\Users\ThisGuy\AppData\Local\OurElectronApp\installer.exe'
The only directory I see inside 'C:\Users\ThisGuy\AppData\Local\OurElectronApp\' is pending.
Any advice? @develar
Having the same issue as described by @bennettatoms
Cannot download differentially, fallback to full download: Error: ENOENT: no such file or directory, open 'C:\Users\skoru\AppData\Local\electron-updater\installer.exe'
FWIW, @skorunka , we are now on version 21.2.0 and have not been having any issues with our windows builds.
Most helpful comment
Hi there!
First of all, thank you for all your work on electron-builder (it's remarkable!), and for being so responsive to the issues raised. We're using electron-builder v20.34.0 and just got the same error trying to auto-update for the first time on a windows machine. Mac auto-updating seems to be working fine, but on the windows box we got:
The only directory I see inside 'C:\Users\ThisGuy\AppData\Local\OurElectronApp\' is
pending.Any advice? @develar