Jump to content

sadicq

Member
  • Posts

    273
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Romania

Everything posted by sadicq

  1. Hmz ... interesting .. I found the problem, I don't know if what I'm doing is right, but hell it works! Open installer.js, search for if (!InstallWindow.closed) InstallWindow.close(); and replace it with //if (!InstallWindow.closed) //InstallWindow.close(); And I must say I'm impressed about how fast it disappears ...
  2. It looks like the error is related to SetScriptWaitTimeout() and its call inside generate.js. <-wrong I'll post back as soon as I discover the exact cause.
  3. Well I aswered to the second question here. For the first one, here is what I did: in Themes\xxx\wpi.htm, I replaced the whole code block with <!-- Audio Player --> <div id="mediaplayer" style="position:relative; display:block; z-index:100; overflow:hidden; width:300px; height:44px;"> <object id="MediaPlayer" width="300" height="44" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"> <param name="SendPlayStateChangeEvents" value="1"> <param name="AutoStart" value="1"> <param name="uiMode" value="full"> <param name="PlayCount" value="9999"> <param name="Volume" value="100"> <param name="EnableContextMenu" value="0"> <param name="WindowlessVideo" value="1"> </object> </div> <script type="text/javascript"> if (PlayAudioInWPI) { document.all.MediaPlayer.url='./Audio/WPI.m3u'; } </script> This is located at the bottom at the page if you search for it manually. I also removed the following line: document.all.mediaplayer.style.display = PlayAudioInWPI ? 'block' : 'none'; These are all of the themes-specific changes. The other files I modified: Common\Installer.hta I also replaced this code block with a => <div id="mediaplayer" align="center" style="display:none;"> <script type="text/javascript"> if (PlayAudioInInstaller) { var InsPath; InsPath=WPIPath(); InsPath=InsPath.replace(/\\Common/gi,""); InsPath +="Audio\\Install.m3u"; document.write('<object id="MediaPlayer" width="300" height="44" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">'); document.write('<param name="SendPlayStateChangeEvents" value="1">'); document.write('<param name="AutoStart" value="1">'); document.write('<param name="uiMode" value="full"> '); document.write('<param name="PlayCount" value="9999">'); document.write('<param name="Volume" value="100">'); document.write('<param name="EnableContextMenu" value="0">'); document.write('<param name="WindowlessVideo" value="1">'); document.write('</object>'); document.all.MediaPlayer.url=InsPath; } </script> </embed> </div> Common\optionswizardtemplate_audio.htm Modified <input id="PlayAudioInWPI" type="checkbox" onClick="HandlePlayWPIAudioSelection();"> to <input id="PlayAudioInWPI" type="checkbox" onClick="HandlePlayWPIAudioSelection();" disabled> (This will disable the checkbox for "Play Audio in WPI"). <input id="PlayAudioInInstaller" type="checkbox" onClick="HandlePlayInstallAudioSelection();"> to <input id="PlayAudioInInstaller" type="checkbox" onClick="HandlePlayInstallAudioSelection();" disabled> (This will disable the checkbox for "Play Audio in installer"). WPIScripts\installer.js Remove if (PlayAudioInInstaller) InstallWindow.document.getElementById("MediaPlayer").style.display='block'; and StopAudio(); WPIScripts\optionswizard.js Remove function PlayAudio() { position="optionswizard.js"; whatfunc="PlayAudio()"; } function StopAudio() { position="optionswizard.js"; whatfunc="StopAudio()"; if (PlayAudioInWPI) { document.all.MediaPlayer.close(); document.all.MediaPlayer.url=''; } }
  4. Classic theme attached. Sorry for the late reply, I just went to bed last night Classic.7z
  5. I think you're right on this one... Finally someone who can explain what he encountered and what he wants ... I just removed it from the standard WPI (5.1) and I uploaded the new archive. Note that the media player has been removed but the audio options page has been left .. (too many modifcations to make). Anyway, it's inactive, so that won't bother you. And one more thing: I only left out the Glossy theme. If you use another one, post back and I'll have it done for you. Download
  6. Heh, not such a big problem... I just want to see this forum clean and easy to read.
  7. Next time, please search before you ask. The soultion can be found on the very first page ... here
  8. Please take a look a this. You used a systemdrive var in your config so that makes me think it comes from the same reason... Just give it a try and report back.
  9. How about making font integration easier? I mean we could use the same function as for the audio part. The fonts.ini looks exactly like a playlist, so that should be easy to do.
  10. This should work for all of you ... [autorun] ShellExecute=wpi\wpi.hta ICON=WPI.ICO
  11. Does you cd at least have the wpi icon displayed in "My computer"?
  12. Sorry, but I have my autorun disabled and I can't try it ... I can't say for sure just looking at it, but it looks fine for me.
  13. Well, the cmd doesn't have the %wpipath% variable defined. That var is available only inside WPI. Here is a fix (don't blame me if this isn't working, I'm writing it from memory): for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\wpi.ico set CDROM=%%i: %CDROM%\WPI\cmdow.exe @ /hid
  14. Well, when you make your cd, your iso contains all the files inside XPCD dir. So it doesn't contain the XPCD dir itself. So, your path to the programs is %CDROM%\\WPI\\Install, not %CDROM%\\XPCD\\WPI\\Install. I'll attach the fixed config.js file so you can see the modifications I made (nothing more than replacing the path all over it). Btw, no need for attaching the other 2 files. config.js
  15. Would you like to have an automated language detection so WPI will start for each computer with the language it detects? Although English is not my mother tongue, I use it in WPI ... So, I want to hear your opinion about implementing this feature (because it's very easy for me to do it).
  16. That's an error coming from your translated file. You forgot to escape some special chars. Here is the fixed version. lang_nl.js
  17. Hm, but your fix declares the i variable which will not be modified if my second one is applied. So, using the 3 fixes together has an useless variable declared (i), but will work. But if you use only my second fix and your fix, we have an i called in the InstallOne() fucntion which will remain the same no matter what happens in the other function.
  18. Open wpi.htm and search for volume to modify it in WPI and open installer.hta to modify it in the installer.
  19. Well that's really bad ... You can't use them at the same time. Choose one of them and apply it. And also apply the first fix which is this, especially if you are using my second fix. You did no counted well the fixes: here is how it goes: my first fix - the one which replaces i with item. My second fix - the one which replaces i with k. The third fix (Djé's) - the one which adds a var i in the function. The first fix is good to apply no matter what you choose next. But you have to choose between the other ones.
  20. Mine works just fine. It looks like you're running low on system resources ... or maybe it reads from the cdrom while it's playing and installing at the same time. Are you installing from cd or from hdd? Anyway, I'd like to know what theme you are using so I can look at the method the player is embed.. One more thing: can you send me the mid file so I can look at it too?
  21. Well, I'm 90% sure the first fix I made is fixing this. Anyway, at the end of my second fix, I said all of you who encounter this to make the first one too, because it's necessary. The programs work because in the InstallOne() function, not the programs are messed up, but the success and fail properties.
  22. Next time search before making an useless post. http://www.msfn.org/board/index.php?s=&amp...st&p=533799
  23. how about the first one? Is it a typo or not? I think that i has nothing to do with that and item is the one that should go there ... of course that if you consider i global, it works ... but we're exposed to further errors.
  24. This one should work ... open installer.js and search for the next code snippet for(i=0; i<programs.length && programs[i] != null && !BreakLoop; i++) { ce++; programs[i].success=false; programs[i].fail=false; UpdateInstallList(ce,programs); StartLogEntry(programs[i]); InstallOne(i,'regb'); CheckInstaller(); for(j=1; j<=6 && !BreakLoop; j++) { InstallOne(i,'cmd'+j); CheckInstaller(); } CheckInstaller(); InstallOne(i,'rega'); CheckInstaller(); WriteLogLine("Finished installation"); UpdateProgressBar(Math.round((ce/programs.length)*100)); Pause(0,250); }Replace it with for(k=0; k<programs.length && programs[k] != null && !BreakLoop; k++) { ce++; programs[k].success=false; programs[k].fail=false; UpdateInstallList(ce,programs); StartLogEntry(programs[k]); InstallOne(k,'regb'); CheckInstaller(); for(j=1; j<=6 && !BreakLoop; j++) { InstallOne(k,'cmd'+j); CheckInstaller(); } CheckInstaller(); InstallOne(k,'rega'); CheckInstaller(); WriteLogLine("Finished installation"); UpdateProgressBar(Math.round((ce/programs.length)*100)); Pause(0,250); } Also make the previous modification I posted in order for this to work (I think ...). Oh, my fault Pliek ... it's not you ... %wpipath% automatically returns the path with a trailing backslash. So to remove the unneeded \\ do a replace all for "%wpipath%\\" with "%wpipath%" only if you want to do it yourself. I'll attach a fixed one to spare you the operation ... What do you guys (kel and mritter) think about changing this variable to the windows standard in the next release? I mean I'd like it to have no trailing slashes ... it's not that hard .. we can make a folder-replace (like the one supported by dreamweaver) to fix all the instances in the archive at once. Well, except the one in generate.js which would have to be manually edited. About 5 minutes ... config.7z
  25. No need to worry about that condition inserted. WPI automatically evaluates it so it has to be something always true ... So, it's harmless and you should leave it alone. Also notice that WPI rewrites completely all your config.js every time you choose to save your config in WPI. And to be on=topic regarding the previously described bug, I can give you a hint ... Look at this: 15. juli 2006 19:18:50 Program: K-Lite Codec Pack 2.72 Full UID: Codec Order: 000050 Category: Multimedia 15. juli 2006 19:19:05 cmd1 Success (returned code 0): "C:\Install\Multimedia\Codec\WM9Codecs.exe /Q" 15. juli 2006 19:19:25 cmd2 Success (returned code 0): "C:\Install\Office\Nero66\WMAPlugin20933.exe /Silent /noreboot /no_ui" 15. juli 2006 19:19:26 cmd3 Success (returned code 0): "C:\Install\Office\Nero66\Plugin.cmd" 15. juli 2006 19:19:37 cmd4 Success (returned code 0): "C:\Install\Office\Nero66\NeroBurnRightsInstaller.exe /silent /nocancel /nolicense /burnrights:all /noreboot /no_ui" 15. juli 2006 19:19:37 Finished installation ----- 15. juli 2006 19:19:37 Program: Adobe Acrobat Reader 7.08 UID: Adobe7 Order: 900004 Category: Office 15. juli 2006 19:19:43 cmd1 Success (returned code 0): "Msiexec.exe /i "C:\Install\Office\Adobe7\Adobe Reader 7.0.8.msi" /qb" 15. juli 2006 19:19:57 cmd2 Success (returned code 0): "C:\Install\Office\Nero66\WMAPlugin20933.exe /Silent /noreboot /no_ui" 15. juli 2006 19:19:57 cmd3 Success (returned code 0): "C:\Install\Office\Nero66\Plugin.cmd" 15. juli 2006 19:20:05 cmd4 Success (returned code 0): "C:\Install\Office\Nero66\NeroBurnRightsInstaller.exe /silent /nocancel /nolicense /burnrights:all /noreboot /no_ui" 15. juli 2006 19:20:05 Finished installation The cmd2, 3 and 4 are the same for different programs .. they are inserted wrong so I can say I'm closer to a fix.
×
×
  • Create New...