How to troubleshoot 'Bad EXE format'?

Questions about Wine on Linux
Locked
winey
Newbie
Newbie
Posts: 1
Joined: Tue Sep 17, 2019 7:18 am

How to troubleshoot 'Bad EXE format'?

Post by winey »

In Red Hat workstation 7.7 I attempted to run some exe files that were generated back in 2008. They are pretty basic programs. One is only command line and the other will throw up an window for status and some check boxes.

With x86_64 wine V4.0 release 2.el7 I get Bad EXE error in both cases. Various searches have not given a good enough clue and I am kind of learning as I go. By learning I want to run this in RH 8 but just found out they do not have wine set up for it yet. I am also just learning the whole Red Hat experience.

We currently run these programs in Fedora 7 with wine and that just worked.
I do not know if these programs were compiled 32 bit or 64 bit as it is not my code.

Pointers on where to look and what might help me learn enough to solve the problem would be apprecitated.

Thanks!

(This is for my work where we have to meet security stuff and break a perfectly working very secure offline system because and Red Hat is an approved OS)
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How to troubleshoot 'Bad EXE format'?

Post by jkfloris »

I do not know if these programs were compiled 32 bit or 64 bit as it is not my code.
You could use the "file" command to find out.

Code: Select all

file program.exe
# 32-bit output:
program.exe: PE32 executable (GUI) Intel 80386, for MS Windows
# 64-bit output:
program.exe: PE32+ executable (GUI) x86-64, for MS Windows
If the program is 32-bit, then you have to find or build a 32-bit Wine yourself
viewtopic.php?f=8&t=23434
Locked