MSFN Forum: Windows Media Player 10 - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Windows Media Player 10 Installing it from WPI Rate Topic: -----

#1 User is offline   RJTPlomp 

  • WPI Enthousiast
  • Group: Members
  • Posts: 33
  • Joined: 10-December 05

Posted 25 July 2006 - 03:58 PM

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-link

By 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 Player
The 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.

Roland
Dordrecht, The Netherlands


#2 User is offline   sadicq 

  • noob
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 17-August 05

Posted 25 July 2006 - 04:10 PM

Quote

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 ... :thumbup

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

This post has been edited by sadicq: 25 July 2006 - 04:11 PM


#3 User is offline   RJTPlomp 

  • WPI Enthousiast
  • Group: Members
  • Posts: 33
  • Joined: 10-December 05

Posted 25 July 2006 - 04:59 PM

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.. lol

Thx alot! You will hear from me.

#4 User is offline   sadicq 

  • noob
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 17-August 05

Posted 26 July 2006 - 02:19 AM

Classic theme attached. Sorry for the late reply, I just went to bed last night :P

Attached File(s)



#5 User is offline   RJTPlomp 

  • WPI Enthousiast
  • Group: Members
  • Posts: 33
  • Joined: 10-December 05

Posted 26 July 2006 - 05:42 AM

@ Sadicq

I 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.. lol

Thx for all the help!

#6 User is offline   sadicq 

  • noob
  • PipPip
  • Group: Members
  • Posts: 273
  • Joined: 17-August 05

Posted 26 July 2006 - 08:07 AM

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 &nbsp; =>
<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='';		
	}
}

This post has been edited by sadicq: 26 July 2006 - 08:10 AM


#7 User is offline   RJTPlomp 

  • WPI Enthousiast
  • Group: Members
  • Posts: 33
  • Joined: 10-December 05

Posted 26 July 2006 - 02:00 PM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy