fatal_error FormatMessage failed on wine crossover

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
whopperwhopper
Level 2
Level 2
Posts: 13
Joined: Thu Apr 13, 2023 4:57 pm

fatal_error FormatMessage failed on wine crossover

Post by whopperwhopper »

Last month, I tried opening an .exe file with Wine-crossover and it worked perfectly. However, today I tried opening the same program with Wine and then it showed this error:

Code: Select all

Application could not be started, or no application associated with the specifie
d file.
ShellExecuteEx failed: 0024:err:start:fatal_error FormatMessage failed
This would happen in any .exe program I want to open. How do I fix this?
whopperwhopper
Level 2
Level 2
Posts: 13
Joined: Thu Apr 13, 2023 4:57 pm

Re: fatal_error FormatMessage failed on wine crossover

Post by whopperwhopper »

Hello?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: fatal_error FormatMessage failed on wine crossover

Post by jkfloris »

The message you get indicates that Wine does not know what to do with the file.
How are you trying to run the file?

To rule out an error in Wine's configuration, you can run:

Code: Select all

grep PATHEXT ~/.wine/system.reg
# This should show:
"PATHEXT"=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh"
whopperwhopper
Level 2
Level 2
Posts: 13
Joined: Thu Apr 13, 2023 4:57 pm

Re: fatal_error FormatMessage failed on wine crossover

Post by whopperwhopper »

I want to run the file with Wine because it's not compatible with Macs.
Locked