What does 'wine: Bad EXE format for Z:\m\Desktop\PortForward Network Utilities.desktop' mean?

38,407

Open Z:\m\Desktop\PortForward Network Utilities.desktop with your notepad program (gedit e.g.), look for the Exec command and copy it, then try wine "command"

You have to point wine directly to the executable binary. Once you get it you can modify the desktop file to run the command with wine (just add "wine" first in the Exec command)

Share:
38,407

Related videos on Youtube

Hodurrr
Author by

Hodurrr

Updated on September 18, 2022

Comments

  • Hodurrr
    Hodurrr over 1 year

    Installed wine on Debian to run a Windows exe - specifically the PortForward Network Utilities bundle: http://portforward.com/help/setup_static_ip_address.htm ).

    Input:

    wine '/m/PortForward Network Utilities.desktop'
    

    Output:

    wine: Bad EXE format for Z:\m\Desktop\PortForward Network Utilities.desktop.
    

    I installed Wine with apt-get, following the "Debian/Wine Multiarch Instructions." Wine is 32-bit, but I'm unsure of what the PF Network Utilities bundle is (it doesn't say in properties).

    Not sure where to go from here.

    • Manuel Faux
      Manuel Faux about 9 years
      You are not executing an EXE file.
    • Hodurrr
      Hodurrr about 9 years
      I was able to run a setup/installer that was an EXE file for the bundle, and after doing so - "PortForward Network Utilities" was left in my desktop folder along with a ".Ink" file. I assumed I had to run one of those to get it started...
    • Manuel Faux
      Manuel Faux about 9 years
      .desktop files are the UNIX/Linux variants of Windows's .lnk files. So it basically just contains a reference to an executable, but is not the executable itself. It is (in contrast to .lnk) a text file. Just open it and check which executable to start.
    • Hodurrr
      Hodurrr about 9 years
      When I click on it, it pretends to load and then doesn't do anything. When I put it in terminal I get: /m/Desktop/PortForward Network Utilities.desktop: line 1: [Desktop: command not found /m/Desktop/PortForward Network Utilities.desktop: line 2: Network: command not found fixme:exec:SHELL_execute flags ignored: 0x00000100 Application could not be started, or no application associated with the specified file. ShellExecuteEx failed: File not found
    • Manuel Faux
      Manuel Faux about 9 years
      The .desktop file is not an executable. It is intended for e.g. Window Manager (e.g. GNOME, Xfce, ...) to provide a graphical menu. Try to open the program using your WM. Maybe the desktop file starts wine with the correct options.
    • Hodurrr
      Hodurrr about 9 years
      Yeah, I haven't just tried through terminal. Under the answer below, I showed my attempts and the results.
  • Manuel Faux
    Manuel Faux about 9 years
    Additionally you can try to directly start the PortForward Network Utilities using your window manager.
  • Hodurrr
    Hodurrr about 9 years
    It actually won't let me choose what to open it with. There is no "open with" when I right click it?
  • Hodurrr
    Hodurrr about 9 years
    So far: I've tried opening it in the terminal AND then through "Applications" where it saved itself - which results in pop-up Error: Invalid Parameter and then Error: There is no Windows program configured to open this type of file. Or I click it in my Desktop files, where it pretends to load but doesn't do anything.
  • GuilPejon
    GuilPejon about 9 years
    Error: There is no Windows program configured to open this type of file. means that wine started, so the .desktop file does indeed point to wine. You really have to open the file in an editor to check what's in it (or put it in your question)
  • Hodurrr
    Hodurrr about 9 years
    It won't allow me to choose what to open it with. Just 'open' :/