Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Windows Scripting Host Question Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
device
Newbie
Newbie


Joined: May 26 2009
Online Status: Offline
Posts: 33
Posted: November 28 2011 at 04:22 | IP Logged Quote device

My old powerhome machine recently became a doorstop. I installed PH to a new machine and copied the database ini and scripts. Now whenever a script inside PH is supposed to run it returns an initialization error. A bare VBScript runs fine outside of PH. I added the entries from PHSCR to the registry. I am sure some bit of configuration is missing - any ideas?

Thanks!

Device
Back to Top View device's Profile Search for other posts by device
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 29 2011 at 17:28 | IP Logged Quote dhoward

Device,

Which version of PH are you running? The 2.1.4 beta uses a different module for vbscript and requires a different registration than phscr.reg.

If you're on version 2.1b, did you verify that the filepath (towards the end of the reg file) was pointed to the proper location and you had double backslashes (\\) in the name?

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 29 2011 at 17:29 | IP Logged Quote dhoward

Also,

What is the specific error that is returned. I should be able to track down in source where it is actually failing.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
device
Newbie
Newbie


Joined: May 26 2009
Online Status: Offline
Posts: 33
Posted: November 29 2011 at 19:35 | IP Logged Quote device

Dave,

Thanks for the reply. It is 2.1b. I am yet again on a business trip but will check in when I get back Friday. Didn't get the new system set up for remote access before I left but as I remember the next to last line in phscr.reg pointed to the phscr.pbd file and the path was correct. As I remember the error which was placed in a global inside a macro was something like INITIALIZE ERROR filename devicechg.vbs line 0 col 0.

Thanks!!

D

Edited by device - December 04 2011 at 05:22
Back to Top View device's Profile Search for other posts by device
 
device
Newbie
Newbie


Joined: May 26 2009
Online Status: Offline
Posts: 33
Posted: December 04 2011 at 05:24 | IP Logged Quote device

The error which is the return value from ph_runscript_0 is *** INITIALIZE ERROR - Filename: C:\Program Files\powerhome\devicechg.vbs | Function: devicechg | Source: | Error Number: 0 | Description: | Line: 0 | Column: 0 | Text: ***

D
Back to Top View device's Profile Search for other posts by device
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: December 04 2011 at 21:57 | IP Logged Quote dhoward

D,

Ive traced the error and the only way Im able to replicate it is by changing LOADSCRIPT=NO in the pwrhome.ini file under the [System] section. If this parm is set to NO, then PowerHome doesnt load the scriptserver at all and the above error will result. Not saying this is your problem but would be the next thing I would check. The only thing that worries me is you said you copied your pwrhome.ini file and if this was working before, then this should have been set to YES.

Let me know what you find.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
device
Newbie
Newbie


Joined: May 26 2009
Online Status: Offline
Posts: 33
Posted: December 05 2011 at 01:28 | IP Logged Quote device

Dave,

All I can say is that I intended to copy the ini. I went back and copied the ini and things are working again. Thanks for all the time and help - sorry for my mistake.

Best regards,

D
Back to Top View device's Profile Search for other posts by device
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: December 05 2011 at 22:48 | IP Logged Quote dhoward

D,

No problem. Glad we got it working.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum