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

SamHoque
  • 105

1 Answers1

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.

N0rbert
  • 99,918