Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
World Community Grid Forums
Category: Retired Forums Forum: UD Windows Agent Support [Read Only] Thread: Run WCG as a service (Problem!) |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 7
|
Author |
|
depriens
Senior Cruncher The Netherlands Joined: Jul 29, 2005 Post Count: 350 Status: Offline Project Badges: |
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. Many thanks in advance! |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
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. |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Great catch, wilsondr!
|
||
|
depriens
Senior Cruncher The Netherlands Joined: Jul 29, 2005 Post Count: 350 Status: Offline Project Badges: |
Thanks a lot wilsondr! This is the solution! 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! If it stays okay, I will be adding another one of those machines soon! |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
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! 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). |
||
|
RT
Master Cruncher USA - Texas - DFW Joined: Dec 22, 2004 Post Count: 2636 Status: Offline Project Badges: |
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. |
||
|
depriens
Senior Cruncher The Netherlands Joined: Jul 29, 2005 Post Count: 350 Status: Offline Project Badges: |
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! |
||
|
|