|
-
Jan 23rd, 2005, 07:21 PM
#1
Thread Starter
Lively Member
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!!
Last edited by mikepol; Jan 23rd, 2005 at 10:40 PM.
-
Jan 23rd, 2005, 07:48 PM
#2
Re: detect wmp.dll or windows media player 9
hasWmp9 = (IsObject(CreateObject("MediaPlayer.MediaPlayer.1")))
wouldnt that do it?
-
Jan 23rd, 2005, 07:53 PM
#3
Thread Starter
Lively Member
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...
-
Jan 23rd, 2005, 08:29 PM
#4
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.
-
Jan 23rd, 2005, 08:34 PM
#5
Re: detect wmp.dll or windows media player 9
Windows Media Player has the version number located in your registry.
-
Jan 23rd, 2005, 09:43 PM
#6
Thread Starter
Lively Member
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?
-
Jan 23rd, 2005, 10:31 PM
#7
Frenzied Member
Re: detect wmp.dll or windows media player 9
Dim wmp As New WindowsMediaPlayer
Private Sub Command1_Click()
MsgBox wmp.versionInfo
End Sub
-
Jan 23rd, 2005, 10:39 PM
#8
Thread Starter
Lively Member
Re: detect wmp.dll or windows media player 9
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|