Why do you focus on Windows executables? Any executable file or executable shell script can be run with /path/to/executable or ./executable. Linux executables aren't magically more secure than Windows executables, especially when the latter run on Wine!
–
David FoersterSep 24 '13 at 23:13

4 Answers
4

Wine does not run files automatically (poor wording choice on your part).

However, if you want exe files to open with something else by default, you need to change the associated program for exe files to something other than Wine (you can do this from the properties window in Nautilus).

To run your program, you can create a .desktop file or simply use "Open With" from the context menu.

I wouldn't believe it unless I'd seen it, but if I open a console and cross compile "a.exe" then run it, like $ ./a.exe voila, wine appears and runs it for me. It is bizarre...
–
rogerdpackSep 24 '13 at 0:11

1

That occurs because wine is set (by binformat support) to run exes when you attempt to execute them. I don't know if that can be disabled without removing wine though. BTW, your question is vague if that is what you mean.
–
RolandiXor♦Sep 24 '13 at 3:15

Ok looks like the binfmt-support in question can be disabled via sudo update-binfmts --disable wine (you can see its list via update-binfmts --display) thanks for the tip. Finally it doesn't auto run my console exe's, which can be problematic when cross compiling.
–
rogerdpackSep 27 '13 at 18:46

With 12.10 it certainly does...is there any way to disable it though?
–
rogerdpackSep 23 '13 at 22:48

With 13.04 it also (for me anyway) wine runs an exe files if you double click them in unity file explorer, and also if you run them in the command line like "./a.exe" it automatically invokes wine to run it for you.
–
rogerdpackSep 27 '13 at 18:42

Once you have it downloaded you simply open it up, change to Admins tab and then under System choose File Type Manager. Once in here select the file category Text and using shift-click and/or control-click select all of the file types you want, then click Edit on the bottom right.

This will allow you to multi-set the mimetype opener for all of the files.