Results 1 to 10 of 10

Thread: WMP version?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378

    WMP version?

    How would one check to see if windows media player is installed? and if it is installed then what version? I'd like to prompt the user to install 7.0 if they don't already have it. I've gone thru lots of mp3/media projects on planet-source and haven't found anyone who is checking for media player.

    any thoughts?

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I'm not sure if this is what you need... but have a look at HKLM\Software\Microsoft\MediaPlayer\PlayerUpgrade and the key is UpgradeVersion
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Or HKLM\Software\Microsoft\MediaPlayer\Setup and the key SetupVersion
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378
    would this work for win98,win95, win2K...or would I need to check different keys?...I haven't done much with the registrty....going to have to search for code to read.

    thanks

  5. #5
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I've no idea whether it will work on other systems as well.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378
    thanks McBrain,

    This code works on win98 (I'll test the others at on Monday):

    VB Code:
    1. Dim WshShell As Object
    2. Set WshShell = CreateObject("WScript.Shell")
    3.  
    4. 'WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\runmyprog", "WhateverUwant", "REG_SZ"
    5. Debug.Print WshShell.RegRead("HKLM\Software\Microsoft\MediaPlayer\Setup\SetupVersion")
    6. Set WshShell = Nothing

    By the way, is this a good technique for reading registry values?

  7. #7
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I don't know... I've never used that way. But, thanks for teaching me that code.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    It also works on Win2K. I've just tested it. I got the "6.4" written in the Debug Window, which I suppose has to be the Version of the WMP I've installed.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Yeap.... the about box says 6.4.09.1109
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  10. #10

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    378
    yeah that's what I have, great! This code is so short....I've seen a number of other posts that were much longer. I wonder what the drawback of this method is....maybe it has to do with the shell vs. using a series of APIs?

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