|
-
Dec 22nd, 2001, 08:03 PM
#1
Thread Starter
Hyperactive Member
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?
-
Dec 22nd, 2001, 08:13 PM
#2
-
Dec 22nd, 2001, 08:13 PM
#3
-
Dec 22nd, 2001, 08:17 PM
#4
Thread Starter
Hyperactive Member
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
-
Dec 22nd, 2001, 08:19 PM
#5
-
Dec 22nd, 2001, 08:45 PM
#6
Thread Starter
Hyperactive Member
thanks McBrain,
This code works on win98 (I'll test the others at on Monday):
VB Code:
Dim WshShell As Object
Set WshShell = CreateObject("WScript.Shell")
'WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\runmyprog", "WhateverUwant", "REG_SZ"
Debug.Print WshShell.RegRead("HKLM\Software\Microsoft\MediaPlayer\Setup\SetupVersion")
Set WshShell = Nothing
By the way, is this a good technique for reading registry values?
-
Dec 22nd, 2001, 08:48 PM
#7
-
Dec 22nd, 2001, 08:50 PM
#8
-
Dec 22nd, 2001, 08:51 PM
#9
-
Dec 22nd, 2001, 08:53 PM
#10
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|