Author Topic: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)  (Read 4090 times)

Tereva

  • Guest
Hi there,

I was feeling a little maverick tonight, so I decide to install Python 3 XP release with wine, so I can use Python 3 for personal coding while the system use Python 2 (linux release) for itself.

So I download the .MSI windows 32b files, open a terminal and start to launch the install with wine.

I tried many things but each time the install failed -even before having really started in fact- with this error message :

Code: [Select]
wine: Bad EXE format for C:\Temp\python-3.1.2.msi

I was running out of idea, when by accident I double click the msi file while using my file manager (PCMAN file since I use LXDE).
And them I was stunned to see a windows pop up asking me where I wanted you install python 3 !


Ok, so I figured out that when I installed wine, it set itself to open MSI files.

Very well, but in this case, why I got the 'bad EXE format' error when I tried to open the file from a terminal ?

Anyone has an idea ?

Thx

Tereva

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)
« Reply #1 on: August 28, 2010, 05:49:56 AM »
Tereva
Exactly how did you try to start the install, show the command line content including prompt.
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Tereva

  • Guest
Re: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)
« Reply #2 on: August 28, 2010, 03:23:00 PM »
Hi Wedgeling,


Tereva
Exactly how did you try to start the install, show the command line content including prompt.

Here is what happen when I try to use the command line with wine :

I show you the result of pwd and ll command to show you the direct directory

Code: [Select]
[frfst3c@localhost Temp]$ pwd
/home/frfst3c/.wine/drive_c/Temp
[frfst3c@localhost Temp]$ ll
total 13768
-rwx------ 1 frfst3c frfst3c 14098432 2010-08-27 21:21 python-3.1.2.msi*
[frfst3c@localhost Temp]$ wine ./python-3.1.2.msi
wine: Bad EXE format for C:\Temp\python-3.1.2.msi
[frfst3c@localhost Temp]$ ^C
[frfst3c@localhost Temp]$

Once again it works when I double click on it on the file manager application.

Thx

Tereva

Offline schtufbox

  • Full Member
  • ***
  • Posts: 62
  • Herald of the Zombie Apocalypse
Re: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)
« Reply #3 on: August 28, 2010, 06:17:20 PM »
Hi,
try this:
Code: [Select]
wine msiexec /i xyz.msi

substituting xyz with the name of the actual msi installer file :)
I am Dyslexic of Borg, resemblance is fertile, your ass will be laminated!
Registered Linux user #155941

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2469
  • Any Bugs in site?
Re: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)
« Reply #4 on: August 28, 2010, 07:36:58 PM »
Tereva

Code: [Select]
[gert@localhost ~]$ ll
total 68
-rw-r--r-- 1 root root  6980 2010-08-25 19:46 100825-aptgetupdate.glk
-rw-r--r-- 1 root root  7292 2010-08-26 00:08 100826-aptbigupdate
-rw-r--r-- 1 root root     0 2010-08-25 23:58 100826-update.glk
..
...
....

Notice that ll command is in the linux world, it is not a windows state, Linux does not know how to interpret the exe file as it finds errors in the file.  Whereas the file manager has the ability to figure out that wine is already installed and working and this is a job for wine.

schtufbox has shown a way to start a windows program to run in wine.  From memory this is also shown in the wine documentatin  :)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Tereva

  • Guest
Re: Was standing open mouthed : MSI file works ! (Wine : bad EXE format)
« Reply #5 on: August 29, 2010, 01:14:49 PM »
Of course  :  .msi aren't executable files !

I'm so used to just double clik them in MicroSoft OS that I forgot this and haven't search that way :/

Thx to both of you !

Tereva