Jump to content

WPI 5,3 js.generate error ( same since 5,1 )


 Share

Recommended Posts


After Ive edited Options and saved it. The I return to Mainwindow ( or restart WPI ), I got this message. If I delete Useroptions.js and restart, theres no problem, til useroption.js is generated.

Hope it helps you.

Link to comment
Share on other sites

Here it is ( generated by WPI ):

// WPI Options 5.0+

//

// User defined options

//

// Interface tab

Language='zz';

Theme='Glossy';

RandomTheme=false;

BgPicture='';

Resolution=0;

// ---

Style[0]=["white","#000099","","","","","black","#e8e8ff","","","","","","","2","#000099","0",51,0.4,"","","","","","",""];

ShowToolTips=true;

UseTransitions=false;

IndentText=false;

//Installer tab

Configurations=[''];

CheckOnLoad='default';

NumCols=3;

SortOrder=[''];

DisableCatCheckBoxes=false;

SortWithinCats=true;

DisableOnDepsNotMet=true;

AlwaysUseScrollBar=true;

DontSplitCats=true;

// ---

Timer=true;

Seconds=60;

InstallByCategory=true;

ReallyForce=false;

// ---

ExtraWidth=0;

ExtraHeight=0;

//Audio tab

PlayAudioInWPI=false;

WPIAudio=[''];

PlayAudioInInstaller=false;

InstallAudio=[''];

// Tools tab

MonitorResolution=0;

MonitorDepth=0;

MonitorRefresh=0;

// ---

InstallFonts=false;

// ---

ExecuteBeforeEnabled=false;

ExecuteBefore=[''];

ExecuteAfterEnabled=false;

ExecuteAfter=[''];

// ---

RestartComputer=false;

RestartType=0;

RestartSeconds=30;

DoNotLoadDesktop=false;

// Miscellaneous tab

LogInstallation=false;

LogPath=['%systemdrive%\\WPI_Log.txt'];

// ---

ShowMultiDefault=false;

ShowExtraButtons=true;

And here you can download the whole thing: Download: WPI.7z

Link to comment
Share on other sites

yep - german, but the problem was the same with older versions and english language.

Have you downloaded the 7zip file and tested it on your machine?

It sounds I´m the only one who has this error!

Link to comment
Share on other sites

Then I have an error with my machine???? I tried a little and found out that it works if no config.js is selected. But if I generate one or take the included example I have this error.

I also tried it on a VMWare XP installation - the same. Maybe if an older WPI Version runs before on the system??? What could be wrong with the findCDRom function and my system?

Link to comment
Share on other sites

It's not a problem with FindCDRom(), it is with ReplacePath(). Something if your config.js file, dealing with either/or cond[] or gcond[] statement. If you go into your config.js file and comment out all those lines, //cond[pn]= and //gcond[pn]=, restart, see if it works. If it does, then go back and un-comment them one by one until you find the culprit.

Link to comment
Share on other sites

It's not a problem with FindCDRom(), it is with ReplacePath().
I agree with that, but according to the line number shouldn't it rather be a problem with 'fso.OpenTextFile' on the 'system32\$winnt$.inf' file, as I already said in a previous post?

Actually, there is one glitch with this instruction: the file is not closed after reading, which is not very clean and may lead to problems.

@wixfigura:

- can you add this line in genarate.js after line 122 and test again:

var winntinf=fso.OpenTextFile(sysdir + "\\$winnt$.inf", 1);		
// It's recorded in the 'dospath' directive of the [data] section of \system32\$winnt$.inf.
var matches = winntinf.ReadAll().match(/\ndospath=(.*)/i);
winntinf.Close(); // <--ADD THIS LINE
if (matches)

-Can you also tell us what is the error message in english?

Link to comment
Share on other sites

@mritter

yes thats it! I dont use that cond stuff, but WPI generates a standard line in config.js.

but leads maybe to the next problem. Now I have this message from installerwindow:

scripterror.jpg

I have only one entry in config.js ( just for the test )

pn=1;

prog[pn]=['.Net Framework 1.1 + 2.0'];

ordr[pn]=[1];

desc[pn]=['Installiert Microsoft .NET Framework Redistributable Package 1.1 und 2.0.'];

uid[pn]=['DOTNETFW'];

dflt[pn]=['yes'];

cat[pn]=['System'];

forc[pn]=['no'];

configs[pn]=['yes'];

//gcond[pn]=['FileExists(\'%programfiles%\\\')'];

cmd1[pn]=['%WPIPATH%\\install\\dotnetfx\\dotnetfx.exe'];

pn++;

Whats wrong now?

@dje

adding your line doesnt solve that problem.

the message means: message:file not found ( the rest is in english )

Edited by wixfigura
Link to comment
Share on other sites

I have a little question: why does gcond automatically insert that statement there?

Should it make further edit easier by not having to type the %programfiles% anymore?

If so, I think it may run into trouble when it is evaluated.

here's a small code that checks if the %programfiles% dir really exists on the HDD. If it doesn't, errr ... I don't think it is possible not to exist :ph34r: :

gcond[pn]=['!FileExists(\'%programfiles%\\nul\')'];

This would make more sense for me ...

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...