zorphnog Posted August 10, 2006 Posted August 10, 2006 (edited) There is a rounding error in the timer.js file that is causing the Timer_bar element width to become negative.In timer.js (Line 54) replace:document.getElementById("Timer_bar").style.width=Math.round(TimerWidth-Math.round((passed/startSecs)*TimerWidth))+"px";withdocument.getElementById("Timer_bar").style.width=Math.abs(TimerWidth-Math.floor((passed/startSecs)*TimerWidth))+"px"; Edited August 10, 2006 by zorphnog
udaydand Posted August 10, 2006 Posted August 10, 2006 how the dircopy works i want to copy one folder from dvd to sys drive
eagle47benny Posted August 10, 2006 Posted August 10, 2006 (edited) Thanks a buch Dynaletik and zorphnog, That fixed it Edited August 10, 2006 by eagle47benny
zorphnog Posted August 10, 2006 Posted August 10, 2006 how the dircopy works i want to copy one folder from dvd to sys driveDircopy usage:dircopy [source] [destination]In your case something like:dircopy %cdrom%\folderName %systemdrive%\folderNameWhere folderName is the name of the folder you want to copy.Next time, please ask these types of questions in the general Windows Post-Install Wizard (WPI) forum.
larciel Posted August 10, 2006 Posted August 10, 2006 What is the config entry for the last program? I want to track down this error.This is the last three entries. Weird thing is the .reg entry below did not run correctly even though log says it was successful.Thanks kelThursday, August 10, 2006 3:04:06 AM Program: theme-Logon_Natural UID: THEMELOGON_NATURAL Order: 000116 Category: Themes-Logon Thursday, August 10, 2006 3:04:06 AM Reg Before Success (returned code 0): "RegEdit /S C:\theme\natural.reg" Thursday, August 10, 2006 3:04:06 AM Finished installation-----Thursday, August 10, 2006 3:04:07 AM Program: zBTS Finish UID: ZBTSFINISH Order: 000119 Category: System Tools Thursday, August 10, 2006 3:06:27 AM cmd1 Success (returned code 0): "C:\DPsFnshr.exe" Thursday, August 10, 2006 3:06:27 AM Finished installation-----Thursday, August 10, 2006 3:06:28 AM Program: zFinishing Install UID: ZFINISHINGINSTALL Order: 000120 Category: System Tools Thursday, August 10, 2006 3:06:33 AM cmd1 Success (returned code 0): "C:\none1.bat" Thursday, August 10, 2006 3:06:33 AM cmd2 Success (returned code 16): "F:\winapp\cmd2.cmd" Thursday, August 10, 2006 3:06:36 AM cmd3 Success (returned code 0): "F:\winapp\finish.cmd" Thursday, August 10, 2006 3:06:36 AM Finished installation
eagle47benny Posted August 10, 2006 Posted August 10, 2006 The misc. tab in the options page is only visible when you are on the Interface tab. It disapears for the others (including itself if you click to it from the Interface tab).
zorphnog Posted August 10, 2006 Posted August 10, 2006 The misc. tab in the options page is only visible when you are on the Interface tab. It disapears for the others (including itself if you click to it from the Interface tab).Hmm. I can't reproduce this on my system. What theme are you using? Is it v5.3 compliant?
eagle47benny Posted August 10, 2006 Posted August 10, 2006 I would assume so, since I haven't done any themes yet, it was a freshly downloaded v5.3.
mritter Posted August 11, 2006 Posted August 11, 2006 @zorphnoq, good catch on the timer bug. That was a weird one: only 300 caused it, 301 worked fine.-----------------------------------@udaydand: did the dircopy work for you? Not many people use the built-in command anymore so want to make sure they still work ok.
Eagle1 Posted August 11, 2006 Posted August 11, 2006 I have another error when using the command line of 'WPI.hta username 0'. I have also tried the new command line method, as well. I have added the fix shown above, but still have this error.Here is the error:
larciel Posted August 11, 2006 Posted August 11, 2006 i can confirm the error above as well. I've used 180 seconds. when timer hits 0 , that error occurs
Djé Posted August 11, 2006 Posted August 11, 2006 The command line bug is still present unless fix 5 is applied from 5.2 buglist!@g3o That bug is still there. We know. The problem is that it partially fixes it, but 100%. Dje and I are still looking at it.What bug are you guys refering to?The 5.3 command line parser just works fine here and has the correct line:fullpath = fullpath.replace("file:///","").replace(/\//g,"\\\\");3/// and then 4\\\\
zorphnog Posted August 11, 2006 Posted August 11, 2006 I have another error when using the command line of 'WPI.hta username 0'. I have also tried the new command line method, as well. I have added the fix shown above, but still have this error.i can confirm the error above as well. I've used 180 seconds. when timer hits 0 , that error occurs@larciel I couldn't replicate this bug with 180, but try the following fix.@Eagle1 this is another bug in timer.js a division by zero error. Replacing the tTimer function with the following one should fix this.function tTimer(){ position="timers.js"; whatfunc="tTimer()"; var txt=""; if (startSecs>0) { if (Seconds==0) Seconds=1; txt = m+":"+ --Seconds; if (Seconds==0) { txt = m+":"+"0"+Seconds; m--; Seconds=60; } if (Seconds<10 && Seconds>-1) txt = m+":"+"0"+Seconds; document.getElementById("TimerDisplay").innerHTML=txt; passed++; document.getElementById("Timer_bar").style.width=Math.abs(TimerWidth-Math.floor((passed/startSecs)*TimerWidth))+"px"; if (!PlayAudioInWPI && (m==0 && Seconds<11)) PlaySound(wpipath+"\\Themes\\"+Theme+"\\TimerSound.wav"); } if ((Seconds==60 && m<0) || startSecs==0) { document.getElementById("TimerDisplay").innerHTML="0:00"; document.getElementById("Timer_bar").width=0; Pause(0,250); stopInterval(); checkInstall('timer'); }}It should also be noted that a timeout of "0" actually takes one second to execute. This cannot be avoided though due to the way that configuration profiles and forced application installs are applied. Not a big deal, but in case anyone was wondering.
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