Start program via wines absolute path with arguments

Questions about Wine on macOS.
Locked
nothilvien
Newbie
Newbie
Posts: 2
Joined: Fri Apr 28, 2017 3:39 am

Start program via wines absolute path with arguments

Post by nothilvien »

Hello,

I want to start a program with arguments, using wines absolute path.

Code: Select all

"/Applications/Wine Devel.app/Contents/MacOS/wine" "/Users/test/.wine/drive_c/program.exe" "1 2 3 4"
This will start the program, but it will not receive any arguments.

Code: Select all

"/Applications/Wine Devel.app/Contents/MacOS/wine" "/Users/test/.wine/drive_c/program.exe 1 2 3 4"
Results in: wine: cannot find '/Users/test/.wine/drive_c/program.exe 1 2 3 4'


The context is that I want to use a C# program launch an executable with wine.

Code: Select all

                ProcessStartInfo program = new ProcessStartInfo();
                program.FileName = "/Applications/Wine Devel.app/Contents/MacOS/wine";
                program.WorkingDirectory = "/Users/test/.wine/drive_c/";
                program.Arguments = "/Users/test/.wine/drive_c/program.exe 1 2 3 4";
                program.UseShellExecute = false;
                Process.Start(program);

Is this possible at all?

Thanks alot!
nothilvien
Newbie
Newbie
Posts: 2
Joined: Fri Apr 28, 2017 3:39 am

Re: Start program via wines absolute path with arguments

Post by nothilvien »

Hello,

I solved the issue by using "/Applications/Wine Devel.app/Contents/Resources/wine/bin/wine" this wine path.
Locked