Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-28-2011, 02:51 PM
mcguirk000 mcguirk000 is online now
Registered User
 
Join Date: 06-28-2011
Posts: 4
Failed to instantiate script engine 'VBScript': Invalid class string

I get this error every time I try to run a VBScript step on a particular machine.

I have the VBPro project running on several other machines with no issues, but on this one machine I get the above error.

It is a Windows 7 x64 machine running VBPro 7.6.

Even if I create a new project that does nothing but execute a single VBScript with nothing but comments in it, I get the error.

Any ideas?
Reply With Quote
  #2  
Old 06-28-2011, 02:58 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.google.com/search?q=repai...ript+windows+7
Reply With Quote
  #3  
Old 06-28-2011, 04:46 PM
mcguirk000 mcguirk000 is online now
Registered User
 
Join Date: 06-28-2011
Posts: 4
Unfortunately none of those search results helped. I have a seemingly fine vbscript.dll and it is properly registered. Additionally, I am able to run VBScripts on the command-line via cscript without any issues. I am only seeing problems when trying to run them from within VBPro.
Reply With Quote
  #4  
Old 06-28-2011, 04:54 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
What happens when you unzip and save the attached file, open a Command Prompt to the folder it was saved to, and run it like so:

C:\Windows\SysWOW64\cscript.exe test.vbs

(which is similar to what Visual Build does to instantiate the script engine)?
Attached Files
File Type: zip test.zip (197 Bytes, 1491 views)
Reply With Quote
  #5  
Old 06-28-2011, 05:10 PM
mcguirk000 mcguirk000 is online now
Registered User
 
Join Date: 06-28-2011
Posts: 4
When I run that command-line I get the same error from VBPro.

It looks like running cscript from C:\Windows\system32 it works, but not from C:\Windows\SysWOW64
Reply With Quote
  #6  
Old 06-28-2011, 05:13 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Did you try

regsvr32 %systemroot%\SysWow64\vbscript.dll

from an elevated Command Prompt?

http://answers.microsoft.com/en-us/w...e-520a04891073
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:24 AM.


Copyright © 1999-2023 Kinook Software, Inc.