Jump to content

zorphnog

Member
  • Posts

    427
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by zorphnog

  1. Ok, I'm still not sure what this does. Could you post your version 0.1 and your config file so we can have a look?
  2. Could you post the useroptions.js that is not loading properly?
  3. So could you explain a little more about what switchless does?
  4. I would like to see the Tips style integrated into the Themes either through wpi.css or a new theme file i.e. tips.css.
  5. @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.
  6. I agree. Those who want to use it, can change the code in the handleCommand function of installer.js.
  7. Well I wouldn't say that the code is irregular or necessarily bad. It could be anything: a warning, an uninitiated integer, who knows. My point about reg.exe is that it sends either success or failure and nothing in between. Have you looked to see if the reg entries imported correctly?
  8. Hmm. I can't reproduce this on my system. What theme are you using? Is it v5.3 compliant?
  9. My guess is that its a return code of one of your entries in the regfile, but I don't know. Regedit is really more of a GUI editing tool, and does not return any sensible codes. It would probably be better to use reg.exe instead of regedit.exe. Reg.exe is a ms-dos based tool returns 0 for success and 1 for failure. Try something like: reg import "%wpipath%\registry\ennotepadrightclick.reg" Reg.exe comes builtin with WinXP Pro and Win2k3 Server, for Win2k it is available in this package: http://www.microsoft.com/windows2000/downl...pporttools.mspx
  10. Dircopy usage: dircopy [source] [destination] In your case something like: dircopy %cdrom%\folderName %systemdrive%\folderName Where 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.
  11. Well, I'm not sure what your problem is. I tried your config file with my v5.3 and it worked fine. I don't know if it will make any difference, but I uploaded 5.3 (with latest bug fixes) and your config file. So if you want to give it another shot here it is.
  12. I know what forum this is. I'm saying that this could be implemented using nLite as a tool integrated into a program like you described. Just saying that a lot of the work is already done.
  13. You shouldn't need to delete any reg information. Are you running from HDD or DVD/CD? Did you delete your 5.1 files and folders (minus configuration file)? If so, can you archive your setup and post it so we can have a look.
  14. 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";with document.getElementById("Timer_bar").style.width=Math.abs(TimerWidth-Math.floor((passed/startSecs)*TimerWidth))+"px";
  15. Most of this can be done with nLite. Now perhaps creating a WPI plugin for nLite would be nice. There really isn't much to the WPI integration. I don't know what all is involved in writing plugins for nLite, but I don't think it would be too difficult. I think I might look into this.
  16. It is a bug. Check out the fix in Bug Tracker.
  17. Isn't this already implemented? Or are you saying that you want to be able to disable forced installs when starting installation? I guess for testing purposes it might be nice to be able to disable the forced installs on 'start installation'.
  18. I'm not sure I quite understand. If people want to exit without installs then wouldn't you just uncheck 'Force installs when exiting'? What exactly would a 'force installs when start installation' do?
  19. After looking at the forced app on exit issue further, the fix I supplied works. However, in an effort to keep the code clean the following should also be applied to reduce redundant code. In installer.js: function InstallPrograms() { position="installer.js"; whatfunc="InstallPrograms()"; var i, j; for(i=1; prog[i] != null; i++) { if (forc[i] != null && forc[i]=="yes" && ReallyForce) //REMOVE THIS LINE setChecked(i); //REMOVE THIS LINE if (document.getElementById("chkbox"+i) && document.getElementById("chkbox"+i).checked) programs[programs.length++] = new program(i); } ...
  20. I haven't had a lot of time to look at it, but this should be a quick fix. In check.js: function remChecks() { position="check.js"; whatfunc="remChecks()"; var elem; for(i = 1; prog[i] != null; i++) { elem = document.getElementById("chkbox"+i); if (elem==null) continue; if (forc[i]!=null && forc[i]=='yes') //ADD THIS LINE continue; //ADD THIS LINE elem.checked=false; } }
  21. It is for WPI v5.2. I just started using WPI at v5.1, so I don't know if it will work with v5.0.1. There really aren't that many lines added/changed (like 14 lines and the chktxt css class). So you could try it with 5.0.1 if you want. I'll edit the posted code with //comments for added/changed tags so you can see which lines to change.
  22. You can compile autoIt script into a self-contained .exe, therefore not needing to install or register any libraries.
  23. Possible enhancement http://www.msfn.org/board/index.php?showtopic=80015.
  24. I began working on an enhancement for displaying the forced installs as always checked, per this post. Since then I have cleaned up the code so that forced installs now show up as a checked and disabled checkbox. While I was doing this I also wanted to have a way to highlight the labels of the programs that were checked (for readability purposes). So I made some changes to check.js, boxes.js, and the wpi.css of my theme. I thought some of you might be interested so here is everything. Screenshots Default programs: All programs: None programs (with forced programs still checked) Files ...and here are the changed files (based off the original 5.2 files): P.S. - The css file is for the Glossy theme. Code And the code changes for those interested are as follows: 1. Modify boxes.js starting at line 131 as follows: //insert checkbox and label // -- checkbox -- if (DebugOn) txt += '<font class="txt">' + i + '</font>\n'; txt += '<input type="checkbox" id="chkbox' + i + '"'; if (uid[i]==null || uid[i]=="") { txt += 'name="chkbox' + i + '" '; txt += 'onclick="checkDeps(' + i + '); checkCategory(' + i + ');"'; } else { txt += 'name="' + uid[i] + '" '; txt += 'onclick="checkDeps(' + i + '); checkCategory(' + i + ');"'; } txt += 'onMouseOver="qdh(prog[' + i + '],desc[' + i + '],Style[0]);" '; txt += 'onMouseOut="htm();"'; if (forc[i]!=null && forc[i]=='yes') //Added code txt += ' checked'; //Added code if (DoGray || (forc[i]!=null && forc[i]=='yes')) //Modified code txt += ' disabled'; txt += (' />\n'); // -- label -- if (DoGray) txt += '<label class="gtxt" id="lbl' + i + '" '; else if (forc[i]!=null && forc[i]=='yes') //Added code txt += '<label class="chktxt" id="lbl' + i + '" '; //Added code else txt += '<label class="txt" id="lbl' + i + '" '; 2. check.js: A. Modify the setChecked function as follows: else { var chkbox = document.getElementById("chkbox"+i); //Modified code var lbl = document.getElementById('lbl'+i); //Added code if (chkbox==null) return; if (chkbox.disabled) return; if (!chkbox.checked) debug("setChecked for '" + prog[i] + "' (uid=" +uid[i] + ")",1,4); chkbox.checked=true; //Modified code lbl.className='chktxt'; //Added code tabs++; checkParent(i); if (DisableOnDepsNotMet) enableChildren(i); if (useExclusions) checkExclusions(i); tabs--; } B. Modify the setUnchecked function as follows: else { var chkbox = document.getElementById("chkbox"+i); //Modified code var lbl = document.getElementById('lbl'+i); //Added code if (chkbox==null) return; chkbox.checked=false; //Modified code lbl.className='txt'; //Added code debug("setUnchecked for '" + prog[i] + "' (uid=" +uid[i] + ")",1,4); tabs++; uncheckChildren(i); if (DisableOnDepsNotMet) disableChildren(i); if (useExclusions) checkExclusions(i); tabs--; } C. Modify checkDeps as follows: if (elem.disabled) { if (forc[i]!=null && forc[i]=='yes') //Added code return; //Added code elem.checked=false; return 0; } 3. wpi.css: In the wpi.css file of your favorite theme add the following class .chktxt //Added code style for highlighted (checked) Programs { font-family: arial; font-weight: bold; color: #EBB313; font-size: 8pt; margin-left: 5px; margin-right: 10px; }...and style it however you would like.
  25. I like the show source code button. Very useful for viewing the runtime source. Keep it.
×
×
  • Create New...