Help with wine giving error Bad EXE format for install prog

Questions about Wine on Linux
Locked
woodnt
Newbie
Newbie
Posts: 1
Joined: Sun May 03, 2015 6:11 pm

Help with wine giving error Bad EXE format for install prog

Post by woodnt »

Hello,

I have used wine for over a decade with a certain program. I had always just ported that directory over from past versions of wine, which worked like clockwork. Alas, not this time.

First, when I try to use this I get this:

Code: Select all

 $: env WINEPREFIX="/home/woodnt/.wine_Esword" wine "C:\Program Files\e-Sword\e-Sword.exe" 
wine: '/home/woodnt/.wine_Esword' is a 32-bit installation, it cannot support 64-bit applications.
So I think, well, I'll just download the newest version of the installer program in question from http://www.e-sword.net/files/setup1040.exe

Then I did this with the following result:

Code: Select all

$ rm -rf .wine # to start with a clean slate
$ wine Downloads/setup1040.exe 
wine: Bad EXE format for Z:\home\woodnt\Downloads\setup1040.exe.
I think, hmm. Wonder if it is an architecture problem, so I

Code: Select all

$ rm -rf .wine # to start with a clean slate, again.
$ WINEARCH=win32 wine Downloads/setup1040.exe 
wine: WINEARCH set to win32 but '/home/woodnt/.wine64' is a 64-bit installation.
Hmm, that is interesting. So I run it with wine64 finding I need to install winbind, which I do and then I get this:

Code: Select all

$ rm -rf .wine .wine64 # to start with a clean slate, again.
$ wine64 Downloads/setup1040.exe 
wine: created the configuration directory '/home/woodnt/.wine'
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0xfee338, overlapped 0xfee350): stub
fixme:iphlpapi:NotifyAddrChange (Handle 0xeee338, overlapped 0xeee350): stub
wine: configuration in '/home/woodnt/.wine' has been updated.
wine: Bad EXE format for Z:\home\woodnt\Downloads\setup1040.exe.
I'm stuck at wine's keeping on saying that I have a bad EXE format and have these other errors and fixme's as well. I have redownloaded it and get the same error (author doesn't give a md5, shaXXXsum, or some other but in checking it on a successfully installing other system I have the same md5sum so I don't think there is a download error).

What can I do to make this install?

Code: Select all

$ uname -aimplemented
Linux lenovo-laptop 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) x86_64 GNU/Linux

Code: Select all

$ wine --version
wine-1.6.2
Any help would be greatly appreciated.

Kind regards,
Nathan
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help with wine giving error Bad EXE format for install p

Post by dimesio »

woodnt wrote:

Code: Select all

wine: Bad EXE format for Z:\home\woodnt\Downloads\setup1040.exe.
That can be caused by processes left running in the background from a previous attempt. Make sure there are none.

Code: Select all

$ rm -rf .wine # to start with a clean slate, again.
$ WINEARCH=win32 wine Downloads/setup1040.exe 
wine: WINEARCH set to win32 but '/home/woodnt/.wine64' is a 64-bit installation.
You deleted ~/.wine, but attempted to install the app to ~/.wine64, which is apparently a 64 bit wineprefix. You didn't set the WINEPREFIX when you ran the command; did you set it earlier with an export statement, and neglect to include that information here?

Code: Select all

$ wine --version
wine-1.6.2
Your Wine version is old. You should upgrade to the latest development release.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help with wine giving error Bad EXE format for install p

Post by dimesio »

FYI, I downloaded setup1040.exe and it installs and runs without any problems in a clean 32 bit wineprefix in 1.7.42. The AppDB entry for e-Sword 10.4.0 says "1.7.31 or later works," so you really do need to upgrade.
Locked