Help - Search - Members - Calendar
Full Version: excludorIsChecked() error
MSFN Forums > Member Contributed Projects > Windows Post-Install Wizard (WPI)

   
Google Internet Forums Unattended CD/DVD Guide
mritter
Here is the cure for the cond problem. I never full tested the code "chinadave" sent since I don't have an excludes at the moment. He had some [i] when they should have been [j]. Makes me wonder if he even tested his own code.

CODE
  if (cond[j] && cond[j][0])
  {
   var c = unescape(ReplacePath(cond[j][0]).replace(/\\/g, "[url=""]\\\\[/url]"));

   try
   {
    if (!eval(c))
     continue;
   }
   catch(e)
   {
    alert(getText(ErrorInCondStatement)+"\n\n" + prog[j] + "\n" + cond[j] + "\n\n"+getText(TreatingAsFalseCond));
    continue;
   }
  }


Download new check.js file here: Click to view attachment

Post here is works, or if not.


Dislocated Time
no.gif
Starting WPI:

JavaScript Error Report
Message: Object expected
URL: file://X:/HFSLIPENG/SOURCE/WPI/WPI.hta
File: check.js
Function: CountCheck()
Line: 667

Note: None of my programs appeared in WPI, even though they are still listed in my config.js huh.gif

After clicking the error message away and clicking on the config button:

Message: 'configList[...].prog' is null or not an object
Url:file:///X:/HFSLIPENG/SOURCE/WPI/WPI.hta
File:configwizard.js
Function: FillInConfig()
Line:174

By the way:
Cat is a variable... did you read what I wrote about the variable: perhaps the software reads catch as the variable Cat with the suffix ch.
mritter
cat as a variable is not a problem; it has been there since the day WPI was written.

I don't know what else you could have done, your config entries work on my computer with the above new code.
Dislocated Time
Maybe it's my PC at the moment.
Will try on my other PC after I get off work today.

Thank you very much for your work.
mritter
It very well could be. Computers at my work have difficulty with WPI, old ones and new ones, different errors, different times......
jcbrief
It fixed my problem,

Thanks,
Joe
mr_smartepants
This fixed my problem. Thank you!
sp00f
yes this fixed the GetOsVer errors for me, thx !!
rajesh.kumar
thank u for the replacement file. this one works here too.
mritter
I actually ended up taking the new addition back out. It is redundant because it is also done in boxes.js.
rajesh.kumar
does v7 include this fix?
sp00f
QUOTE (rajesh.kumar @ Aug 1 2008, 05:58 PM) *
does v7 include this fix?

Good question, i also like to know.
mritter
Yes. Is evrything working OK for you now?
sp00f
QUOTE (mritter @ Aug 2 2008, 07:28 PM) *
Yes. Is evrything working OK for you now?

No , : http://www.msfn.org/board/problem-with-col...in-t121389.html no.gif
rajesh.kumar
QUOTE (sp00f @ Aug 6 2008, 03:14 AM) *
QUOTE (mritter @ Aug 2 2008, 07:28 PM) *
Yes. Is evrything working OK for you now?

No , : http://www.msfn.org/board/problem-with-col...in-t121389.html no.gif


Edit : One issue - http://www.msfn.org/board/problem-with-col...585#entry786585

ok, i have only one column, and the issue related to it.
And the basic error is not anymore in this version.
vampus8
This fixed a problem I was having too. On WPI boot I'd get this error:

CODE
Line: 471
Char: 5
Error: Object Required
Code: 0
Url: file:///C:/DuD30b3/WPI/WPI.hta

(Same error when loading from disc instead of hard drive just with disc's wpi.hta in URL.)

Same bug would get triggered when I checked or unchecked certain install options. Specifically, it'd pop up when the program I checked had an excl condition excluding another install option that wasn't showing up on the list for whatever reason (e.g. because I'd deleted the files already but left the option in my config.js for safekeeping or because there was a typo in the cond statement).

Anyway, installing the new file from this thread fixed the problem.

Well done and thanks for the ongoing effort.

Cheers,
Kevin
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.