Harlequin
2009-Sep-14 21:34 UTC
[Wine] trying to run a visual basic script via WINE - need help.
Ok I need to run a .vbs for a program which I run in wine (diablo 2). Google says "VBS in Linux. It works fine running in WINE. You just have to install the Windows Script Host. And you may need to hand-register the COM DLLs in the WSH installer at the command line. Last I saw, WINE wasn't handling self-reg. DLLs." I downloaded WSH 5.6 and ran that in WINE. When it was done I registered what I think is all of the COM DLLs, still not working. I then realised there's a 5.7, downloaded it but it won't run in WINE because I "don't have the proper permissions" >_>. When I try to run it in the terminal using sudo wine it says /home/chris/.wine isn't owned by me. So still using 5.6 if that makes any difference. This is how I'm trying to run it, and the consequences of trying to run it.> chris at ubuntu:~/Desktop/D2PK3$ wine pbdatafix.vbs > fixme:ntoskrnl:KeInitializeSpinLock 0x4577a4 > wine: could not load L"Z:\\home\\chris\\Desktop\\D2PK3\\pbdatafix.vbs": Bad EXE format for >I've been getting those fixme things come up with every wine command in the terminal, it doesn't seem to be having any effect at the moment but it is something I would like to fix. Not high on the list of priorities though. Thanks in advance to all those that read it all and will attempt to help :]
DaVince
2009-Sep-14 23:07 UTC
[Wine] Re: trying to run a visual basic script via WINE - need help.
Wine can only run EXE files. the VBS file is just a script; Wine wouldn't know what to do with it, so you'll have to find the executable for Windows Scripting Host and run the script with that instead. I'm guessing, however, that WSH "registers" VBS files to WSH so you could use Wine's "start" command to open the VBS file with the appropiate (Windows) program: Code: wine start script.vbs Also, you could have installed WSH a bit easier by using Winetricks, it does all the hard work for you: http://wiki.winehq.org/winetricks
DanKegel
2009-Sep-29 05:31 UTC
[Wine] Re: trying to run a visual basic script via WINE - need help.
DaVince wrote:> I agree. Don't use winetricks' ... much too wide dialog-like thing.Sounds like you're getting the xmessage dialog, which only shows up if you're not using gnome or kde. What desktop environment are you using, and what do zenity and kdialog print when you run them?