Source language: Translate to:

How to check for Windows Media Player Version

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

How to check for Windows Media Player Version

Postby Guest » Tue Feb 22, 2005 9:18 pm

Here is a quick bit of code to make sure Windows Media Player 8 or above is installed on the system.  Useful when used with NeoBookDX and newer WMV files / WM9 codecs.

RegistryRead "HKEY_LOCAL_MACHINE" "SOFTWARE\Microsoft\Active Setup\Installed Components\{6BF52A52-394A-11d3-B153-00C04F79FAA6}\Version" "[WMPVer]"
StrParse "[WMPVer]" "," "[WMPVer]" "[WMPVerNum]"

If "[WMPVer1]" ">=" "8"
 AlertBox "Success" "WMP Version [WMPVer1] installed!"
Else
 AlertBox "Warning" "Windows Media Player 8 or above was not detected on your system.|Some media may be unplayable. ||Please visit: http://windowsmedia.com/download||To download and install this free component from Microsoft."
EndIf


Tested on Win 98/ME/2K/XP


Cheezy
Guest
 

Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest