suchja / wine

Docker image providing the latest stable version of Wine. Can be used with suchja/x11server.
Creative Commons Zero v1.0 Universal
128 stars 38 forks source link

can this run windows exe command line dos? #12

Closed cordoval closed 6 years ago

cordoval commented 6 years ago

i need to just run a cli windows exe tool that reads and outputs a file will this image help me do that?

just curious because it is a use case. The contrary will mean that i have to run windows server and create a full microservice just to run this little stupid script.

suchja commented 6 years ago

Yes, generally wine is able to run dos scripts. However, remember it is not a fully fledged windows and this image also includes a rather old version of wine (currently I don't have the time to update it šŸ˜ž).

If it is a simple script then you should give it a try.

cordoval commented 6 years ago

k thanks

cordoval commented 6 years ago

i tested my command and it runs on wine correctly šŸ‘ now it is time to use this image

suchja commented 6 years ago

Great! Enjoy it!

cordoval commented 6 years ago
xclient@185f3531959c:/Utility Tool$ env DISPLAY=:0 wine ./HOSPICEVUT.exe /home/xclient/input.xml /output
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.

@suchja any hints? i tried $DISPLAY but nothing comes out

suchja commented 6 years ago

Not really! Have you checked the instructions in the Readme? You Need the x11server and x11client Image if you like to go with UI. Everything should be documented in the readme. Havenā€˜t tried it for while now.

cordoval commented 6 years ago

this does not work with ui so i actually want to get rid of those warnings.

The command works but those warnings bothers me. that is all, the command is fully cli

suchja commented 6 years ago

I guess you tried the links for wineconsole and the other mentioned in section Headless?

I havenā€˜t used it without UI. So Iā€˜m afraid I can be of no help.

cordoval commented 6 years ago

you were of help thanks

cordoval commented 6 years ago

those links headless one of them is totally broken the other takes me to the general guide

so no luck there, for now this works