RJTPlomp Posted July 25, 2006 Posted July 25, 2006 Hi,I'm having quite some trouble with trying to get WMP10 correctly installed from/via WPI. I have also read this other forum topic (linked below). There it is explained that if you didn't remove WMP9 with NLite you should do some minor chages to optionswizard.js and it should work. Well I tried and tested, but to no avail. Mind you I'm not a script-wizard, but I can understand these changes.Forum-linkBy the way, I'm not playing music during either WPI-install-setup, or WPI-installation-execution itself. The only thing (in my tests) I try to install is WMP10, so nothing is installed before or after. My source installation is an untouched (no NLite or HFSLIP or whatever) version of WinXP Pro corp. edit.When I install WMP10 via RunOnceEx it works (but then installation is not optional anymore!). When I try to install it via WPI it seems to install but on starting up after reboot I get the following error:Windows Media PlayerThe file wmploc.dll has a version number of 10.0.0.3802 where 9.0.0.3250 was expected.Windows Media Player is not installed properly and must be reinstalled.Do you want to install the Player from the Microsoft Web site?So it seems that during installation of WM10 the version 9 of WMP has been active, and therefore some WMP10 components did not install (correctly). So out of that, I derive that WPI keeps some media player components open, even after changing the code as explained in the linked topic.Is there anyone that can help me out here. I would like to add WMP10 to the installation CHOICES of WPI, that's why I like WPI in the first place, it gives you choices. This is basically what makes it better over RunOnceEx for instance.Any help is appreciated.RolandDordrecht, The Netherlands
sadicq Posted July 25, 2006 Posted July 25, 2006 (edited) So it seems that during installation of WM10 the version 9 of WMP has been active, and therefore some WMP10 components did not install (correctly). So out of that, I derive that WPI keeps some media player components open, even after changing the code as explained in the linked topic.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 Edited July 25, 2006 by sadicq
RJTPlomp Posted July 25, 2006 Author Posted July 25, 2006 WOW.. how fast can stuff go!Sadicq I just downloaded your modified version. I use the classic theme, so I don't think I'll run into any problem there. I will test it and will let you know.The fact that the audio option page is there is not a bother, I can understand that's quite something else. In my car there's also stuff that is there, but I rather not use.. like airbags.. lolThx alot! You will hear from me.
sadicq Posted July 26, 2006 Posted July 26, 2006 Classic theme attached. Sorry for the late reply, I just went to bed last night Classic.7z
RJTPlomp Posted July 26, 2006 Author Posted July 26, 2006 @ SadicqI just tested the install with the glossy theme, and it worked like sunshine, even brought a smile to my face! ;-)I was going to log on, and ask you what HTML and Javascript parts you had removed/changed and from where, so I could customize the Classic theme myself. But you beat me to it.. you already did that for me. But being curious as I am. Is it tought to explain what you modified and in which files?I'm also left with an idea which I could possible better post in the future release wishes topic. But what do you think...Knowing what we know... WPI-unmodified can't install media player updates ... wouldn't it be nice if the installer-script had the possibility to totally shutdown the media player during the install of certain applications. I'm imagening that an added checkbox in the config could do it. But also a loop in the install script that searches for a certain text in the application name before starting the install could do the trick.. I think... not sure.. I'm no pro... but I can imagine.. lolThx for all the help!
sadicq Posted July 26, 2006 Posted July 26, 2006 (edited) 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.htaI 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.htmModified <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.jsRemove if (PlayAudioInInstaller) InstallWindow.document.getElementById("MediaPlayer").style.display='block';and StopAudio();WPIScripts\optionswizard.jsRemove function PlayAudio(){ position="optionswizard.js"; whatfunc="PlayAudio()";}function StopAudio(){ position="optionswizard.js"; whatfunc="StopAudio()"; if (PlayAudioInWPI) { document.all.MediaPlayer.close(); document.all.MediaPlayer.url=''; }} Edited July 26, 2006 by sadicq
RJTPlomp Posted July 26, 2006 Author Posted July 26, 2006 OK that makes sense when I read it. So I guess -with this as guidance- I should be able to change other theme's if I want to.Good to hear you guys are also working on a total solution for the WMP.
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