windows-installer: Error: wine: Bad EXE format
electron-winstaller@2.6.3 windows 10, 64-bit.
Cant build setup.exe with error:
Failed with exit code: 4294967295 Output: System.AggregateException: One or more errors occurred. —> System.Exception: 7-Zip [64] 16.04 : Copyright © 1999-2016 Igor Pavlov : 2016-10-04
Then I decided to get squirrel logs with set DEBUG=electron-windows-installer
And got these messages from node_modules\electron-winstaller\vendor\SquirrelSetup.log:
Utility: Failed to extract file /var/folders/sj/rrk8jvvj74j_mmjgcw505h5w0000gn/T/ei-11755-93846-r5wfhu.s4dlf5stt9/myapp.1.0.0.nupkg to /Users/kevin/.local/share/SquirrelTemp/tempa err:process:create_process 64-bit application L"Z:\Users\kevin\github\windows-installer\vendor\7z.exe" not supported in 32-bit prefix wine: Bad EXE format for Z:\Users\kevin\github\windows-installer\vendor\7z.exe.
Could anyone explain what happened?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 1
- Comments: 19 (1 by maintainers)
@thre-isdd This is not a solution, but here how I managed to make it work.
@paulcbetts , is there any reason why the
7z.exeis in 64 bit format? I guess that the 32 bit version would also work in x64 machines and would not suppose a problem when building 32 bits applications.ah, yes 😃 i agree, i could not get wine64 to work. wine32 and swapping out 7z with the 32-bit version worked for me per the above suggestions.
me too.
electron-packager . exe --platform win32 --arch x64 --out dist/
Packaging app for platform win32 x64 using electron v4.0.0 WARNING: Found ‘electron’ but not as a devDependency, pruning anyway rcedit.exe failed with exit code 193. wine: Bad EXE format for Z:\usr\local\lib\node_modules\electron-packager\node_modules\rcedit\bin\rcedit.exe.
+1 on @robertohuertasm’s question. The problem with assuming 64 bit is that 64bit support in Wine is officially sketchy, see their FAQ
Probably 64bit 7z.exe is an artifact of a recent SquirrelWin update? Only reason I could think of is that maybe 7z 32 bit has issues with very large files (the magical 2GB barrier)?
Anyway, if at all possible, I would vote for a downgrade to 32 bit 7z.exe.
Yep, the version of 7-Zip included is 64-bit, you’ll need to switch to 64-bit Wine instead.
OS X mono 5.0.1.1 wine 2.10
I get error when wine is 32:
if I use 64 wine build is ok, but on first install i get error: squirrel.exe 0xc000007b