wixfigura Posted August 11, 2006 Posted August 11, 2006 (edited) Hi - got the same error since 5,1. Anyone know how to fix it? Cannot use newer versions.The same if I mount an image of wpi as cd.PLEASE HELP ME !!! Edited August 11, 2006 by wixfigura
Dynaletik Posted August 11, 2006 Posted August 11, 2006 When does this error message come up? Just when you start WPI doubleclicking the WPI.hta file? Or when install starts?
wixfigura Posted August 11, 2006 Author Posted August 11, 2006 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.
zorphnog Posted August 11, 2006 Posted August 11, 2006 Could you post the useroptions.js that is not loading properly?
Djé Posted August 12, 2006 Posted August 12, 2006 (edited) @wixfigura: Can you please read and do the test mentioned there so we can try to debug this?ps: line number is now 120 in 5.3 Edited August 12, 2006 by Djé
wixfigura Posted August 12, 2006 Author Posted August 12, 2006 Here it is ( generated by WPI ):// WPI Options 5.0+//// User defined options//// Interface tabLanguage='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 tabConfigurations=[''];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 tabPlayAudioInWPI=false;WPIAudio=[''];PlayAudioInInstaller=false;InstallAudio=[''];// Tools tabMonitorResolution=0;MonitorDepth=0;MonitorRefresh=0;// ---InstallFonts=false;// ---ExecuteBeforeEnabled=false;ExecuteBefore=[''];ExecuteAfterEnabled=false;ExecuteAfter=[''];// ---RestartComputer=false;RestartType=0;RestartSeconds=30;DoNotLoadDesktop=false;// Miscellaneous tabLogInstallation=false;LogPath=['%systemdrive%\\WPI_Log.txt'];// ---ShowMultiDefault=false;ShowExtraButtons=true;And here you can download the whole thing: Download: WPI.7z
Kelsenellenelvian Posted August 12, 2006 Posted August 12, 2006 I can't reproduce your error. I tried editing the options and saving them, adding execute before and after processes, deleteing the old useroptions file and starting over. I just cannot seem to reproduce your error.What is your defualt lang?
Dynaletik Posted August 12, 2006 Posted August 12, 2006 His default language is german, I think, but I can't reproduce this error either.
wixfigura Posted August 12, 2006 Author Posted August 12, 2006 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!
Kelsenellenelvian Posted August 12, 2006 Posted August 12, 2006 Yes I was using the exact same 7z file you provided for us.
wixfigura Posted August 12, 2006 Author Posted August 12, 2006 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?
mritter Posted August 13, 2006 Posted August 13, 2006 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.
Djé Posted August 13, 2006 Posted August 13, 2006 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?
wixfigura Posted August 13, 2006 Author Posted August 13, 2006 (edited) @mritteryes 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: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 August 13, 2006 by wixfigura
sadicq Posted August 13, 2006 Posted August 13, 2006 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 :gcond[pn]=['!FileExists(\'%programfiles%\\nul\')'];This would make more sense for me ...
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