TransWikia.com

Running an exe without calling "wine" cmd

Ask Ubuntu Asked by SamHoque on February 27, 2021

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

One Answer

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.

Correct answer by N0rbert on February 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP