Problem installing programs ?

Questions about Wine on Linux
Locked
jcmaguiar
Newbie
Newbie
Posts: 1
Joined: Wed May 31, 2023 7:16 pm

Problem installing programs ?

Post by jcmaguiar »

In my Debian 11 I have the version ( wine-8.0.1 ) installed but when trying to install a windows program with the extension ( .exe ), I am receiving the following message in the terminal:

The application could not be started or there is no application associated with the specified file.
ShellExecuteEx failed: Improper EXE format for Z:\home\aguiar\Downloads\mt5setup.exe.

How can I solve this problem, because even clicking with the right button on the program to install, nothing happens.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Problem installing programs ?

Post by jkfloris »

mt5setup.exe is a 64-bit file.

Code: Select all

$ file mt5setup.exe 
mt5setup.exe: PE32+ executable (GUI) x86-64, for MS Windows, 7 sections
So you can only run it in a 64-bit wineprefix. Your default wineprefix is probably 32-bit. You can check this with:

Code: Select all

grep '#arch=' ~/.wine/system.reg
If this returns "win32", then you can create a new wine prefix for this program.

Code: Select all

WINEPREFIX=~/metatrader wine mt5setup.exe
Locked