Windows Presentation Foundation (WPF) require Windows Media Player 10 or later

For the past few months, I’m busy with one of the pet project from Microsoft Malaysia – WPF Reactor.

During the product testing, the team found out that Video failed to play in certain Windows XP machine. After the sleepless night, we found out that Windows Media Player 10 is one of the requirements for <Mediaelement>. The challenge arise when we need to detect what is the version of Windows Media Player that installed in the client’s machine.

Registry! Yup, that is the simple answer which we all know that majority of the application settings and attributes store inside registry. The answer is the WMP version registry store at

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\PlayerUpgrade

Name: PlayerVersion

Type:REG_SZ

Value: 11,0,6001,7000 (for my Vista machine)

For VB programmer (just like me), you can use the My.Computer.Registry object to quickly access the value you want.

Advertisements

Leave a comment

Filed under Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s