wine points to the windows folder not the programme folder

Asked by John Wilson

I installed wine to run a utility that allows me to print dos program on an inkjet printer. The program is installed in the Program Files but wine wants to open .exe files in the Windows folder.
Is there a workaround or should I use a different program?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gord Allott (gordallott) said :
#1

this is the same behaviour has what windows displays, if you want to load a program from the program files folder you have to use the wine command like this
wine "C:\Program Files\Path\To\Application\application.exe"

replacing path\to\application\application.exe with whatever is the path and filename of the .exe you want to run

Revision history for this message
John Wilson (jwilsondmartin) said :
#2

Gord,
Thank you for your quick reply but I still have a problem.
Here is a copy of my terminal:
john@john-desktop:~$ wine c:\program files\softcross\prnt.exe
wine: cannot find 'c:program'
john@john-desktop:~$ wine c:\Program Files\SoftCross\prnt.exe
wine: cannot find 'c:Program'
john@john-desktop:~$ wine 'c:\Program Files\SoftCross\prnt.exe'
wine: cannot find 'c:\Program Files\SoftCross\prnt.exe'
john@john-desktop:~$ wine 'dosdevices\drive_c\Program Files\SoftCross\Prnt.exe'
wine: cannot find 'dosdevices\drive_c\Program Files\SoftCross\Prnt.exe'
john@john-desktop:~$ wine "C:\Program Files\SoftCross\Prnt.exe"
wine: cannot find 'C:\Program Files\SoftCross\Prnt.exe'
john@john-desktop:~$ wine C:\Program Files\SoftCross\Prnt.exe
wine: cannot find 'C:Program'
john@john-desktop:~$ wine home/john/.wine/drive_c/Program Files/SoftCross/Prnt.exe
wine: cannot find 'home/john/.wine/drive_c/Program'
john@john-desktop:~$
Do wine commands need to be enclosed in quotation marks?
Regards,
John

Revision history for this message
Gord Allott (gordallott) said :
#3

yes they do if they have spaces, such as wine "C:\path\to\program files\application dir\hello.exe"
you should make sure thats actually where the .exe exists though

Revision history for this message
John Wilson (jwilsondmartin) said :
#4

Hi Gord,
Thank you for your help.
I can now get wine to run but Prnt (my program) "could not access the systems registry".
Below is the output from my terminal:
john@john-desktop:~$ wine "C:\Program Files\SoftCross\Prnt\Prnt.exe"
fixme:ole:OLEPictureImpl_SaveAsFile (0x130140)->(0x130518, 0, (nil)), hacked stub.
err:module:import_dll Library MFC40.DLL (which is needed by L"C:\\windows\\system32\\MSGHOO32.OCX") not found
err:ole:COMPOBJ_DllList_Add couldn't load in-process dll L"c:\\windows\\system32\\MSGHOO32.OCX"
err:ole:create_server class {307c5040-76b3-11ce-bf00-0080ad0ef894} not registered
err:ole:CoGetClassObject no class object {307c5040-76b3-11ce-bf00-0080ad0ef894} could be created for context 0x5
Have you any suggestions?
Regards,
John

Revision history for this message
Gord Allott (gordallott) said :
#5

wine is not perfect software and you shouldn't expect it to definatly be able to run any windows program you throw at it.

in this case it suggests that you need to find MFC40.dll on the internet somewhere and put it into C:\windows\system32\

Revision history for this message
Ordago (ordago) said :
#6

John, If you still have the windows partition you can kook it up there.

Can you help with this problem?

Provide an answer of your own, or ask John Wilson for more information if necessary.

To post a message you must log in.