Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 7
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1257 times and has 6 replies Next Thread
depriens
Senior Cruncher
The Netherlands
Joined: Jul 29, 2005
Post Count: 350
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Run WCG as a service (Problem!)

I don't know if this is the right place to ask this, so excuse me if it isn't.

At our office, we recently bought a new pc. Now I would like to install WCG onto that machine and run it as a service. Before doing that I wanted to try it on my home machine first.

So i'm trying to run the .vbs scrips as I found it on the unofficial WCG site and also in the forums on this site.
I downloaded all extra files neseccary and put them into a folder named "C:\Program Files\WorldCommunityGridToService\"
Changed the line "Const installFilesLoc=" so that it refers to the directory as mentioned above.

Then I tried to run the vbs, but unfortunately I get the following error:

Windows Script Host
Script: C:\Program Files\WorldCommunityGridToService\WCGSvcCvt.vbs
Line: 49
Teken: 1 (Depriens: Teken is Dutch, I don't know the right translation)
Error: Active-X can't make object : "WScript.NetWork"
Code: 800A01AD
Source: Runtimerror Microsoft VBScript


Hopefully you guys (or girls) can help me out. I'm not a real computer expert, so if possible, please keep it simple. blushing

Many thanks in advance!
----------------------------------------

[Nov 17, 2005 9:34:24 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Run WCG as a service (Problem!)

This error indicates that the Windows Scripting Host runtime libraries are not installed on your machine, so the script is unable to create the objects it needs to run. (See the Microsoft support site KB article 194801 for more information).

This is unusual on most modern machines, as the WSH is installed by default in most Windows XP and Windows 2000 SP3 installations I've seen.

However, if your system doesn't have it for whatever reason, you can download the runtime libraries from Microsoft here. Make sure to get the correct version for your operating system (there are two versions listed, one for Windows 95/98/ME and NT, and another version for 2000 and XP).

Once you have installed it and restarted the machine, the .vbs script should then be able to run.
[Nov 18, 2005 12:31:36 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
rose Re: Run WCG as a service (Problem!)

Great catch, wilsondr! applause
[Nov 18, 2005 2:28:49 AM]   Link   Report threatening or abusive post: please login first  Go to top 
depriens
Senior Cruncher
The Netherlands
Joined: Jul 29, 2005
Post Count: 350
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Run WCG as a service (Problem!)

Thanks a lot wilsondr! This is the solution! biggrin If only all problems were this easy to solve...

Strange however, because my machine has always been as up to date as possible. And I never experienced any problems with scripts whatsoever. But well, it has been solved, so it's really not that important.


BUT....
After installing the Scripting engine I got another error. WCG was now already running as a service, but for some reason the script didn't complete.

I have been checking the text inside the vbs script, and found the solution.
The language of XP is Dutch, so I don't have a "Programs\Startup\" folder, in Dutch it is "Programma's\Opstarten". This caused the script to hang again.
So I removed the line (and also the line for reversing the process). Now the script runs perfectly.


Thanks again, and I'm glad to have added our new P4 3,2Ghz to the WCG! cool If it stays okay, I will be adding another one of those machines soon! biggrin
----------------------------------------

[Nov 18, 2005 4:09:24 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: Run WCG as a service (Problem!)

The language of XP is Dutch, so I don't have a "Programs\Startup\" folder, in Dutch it is "Programma's\Opstarten". This caused the script to hang again.


Woops! blushing You're correct, I didn't localize the script for XP native languages other than English. This is likely to cause problems on any non-English version of Windows XP.

Your work around is fine, though. You may want to delete the shortcut to the WCG client in your Programs/Startup directory manually so that the agent doesn't attempt to launch twice on the machine. (Although it won't allow two instances of itself anyway).
[Nov 19, 2005 9:49:29 PM]   Link   Report threatening or abusive post: please login first  Go to top 
RT
Master Cruncher
USA - Texas - DFW
Joined: Dec 22, 2004
Post Count: 2636
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Run WCG as a service (Problem!)

wilsondr.

If you would care to revise the text on the Un-official-WCG website, just post it here and I will pick it up and include it over there. I think everyone at WCG appreciates your help. smile
----------------------------------------
One of your friends in Texas cowboy
RT Website Hosting

[Nov 20, 2005 12:36:49 PM]   Link   Report threatening or abusive post: please login first  Go to top 
depriens
Senior Cruncher
The Netherlands
Joined: Jul 29, 2005
Post Count: 350
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Run WCG as a service (Problem!)


Your work around is fine, though. You may want to delete the shortcut to the WCG client in your Programs/Startup directory manually so that the agent doesn't attempt to launch twice on the machine. (Although it won't allow two instances of itself anyway).


Thanks for the tip, I've noticed it yesterday when I tried to reboot the machine and the "Another instance" message popped up.
Removed the line manually, and it works fine now!


BTW: I understand you wrote this script? If so, thank you very much for this! smile
----------------------------------------

[Nov 20, 2005 3:15:16 PM]   Link   Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Post new Thread