Hi,
I have Wine 1.6.1 installed on Linux Mint 14. I have installed a program via wine called Aspect Property Manager (APM).
http://www.aspect.co.nz/apm060downloadsstart.html
It seems to have installed ok. Although the desktop icon fails to run, I can run it from the Linux Mint Menu icon.
When installing APM on a windows machine the windows desktop icon has the following line of code:
C:\PropMan\Apm.exe -c p2p -p C:\PropMan\Data
I don't know what the -c p2p -p means, but I think it is pointing Apm.exe to use files from the C:\PropMan\Data path.
We use APM on a network, where one Windows Machine is the the host for APM, and other Windows machines, clients, can read and write data on the host.
An APM icon on the desktop of a windows client has the following code:
\\HOSTNAME\PropMan\Apm.exe -c p2p -p \\HOSTNAME\PropMan\Data
I have copied the APM icon from the Linux Mint Menu to the desktop.
It has the following comand:
env WINEPREFIX="/home/tim/.wine" wine C:\\windows\\command\\start.exe /Unix /home/tim/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Aspect\ Property\ Manager/Aspect\ Property\ Manager.lnk
I will create a network share with the windows host called PropManShare, which will be in the Linux Mint Media folder.
This will connect to \\HOSTNAME\Propman
My question is how would I edit the command in the Linux Mint APM desktop icon to connect to the Apm.exe on the host windows machine. I need to make sure that equivalent functionality of the windows command "-c p2p -p \\HOSTNAME\PropMan\Data " part is included in Linux Mint icon command.
Many thanks for your help,
Tim
New Zealand
Run .exe across network on Windows Machine
Re: Run .exe across network on Windows Machine
I don't know if there is a way to edit .lnk shortcuts in wine but you should be able to just use a script or whatever shortcut functionality your desktop environment uses.
I'm pretty sure wine doesn't handle network paths, so you'll probably need to mount the share somewhere with samba then add a drive in winecfg. There may be a Linux Mint way of doing this, or just use smbmount. Either way, say \\HOSTNAME\PropMan is /mnt/whatever, pick a drive in winecfg and point it to /mnt/whatever. Say F:, then you'll want 'wine F:\\Apm.exe -c p2p -p F:\\Data' in your script or shortcut. I think.
I'm pretty sure wine doesn't handle network paths, so you'll probably need to mount the share somewhere with samba then add a drive in winecfg. There may be a Linux Mint way of doing this, or just use smbmount. Either way, say \\HOSTNAME\PropMan is /mnt/whatever, pick a drive in winecfg and point it to /mnt/whatever. Say F:, then you'll want 'wine F:\\Apm.exe -c p2p -p F:\\Data' in your script or shortcut. I think.

Re: Run .exe across network on Windows Machine
Thanks spoon0042!
That seems very sensible and logical, but I have difficulty knowing how to translate that to an icon that will function correctly on LM. The problem is as follows:
When I installed APM via Wine on Linux Mint 14, the desktop icon failed to start the program, however I could start the program from the APM icon on the LM 14 Programs menu bar.
Now the APM desktop icon on Linux Mint had the same kind of code as it has if installed on Windows, like this:
C:\PropMan\Apm.exe -c p2p -p C:\PropMan\Data
If that desktop icon was able to run APM, then the code that you suggested would probably work correctly. However that desktop icon fails to start APM correctly.
The only way I can successfully start APM in Linux Mint is from the Programs menu APM icon.
The LM 14 Programs Menu icon has code like this:
env WINEPREFIX="/home/tim/.wine" wine C:\\windows\\command\\start.exe /Unix /home/tim/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Aspect\ Property\ Manager/Aspect\ Property\ Manager.lnk
Now, I don't know exactly what the code above is doing. It obviously does something with Aspect Property Manager.lnk
Does the .lnk file connect to the APM desktop icon in some way?
If it does connect to the desktop icon, then if I modify it as you suggest, that should work.
Thanks for you help.
Tim
New Zealand
That seems very sensible and logical, but I have difficulty knowing how to translate that to an icon that will function correctly on LM. The problem is as follows:
When I installed APM via Wine on Linux Mint 14, the desktop icon failed to start the program, however I could start the program from the APM icon on the LM 14 Programs menu bar.
Now the APM desktop icon on Linux Mint had the same kind of code as it has if installed on Windows, like this:
C:\PropMan\Apm.exe -c p2p -p C:\PropMan\Data
If that desktop icon was able to run APM, then the code that you suggested would probably work correctly. However that desktop icon fails to start APM correctly.
The only way I can successfully start APM in Linux Mint is from the Programs menu APM icon.
The LM 14 Programs Menu icon has code like this:
env WINEPREFIX="/home/tim/.wine" wine C:\\windows\\command\\start.exe /Unix /home/tim/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Aspect\ Property\ Manager/Aspect\ Property\ Manager.lnk
Now, I don't know exactly what the code above is doing. It obviously does something with Aspect Property Manager.lnk
Does the .lnk file connect to the APM desktop icon in some way?
If it does connect to the desktop icon, then if I modify it as you suggest, that should work.
Thanks for you help.
Tim
New Zealand
Re: Run .exe across network on Windows Machine
Could be related to this bug: http://bugs.winehq.org/show_bug.cgi?id=27706When I installed APM via Wine on Linux Mint 14, the desktop icon failed to start the program, however I could start the program from the APM icon on the LM 14 Programs menu bar.
Try wine start /unix, and use the full path the executable rather than the .lnk.env WINEPREFIX="/home/tim/.wine" wine C:\\windows\\command\\start.exe /Unix /home/tim/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Aspect\ Property\ Manager/Aspect\ Property\ Manager.lnk