Results 1 to 8 of 8

Thread: detect wmp.dll or windows media player 9 [ANSWERED]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

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

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: detect wmp.dll or windows media player 9

    hasWmp9 = (IsObject(CreateObject("MediaPlayer.MediaPlayer.1")))

    wouldnt that do it?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

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

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    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.

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: detect wmp.dll or windows media player 9

    Windows Media Player has the version number located in your registry.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    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?


  7. #7
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Brooklyn NY USA
    Posts
    1,258

    Re: detect wmp.dll or windows media player 9

    Dim wmp As New WindowsMediaPlayer
    Private Sub Command1_Click()

    MsgBox wmp.versionInfo

    End Sub

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2003
    Location
    Sydney
    Posts
    69

    Re: detect wmp.dll or windows media player 9

    thank yah!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width