MSFN Forum: Script Error - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Script Error Rate Topic: -----

#1 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 15 December 2008 - 09:13 AM

Hello,
i use the newest WPI Version an i get the following error:

In dem Skript auf dieser Seite ist ein Fehler aufgetreten

Zeile: 306
Zeichen: 3
Fehler: 'programs[].cat' ist Null oder kein Objekt
Code: 0
URL: file:///D:wpi/common/installer.hta

After i click "ja" WPI doesn't do something.....

Have anybody a solution?

Thanks
Dennis


#2 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 15 December 2008 - 01:55 PM

I would guess one of your programs doesn't have a category assigned to it.

#3 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 16 December 2008 - 07:34 AM

All my Applications have a category (see the attachment).
The error comes at Panagon Filenet IDM 4.0.0.

Any idea?

Attached File(s)

  • Attached File  config.js (12.63K)
    Number of downloads: 24


#4 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 16 December 2008 - 10:17 AM

Work's fine for me on my main computer with IE7 and on a VM with IE6.

I would erase the entry and add it again. And maybe the one before and after it.

#5 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,241
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 16 December 2008 - 07:35 PM

SirHaschke, please attach your log file. It is found at C:\. Thanks, John.

#6 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 17 December 2008 - 04:37 AM

OK.
Thats my log.

I think i found the error.

WPI installs "Panagon Filenet IDM 4.0.0".
After that, the Softwareinstall makes automatically an reboot.
Shortly before the restart WPI try to install "Panagon Filenet IDM 4.0.1 (Update)" and aborts.
How can i resolve that?
I must reach that "Panagon Filenet IDM 4.0.1 (Update)" cleanly installes after the restart.

Attached File(s)



#7 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 December 2008 - 04:44 AM

Do you have a link to the offending :o software?

So I can try it?

#8 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 17 December 2008 - 08:35 AM

@Kelsenellenelvian

No,sorry.
If i zip it it have a size of 110 MB.
Do you have a FTP Server?
Than i can upload it........

#9 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,241
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 December 2008 - 09:00 AM

Kels, I did a Google on Panagon Filenet IDM 4.0.0 and found free DLs but you will need to register. I noticed in his log that there are no switches on his install. Perhaps he needs to run USSF and/or find a NoRestart switch somewhere. Enjoy, John.

#10 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 17 December 2008 - 09:02 AM

@johnhc

I do an automatic install of Panagon Filenet 4.0.0 with AutoIt ;-)
But the installation of Filenet is simple.
The Software need a restart.

But is this possible
http://www.msfn.org/...howtopic=127467 ???

This post has been edited by SirHaschke: 17 December 2008 - 09:04 AM


#11 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 17 December 2008 - 10:05 AM

In theory, if a program did a reboot on it's own, WPI should be able to restart where it left off. The problem you may be having, which you didn't state when, is if the error you get in the original post comes after the reboot, then since WPI didn't initiate the reboot, it got "confused".

When do you get the error? When first run WPI, during the initial install, right after Panagon is done, or after the reboot?

If you can make the program not reboot after install, but add a {REBOOT} to Command 2, it may work.

Do download this file: core.rar

#12 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 19 December 2008 - 04:23 AM

OK.
The error comes after the reboot.

OK. It's no problem to do not make the program the reboot.
I add a reboot to command 2 and try it.

What is the core.rar for a file?

I'm back in office at 05.01.09 and then i try it and post the solution.

Merry Christmas and a happy new year.

#13 User is offline   icnocop 

  • Junior
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 10-June 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 19 December 2008 - 07:28 AM

I am having this issue as well.

It happens in both WPI v7.2.0 and v7.2.1
Testing on windows xp 32-bit VM with IE6.

For example,

ProgramA has two commands in cmds[pn]. The first command installs the program and the second command is just {REBOOT}.

The program installs correctly and a reboot works fine, but when WPI re-launches after the reboot, I get that js error.

Line: 309
Char: 3
Error: 'programs[...].cat' is null or not an object
Code: 0
URL: file://D:/WPI/Common/Installer.hta

The last items in the WPI window in the background is
ProgramA
Command 1...Success
Command 2...Success

But my config.js has several programs after ProgramA.

Looking at the WPI log file, I notice it outputs the 2 commands for the next program, having succeeded (the first command installs the program, and the second command is just {REBOOT}).

So it seems this is failing on the 2nd {REBOOT} in sequence in config.js.

rb_config.js just indicates prb=0; after the two lines of comments.

Any ideas?

Thank you.

#14 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 19 December 2008 - 04:15 PM

I can't replicate this error. Just curious: is there an apostrophe anywhere in the entry?

#15 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 19 December 2008 - 04:19 PM

Better yet, put an alert in the first entry to pause it, copy the rb_config.js and send it to me.

{JSCRIPT}=alert("test pause")

#16 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 20 December 2008 - 07:08 PM

Problem solved. Sent icnocop a beta to test it.

#17 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 02 January 2009 - 03:05 AM

Hello and a good new year.
I try it and make the program not reboot after install.
I add a {REBOOT} to Command 2.
But WPI doesn't make a reboot (see the jpg file).
In the attachment is also my config.js and the log file.

What can i do?

Attached File(s)



#18 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,653
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 02 January 2009 - 03:48 AM

WPI Installation Log File

Install process started at: Friday, January 02, 2009 2:20:38 AM

