Launching an .exe on mac OSX

Questions about Wine on macOS.
Locked
hamburgertrain
Newbie
Newbie
Posts: 2
Joined: Tue Apr 13, 2010 5:33 pm

Launching an .exe on mac OSX

Post by hamburgertrain »

Hi, I need help with using wine on mac osx. I used to use wine on Ubuntu and Linux Mint and it was relatively simple. But on mac osx, I used macports to dowload/install wine, and i used winecfg to create a prefix. I can not figure out for the life of me how to launch an executable by clicking on it. It opens in TextEdit instead of launching in wine. Can someone explain to me how to make a .exe file launch? I can run any .exe in terminal but it is less than convenient. Thanks in advance.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

This is a question you should be asking in OSX forums, since it's about registering a filetype (EXE) to a specific application (Wine).
hamburgertrain
Newbie
Newbie
Posts: 2
Joined: Tue Apr 13, 2010 5:33 pm

Post by hamburgertrain »

Well I searched everywhere for an answer and asked on multiple OSX boards and cannot get an answer, so I asked here hoping to finally get an answer.
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

Huh. They should be the ones to help you...

Anyway, a little search on Google gave me this:
http://www.digitalmediaminute.com/artic ... ons-in-osx


Try that on your EXE. ;)
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

you can't

You can only associate a .exe with an Mac OS X application... as in a normal .app program... not to any command line command you want. Wine doesn't support or make anything on OSX like it does on linux... its command line only.

If you want to make a launcher you can double click and run something, look in the Mac FAQ here on Winehq and I wrote up how to make an applescript launcher for things...

or you could look into using a Mac-ified way to run Wine like Wineskin, WineBottler, or Crossover.
nubishahsa12
Newbie
Newbie
Posts: 1
Joined: Wed Apr 14, 2010 10:55 pm

Post by nubishahsa12 »

They should be the ones to help you...
Charles Davis

Launching an .exe on mac OSX

Post by Charles Davis »

On 4/14/10 5:10 PM, hamburgertrain wrote:
I can not figure out for the life of me how to launch an executable by clicking on it. It opens in TextEdit instead of launching in wine. Can someone explain to me how to make a .exe file launch? I can run any .exe in terminal but it is less than convenient. Thanks in advance.
You can't. Not with Wine from MacPorts anyway.

The problem is that no application you have really knows how to open EXE
files. (It's weird that they open in TextEdit; normally you get a "No
application knows how to open 'filename.exe'" message.) If you want to
double-click on EXEs to open them, you have to create an application
that DOES know how to open them.

It's actually pretty easy to do. All you have to do is create a .app
bundle, put a script inside that invokes Wine, and associate it with EXE
files using an Info.plist file. But that's beyond the scope of this
forum/mailing list.

Or, you could use WineBottler. But be warned: we can't support that
here. If you have a problem and you use WineBottler, you have to go to
the person who makes it for support.

Chip
Charles Davis

Launching an .exe on mac OSX

Post by Charles Davis »

On 4/14/10 5:35 PM, DaVince wrote:
This is a question you should be asking in OSX forums, since it's about registering a filetype (EXE) to a specific application (Wine).
They're at http://discussions.apple.com , by the way. Just to point you
in the right direction.

Chip
Locked