Archive: Check if Windows Media Codecs is installed


Check if Windows Media Codecs is installed
I'm planning to write an installer to check if Windows Media Codecs is installed on current windows system. If not, download codecs from the internet, Something like what winamp installer does.

How to write such script, involving checking current windows version and downloading the proper version of WMC ?

Forgive my poor English..hope you guys can get what i mean.


To check the correct Windows version, you can use Include\WinVer.nsh. I'd imagine that you'd need to check for existence and versions of some DLL files for the codecs. Use IfFileExists and GetDLLVersion. Use VersionCompare to easily compare version numbers.