parkerkane Posted January 9, 2007 Share Posted January 9, 2007 I am getting an Internet Explorer Script Error that is driving me crazy.I use WPI like this:I have Ghost images that I load and first off the machines run through sysprep to install drivers for hardware, join the domain, etc.Then at the first login WPI runs (RunOnceEx) from the hard drive. You choose what you want installed and then the last three commands are Convert (to NTFS) Cleanup (removes the install directory that holds the install packages) and Reboot (reboot calls to shutdown.exe but not the one that comes with XP)After the reboot it should come up and just load the desktop. This setup has worked for a long time (way back to WPI 4.3 with minor tweaking). Now instead of loading the desktop WPI comes back up but I get the script error with this text:Line: 457Char: 2Error: Object ExpectedCode: 0URL: file://c:\winnt\system32\tools\wpi\common\installer.htaAnybody have any ideas how to fix this? Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 10, 2007 Share Posted January 10, 2007 Can you post your config file, bat files and any mods you made to WPI please? Link to comment Share on other sites More sharing options...
zorphnog Posted January 10, 2007 Share Posted January 10, 2007 So you wrote your own Reboot script that you enter as an application that you run at the end of installations? If that is the case, the easiest way around that is to call the reboot script or whatever you have as the execute after script. You can add this by going to the tools tab in options. This will allow the resume WPI functionality to disable before you reboot.If that is not the case you have, here is a technical explanation of what is happening. WPI has resume after reboot functionality built into it to deal with installs that require a reboot. A RunOnceEx registry key is created each time you begin an installation. This key is not removed until the installation is complete. If you reboot during the middle of an installation, Installer.hta will begin after logon. Link to comment Share on other sites More sharing options...
DJPro Posted January 12, 2007 Share Posted January 12, 2007 Hello there,I've the same script error as 'parkerkane' , but I get that error every time wpi restarts when I use the build-in reboot from WPI.Also after the reboot WPI doesn't restart itselfs, I have to do that manually and then when it says that WPI installation is not complete yet I choose yes and then I get the same error.regel 457teken 2fout: object wordt verwachtcode: 0URL: file://D:/WPI/Common/Installer.hta? RI=true&Theme=Glossy&PAI=falseAnd why is WPI not restaring automatically?Any solution for this?Thanx and regards, DJPro Link to comment Share on other sites More sharing options...
mritter Posted January 12, 2007 Share Posted January 12, 2007 Something quick, do you have Administrator rights to make the reg entries? Link to comment Share on other sites More sharing options...
DJPro Posted January 12, 2007 Share Posted January 12, 2007 @mritterYes, I have administrator rights.As far as I can remember, I didn't had that problem in earlier versions of WPI.Now I use v5.6 Link to comment Share on other sites More sharing options...
parkerkane Posted January 12, 2007 Author Share Posted January 12, 2007 Here are my files.All righty, then. I included the shutdown file that I have been using. (Can't remember where I got it from) Zorphnog, thanks for the explanation. That would explain part of the problem. I did try the included reboot commands but they weren't working the way I wanted them to. Maybe I just have to break down and figure it out.I have it working but I would really like to be using the newer version.Thanks for your help so far.config.jsREBOOT.CMDCLEANUP.CMDshutdown.exe Link to comment Share on other sites More sharing options...
parkerkane Posted January 12, 2007 Author Share Posted January 12, 2007 (edited) Zorphnog, I tried what you suggested (took the reboot command out and changed it in the Tools to an Execute After) but it still opened WPI after the reboot and gave me the script error. Do you have any other ideas I could try? Edited January 12, 2007 by parkerkane Link to comment Share on other sites More sharing options...
zorphnog Posted January 16, 2007 Share Posted January 16, 2007 (edited) After looking at it further, I misinformed you about execute after. The execute after executes before the registry is reset so that is why you got the same error. The only alternative I can think of is to reset the registry in a script so that WPI will not resume on reboot. You can reset the registry keys during your reboot script since you know that it will be the last configuration item to run. Here are the entries you need to modify:[HKEY_CURRENT_USER\Software\WPI]Set ResumeInstall = 0Delete LastExecDelete CurrentInstallDelete LastTopLine[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx\001]Delete entire keyYou may want to bring up a feature request for v5.7 that allows you to turn off the reboot functionality. Edited January 17, 2007 by zorphnog Link to comment Share on other sites More sharing options...
parkerkane Posted January 31, 2007 Author Share Posted January 31, 2007 Thanks, Zorphnog. I appreciate the pointer. I finally had a chance to try what you suggested and it worked like a champ. I appreciate the assist. Link to comment Share on other sites More sharing options...
bmidy Posted March 9, 2007 Share Posted March 9, 2007 I have similar problem (the same error message). When i use %reboot% (to install sptd drivers or simple %reboot% in sample config ) ... system reboots ok then continue installing software and after the last program is installed it gives me this error message. I tried to use this reg file to remove wpi from registry Hi, me tooWhen I call the %reboot% command, WPI reboot continue with the next entry to instal and go on.But when the last entry is done, I get the same error ??Is there any workaround ?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now