wine cant run from the terminal.

D

Deleted29

Guest
for eample: when i run something like wine "C:\Program Files\example.exe" it runs for a split second then crashes
when i run wine .wine/drive_c/Program\ Files/example.exe its still the same
but when i run cd .wine/drive_c/Program\ Files/ then wine example.exe it works fine, why?

neofetch cuz im slightly lazyy lol:

1686840478550.png
 
for eample: when i run something like wine "C:\Program Files\example.exe" it runs for a split second then crashes
when i run wine .wine/drive_c/Program\ Files/example.exe its still the same
but when i run cd .wine/drive_c/Program\ Files/ then wine example.exe it works fine, why?

...

Is there perhaps any terminal output when it runs for a split second?
 
Is there perhaps any terminal output when it runs for a split second?
Unhandled Exception:
System.ComponentModel.Win32Exception (0x80004005): File not found.

at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <331a7abd357340168112f46654bda93e>:0
at System.Diagnostics.Process.Start () [0x00032] in <331a7abd357340168112f46654bda93e>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <331a7abd357340168112f46654bda93e>:0
at HotlineLauncher.MainForm.Application_ApplicationExit (System.Object sender, System.EventArgs e) [0x0006b] in <4180a11be1e240fc837df907314f5811>:0
at System.Windows.Forms.Application.RaiseExit () [0x00026] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.Dispose (System.Boolean postQuit) [0x0010c] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0033a] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in <5ea26500d4d340168c8a375e356ca0ac>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x0000d] in <5ea26500d4d340168c8a375e356ca0ac>:0
at HotlineLauncher.Program.Main (System.String[] args) [0x00034] in <4180a11be1e240fc837df907314f5811>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception (0x80004005): File not found.

at System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) [0x00102] in <331a7abd357340168112f46654bda93e>:0
at System.Diagnostics.Process.Start () [0x00032] in <331a7abd357340168112f46654bda93e>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <331a7abd357340168112f46654bda93e>:0
at HotlineLauncher.MainForm.Application_ApplicationExit (System.Object sender, System.EventArgs e) [0x0006b] in <4180a11be1e240fc837df907314f5811>:0
at System.Windows.Forms.Application.RaiseExit () [0x00026] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.Dispose (System.Boolean postQuit) [0x0010c] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0033a] in <5ea26500d4d340168c8a375e356ca0ac>:0
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop (System.Int32 reason, System.Windows.Forms.ApplicationContext context) [0x0001a] in <5ea26500d4d340168c8a375e356ca0ac>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Application+ThreadContext.RunMessageLoop(int,System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x0000d] in <5ea26500d4d340168c8a375e356ca0ac>:0
 
I would have suspected working dir problems, that the program tries to load things from its own directory but since its run from outside it will fail
 
Try wine 'C:\Program Files\example.exe' or wine "C:\\Program Files\\example.exe"

The \ is escaping the P and the e.
doesnt work still

I would have suspected working dir problems, that the program tries to load things from its own directory but since its run from outside it will fail
youre right thats the issue, but idk how wine does it, that what im trying to figure out.
 
doesnt work still


youre right thats the issue, but idk how wine does it, that what im trying to figure out.
Seems wine has a special way of doing this so you need to run it as wine start and specify /d for working directory
Code:
wine start /d "C:\Program Files" "C:\Program Files\example.exe"

can also do unix paths does not need to be in wine c-drive
 
Seems wine has a special way of doing this so you need to run it as wine start and specify /d for working directory
Code:
wine start /d "C:\Program Files" "C:\Program Files\example.exe"

can also do unix paths does not need to be in wine c-drive
o shit this one works, although it looks overkill

i going to use this for now, but i think there should be a better way to do this
 

About Us

  • The Linux.Chat community is a multi-platform community for general Linux® support. We provide help and support for any Linux® distribution and aim to answer any questions you might have about Linux®. Discussion about the various aspects of Linux® and Free/Open Source software is also encouraged.

    Visit our communities website at Linux.Chat.
  • Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

Quick Navigation

User Menu