| Author |
Message |
Sören Edzén
Guest
|
Posted:
Tue Dec 20, 2005 1:30 pm Post subject:
How do I know if wmv9 codec is available on a users compute |
|
|
I would like to check if the wmv9 codec is installed before installing an
application that is depending on it. How do I find that out for certain.
The Win OS I want to check is: Win98/ME, WinNT 4, w2k and WinXP. I tried
to search the registry for wmv but haven't come up with anything that I
know is relaiable. I have found wmv9 in various places in the registry but
I don't know enough to tell which one(s) indicate that a wmv9vcm coded
movie will run or not. I can't depend on internet access and the movies
are shown inside an authorware application that uses the wmplayer engine.
If there are no certain way to decide it, is there any harm in always
installing the wmv9vcm codec?
TIA Sören
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
| Back to top |
|
 |
Mike Lowery
Guest
|
Posted:
Tue Dec 20, 2005 9:30 pm Post subject:
Re: How do I know if wmv9 codec is available on a users com |
|
|
"Sören Edzén" <soed@edzen.org> wrote in message
news:op.s123dsx5zqokli@sokrates.sokrates...
| Quote: | I would like to check if the wmv9 codec is installed before installing an
application that is depending on it. How do I find that out for certain. The
Win OS I want to check is: Win98/ME, WinNT 4, w2k and WinXP. I tried to search
the registry for wmv but haven't come up with anything that I know is
relaiable. I have found wmv9 in various places in the registry but I don't
know enough to tell which one(s) indicate that a wmv9vcm coded movie will run
or not. I can't depend on internet access and the movies are shown inside an
authorware application that uses the wmplayer engine. If there are no certain
way to decide it, is there any harm in always installing the wmv9vcm codec?
|
If you have the option of installing the latest Microsoft codec pack, I'd just
do that. Otherwise, you might be able to find out using WMI:
http://www.msdn.microsoft.com/library/en-us/wmisdk/wmi/Win32_CodecFile.asp
Sample VBScript code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_CodecFile",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_CodecFile instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Version: " & objItem.Version
Next |
|
| Back to top |
|
 |
Sören Edzén
Guest
|
Posted:
Wed Dec 21, 2005 1:30 pm Post subject:
Re: How do I know if wmv9 codec is available on a users com |
|
|
On Tue, 20 Dec 2005 19:48:15 +0100, Mike Lowery
<selfspam@mouse-potato.com> wrote:
| Quote: |
"Sören Edzén" <soed@edzen.org> wrote in message
news:op.s123dsx5zqokli@sokrates.sokrates...
I would like to check if the wmv9 codec is installed before installing
an
application that is depending on it. How do I find that out for
certain. The
Win OS I want to check is: Win98/ME, WinNT 4, w2k and WinXP. I tried
to search
the registry for wmv but haven't come up with anything that I know is
relaiable. I have found wmv9 in various places in the registry but I
don't
know enough to tell which one(s) indicate that a wmv9vcm coded movie
will run
or not. I can't depend on internet access and the movies are shown
inside an
authorware application that uses the wmplayer engine. If there are no
certain
way to decide it, is there any harm in always installing the wmv9vcm
codec?
If you have the option of installing the latest Microsoft codec pack,
I'd just
do that. Otherwise, you might be able to find out using WMI:
http://www.msdn.microsoft.com/library/en-us/wmisdk/wmi/Win32_CodecFile.asp
Sample VBScript code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer &
"\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_CodecFile",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Win32_CodecFile instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Version: " & objItem.Version
Next
|
Thanks a lot!
If all else fails I have the oportunity to install the codec. I wasn't
sure if that could break something, but it's assuring to know that it
wont. I'll look into your example code as well.
Again Thanks a lot.
/Sören
--
|
|
| Back to top |
|
 |
|
|
|
|