question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: wine: Bad EXE format

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
fredguthcommented, Jul 5, 2017

@thre-isdd This is not a solution, but here how I managed to make it work.

  1. downloaded 7-zip 32bit at http://www.7-zip.org/a/7z1604.exe
  2. installed it via wine
  3. copied .exe and .dll from .wine/drive_c/Program Files/7-Zip to electron-winstaller/vendor
2reactions
robertohuertasmcommented, Sep 13, 2017

@paulcbetts , is there any reason why the 7z.exe is 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Wine: Bad EXE format" - WineHQ Forums
As for the Bad EXE error, it appears you are trying to run a 32 bit app with pure 64 bit Wine. That...
Read more >
[SOLVED] Wine: Bad EXE format - Support - Lutris Forums
When I open Lutris through the terminal and try to launch GW2, I see an error saying that it's a bad EXE format....
Read more >
Wine can't run bad exe file - Ask Ubuntu
I'm trying to download an application and wine keeps giving me the message of a bad exe file. I've tried the simple cd...
Read more >
INSIDE not running - "Bad EXE format" : r/wine_gaming - Reddit
Hi, I'm trying to run GOG.com edition of INSIDE under Wine Staging 4.12. 1 on macOS but the only thing I get is...
Read more >
wine: Bad EXE format for... - narkive
HTML rendering will be disabled. wine: configuration in '/home/gour/.wine64' has been updated. wine: Bad EXE format for Z:\home\gour\ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found