Running vbscript .vbs file in an EXE

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Afam Agbodike

Running vbscript .vbs file in an EXE

Post by Afam Agbodike »

Hi, I'm new to wine, and am having a bit of trouble.

I'm trying to run an EXE installer, which starts fine, prompts me for
a few questions, and creates a few directories, but at a certain point
it tries to run a vbs file, which fails.

The attempt to run the .vbs file causes this message to appear in an
alert window:

"There is no Windows program configured to open this type of file"

after which I click OK and there as another window:

"could not execute the external program check64.vbs"

with "check64.vbs" being the name of the file that is part of the installer.
after I click OK the installer exits, and there is no output at the
command line whatsoever:

bash-3.2$ wine ~/Desktop/INSTALL.EXE
bash-3.2$

I've used winetricks to install

vb6run
mfc42
vcrun6 (which I believe is the same as mfc42, but I thought I try and
see if it fixed the problem, with no luck)
wsh56

I'm not sure if this is sufficient to run vbs files.

I have tried:

bash-3.2$ wine wscript test.vbs

which seems to partially work, but I get the error message
there is no script engine for file extension ".vbs"

and my test script doesn't do what I expect, the attempt causes this
to be printed on command line:

fixme:ole:CoInitializeSecurity (0x0,-1,0x0,0x0,0,3,0x0,0,0x0) - stub!

I believe it's a wise installer, and that it's pretty old, so I tried
running it as Windows 95 & 3.1 with no more success. I'm guessing I
need to add some entries into the registry, but as I haven't used
windows in quite a while, and never messed around with the registry
much, any suggestions would be greatly appreciated.

I'm running:

bash-3.2$ wine --version
wine-1.2

Installed via MacPorts on Snow Leopard
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

wsh56 would be the right winetricks verb. Disappointing that didn't help.
Are you sure it installed windows script host? Maybe you're still
using builtin wscript.

I wish I had time to try running visual basic scripts in wine
with wsh56, but I'm kind of busy. Maybe somebody else can
give it a shot.
Afam Agbodike

Running vbscript .vbs file in an EXE

Post by Afam Agbodike »

I think it installed it, when I run

bash-3.2$ wine wscript test.vbs

the title of the error window that displays "there is no script engine
for file extension .vbs" is "Windows Script Host".

I think there are some additional config settings required, first to
set the script engine for vbs, then to set WSH to be invoked when a
.vbs file is run from within another program, but I don't know where
to make these config changes.

On Thu, Sep 2, 2010 at 10:11 AM, DanKegel <[email protected]> wrote:
wsh56 would be the right winetricks verb.  Disappointing that didn't help.
Are you sure it installed windows script host?  Maybe you're still
using builtin wscript.

I wish I had time to try running visual basic scripts in wine
with wsh56, but I'm kind of busy.  Maybe somebody else can
give it a shot.






--
Afam
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

That's supposed to be automatic.

You could probably file a bug for this at bugs.winehq.org.
Locked