passing parameters to winstall

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
anystupidname
Level 1
Level 1
Posts: 8
Joined: Thu Apr 09, 2009 9:34 am

passing parameters to winstall

Post by anystupidname »

Hey folks,
I'm trying to install a sort of weird app with wine and having issues.
In Winblows, the command I'm trying to run looks like this:
"\\mappednetworkdrivepath\aproposinstall\Winstall\Winstl32.exe \\mappednetworkdrivepath\aproposinstall\winstall\apr6x_LocalLinkClients.lst /NoNetwork"
I've tried different combinations with wine unsuccessfully. The winstaller cannot find the lst file and cannot proceed.

Any help/suggestions would be much appreciated, thanks!

P.S. I have the UNC path mentioned above mounted with samba to /mnt/apropos/ on ubuntu hardy.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: passing parameters to winstall

Post by vitamin »

anystupidname wrote:"\\mappednetworkdrivepath\aproposinstall\Winstall\Winstl32.exe \\mappednetworkdrivepath\aproposinstall\winstall\apr6x_LocalLinkClients.lst /NoNetwork"
Don't use UNC paths with Wine. Map each share to each drive in winecfg. Then use fill local path starting with that drive. Of course you have to quote everything containing back-slashes.
anystupidname
Level 1
Level 1
Posts: 8
Joined: Thu Apr 09, 2009 9:34 am

Post by anystupidname »

Thanks for the reply. I was not trying to use the actual UNC paths. I was trying things like this:
wine "/mnt/apropos/Winstall/Winstl32.exe" "/mnt/apropos/Winstall/apr6x_LocalLinkClients.lst" "/NoNetwork"

In case others make this newb mistake:
I mapped "/mnt/apropos" to "D:" in winecfg per your suggestion and ran this:
wine "D:\Winstall\Winstl32.exe" "D:\Winstall\apr6x_LocalLinkClients.lst" "/NoNetwork"
which worked! It installed and placed a shortcut on the desktop.

Now it looks like the program launcher isn't cooperating:
http://forum.winehq.org/viewtopic.php?p=22960#22960
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

anystupidname wrote:Thanks for the reply. I was not trying to use the actual UNC paths. I was trying things like this:
wine "/mnt/apropos/Winstall/Winstl32.exe" "/mnt/apropos/Winstall/apr6x_LocalLinkClients.lst" "/NoNetwork"
Unless your program can magically figure out it's running on Wine and translate *NIX paths into windows paths using special Wine functions, you have to pass windows paths to your program.

Also, unless this is wine-1.1.19+ DO NOT use *NIX paths to start programs either: http://wiki.winehq.org/FAQ#head-8d8c06c ... 5c730566e0
Locked