WPI information:
   Version=7.3.0
   Operating System=Vista
   Edition ID=Ultimate Edition
   Service Pack=1
   Internet Explorer version=7.0

   Options File=D:\DVD\WPI\WPIScripts\useroptions.js
   Config File=D:\DVD\WPI\WPIScripts\config.js

   // Window tab
   Resolution=1024
   MainWindowWidth=800
   MainWindowHeight=600
   MainWindowX=-1
   MainWindowY=-1
   InstallerWindowX=25
   InstallerWindowY=25

   // Interface tab
   ShowToolTips=true
   UseTransitions=false
   IndentText=true

   // Style tab
   Theme='Windows'
   RandomTheme=false
   BgPicture=''

   // General tab
   Configurations=['']
   ShowMultiDefault=true
   CheckOnLoad='default'
   NumCols=3
   // ---
   SortOrder=['Office']
   // ---
   Timer=true
   Seconds=57
   StartBeepAtSecs=10
   // ---
   ShowExtraButtons=true
   DoNotShowIfCD=true
   USSFSilentMode=false
   VerifyInstallHDD=false
   AllowCheckForInternet=true
   LoadDesktopBeforeInstall=false
   ReOpenAfterInstall=false
   DisableCatCheckBoxes=false
   SortWithinCats=true
   DisableOnDepsNotMet=true
   AlwaysUseScrollBar=true
   DontSplitCats=true
   InstallByCategory=false
   ReallyForce=false
   DisableIfDoGray=false
   InstallFonts=false
   ShowCommandInInstaller=true
   // ---
   DefaultInstallPath='default'
   CustomInstallPath=['']
   // ---
   Language='en'

   // Audio tab
   PlayAudioInInstaller=false
   InstallAudio=['']
   Volume=75
   Shuffle=false
   CopyAudioFolder=false
   CopyAudioPath=['%systemdrive%\WPI_Audio']
   DeleteAudioFolder=false

   // Tools tab
   MonitorResolution=0
   MonitorDepth=0
   MonitorRefresh=0
   // ---
   ExecuteBeforeEnabled=false
   ExecuteBeforebit4=false
   ExecuteBefore=['']
   ExecuteAfterEnabled=true
   ExecuteAfterbit64=false
   ExecuteAfter=['Regedit /s "%wpipath%\Install\RegFiles\Clean.reg"']
   // ---
   RestartComputer=false
   RestartType=0
   RestartSeconds=30
   DoNotLoadDesktop=false
   // ---
   LogInstallation=true
   LogPath=['%systemdrive%\WPI_Log.txt'];
   TimeStampLogFile=true

Global variables:
   %OSLANG%=ENU
   %WPIPATH%=D:\DVD\WPI
   %ROOT%=D:\DVD
   %CDROM%=
   %DOSPATH%=
   %SYSTEMDRIVE%=C:
   %WINDIR%=C:\Windows
   %PROGRAMFILES%=C:\Program Files
   %TEMP%=C:\Users\KELSEN~1\AppData\Local\Temp
   %SYSDIR%=C:\Windows\system32
   %ALLUSERSPROFILE%=C:\ProgramData
   %USERPROFILE%=C:\Users\Kelsenellenelvian
   %APPDATA%=C:\Users\Kelsenellenelvian\AppData\Roaming
   %COMMONPROGRAMFILES%=C:\Program Files\Common Files

List of programs to be installed:
   Panagon Filenet IDM 4.0.0
   Execute After

2 Items, 3 Commands

-----

Friday, January 02, 2009 2:20:39 AM
   Program: Panagon Filenet IDM 4.0.0
   Unique ID: PANAGONFILENETIDM400
   Order: 900009
   Category: Batch CD 3
   Friday, January 02, 2009 2:20:39 AM - cmd1 *** Fail *** (returned code undefined): "D:\DVD\WPI\Install\IDM\FileNet400.exe"
   Friday, January 02, 2009 2:20:39 AM - cmd2 Success (returned code 0): "C:\Windows\system32\shutdown.exe" /r /f /t 3
   Friday, January 02, 2009 2:22:18 AM - Finished installation.

-----

Friday, January 02, 2009 2:22:18 AM
   Program: Execute After
   Unique ID: EXECUTE_AFTER
   Order: 0
   Category: WPI Built In
   Friday, January 02, 2009 2:22:18 AM - cmd1 Success (returned code 0): Regedit /s "D:\DVD\WPI\Install\RegFiles\Clean.reg"
   Friday, January 02, 2009 2:22:18 AM - Finished installation.

-----

Number of failed installations: 1

Install process finished at: Friday, January 02, 2009 2:22:19 AM



Worked for me...

#19 User is offline   mritter 

  • WPI Co-Developer
  • Group: Developers
  • Posts: 1,088
  • Joined: 13-November 05

Posted 02 January 2009 - 10:43 AM

@SirHaschke: Are you sure "C:\Windows\system32\shutdown.exe" exists? The code is fine.

#20 User is offline   SirHaschke 

  • Junior
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 20-October 08

Posted 05 January 2009 - 03:54 AM

I found the error.
If i type "C:\WINDOWS\system32\shutdown.exe" /r /f /t 0 3 i get the syntax window.
But if i type "C:\WINDOWS\system32\shutdown.exe" /r /f /t 3 without the 0 it works.
Is there a bug?

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy