detect wmp.dll or windows media player 9 [ANSWERED]
Hi all.
I was wandering about how to detect whether the version 9 of windows media player is installed on the local pc.
I know that this
hasWmp7 = (IsObject(CreateObject("MediaPlayer.MediaPlayer.1")))
detects whether windows media player 7 exists.... but I need 9
maybe checking a registry value of some sort... or the existance on wmp.dll on the harddrive?
thanks!!
Re: detect wmp.dll or windows media player 9
hasWmp9 = (IsObject(CreateObject("MediaPlayer.MediaPlayer.1")))
wouldnt that do it?
Re: detect wmp.dll or windows media player 9
I think that only checks for media player 7 or above, the name of the variable you assign the boolean result to is irrelevant, i believe.... correct me if i'm wrong...
Re: detect wmp.dll or windows media player 9
You might be able to check the properties to look for version 10.00.00.xxxx
I think that I saw some code to get advanced properties from a file.
Re: detect wmp.dll or windows media player 9
Windows Media Player has the version number located in your registry.
Re: detect wmp.dll or windows media player 9
wow - cool -
but i'm a real vb nOOb, so would any of you ppl be kind enough as to post some code on how to accomplish this?
:thumb:
Re: detect wmp.dll or windows media player 9
Dim wmp As New WindowsMediaPlayer
Private Sub Command1_Click()
MsgBox wmp.versionInfo
End Sub
Re: detect wmp.dll or windows media player 9