3

I would like wine to automatically run exe's without having to call wine everytime I have to execute the cmd.

so instead of typing out "wine progarm.exe" I would call "program.exe

2
  • Any question should always include the version of Ubuntu you are using. What version is it?
    – David
    Jan 26, 2021 at 5:46
  • 1
    Ubuntu 18.04, sorry still new to this :)
    – SamHoque
    Jan 26, 2021 at 11:25

1 Answer 1

3

You have to install special wine-binfmt package to Register Wine as the interpreter for Windows executables by

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install wine-binfmt

then set executable bit for needed exe-file by chmod +x program.exe and then run it as ./program.exe.
To allow its run via program.exe you have to add its full-path to the $PATH environment variable.


Note: if you get run-detectors: unable to find an interpreter for ./program.exe, then run sudo update-binfmts --import /usr/share/binfmts/wine and retry.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .