How to identify the Windows Media Pack installed on a system

One component of my application is failing on Windows because Windows K / KN systems do not have the Feature Pack installed. To prevent this from happening, I was thinking about adding a check during installation to see if the media update package is installed on the current system. However, I have not found enough information on the MFP to do this.

Most Windows versions have it already installed, but some Windows 8 and 8.1 installations don't have it. I need a programmatic way to do this.

To achieve this goal, I need any information:

  • Regkey based

What are the registry keys that can be used to determine if the Feature Pack is installed? Does the Media Feature Pack (like .NET framework / VC redistribution) include some regkey that can be used to define this?

  1. Is there any API that can be used to discover the Feature Pack?

  2. Are there DLLs that can be used for detection?

I know that mf.dll and mfplat.dll are installed in the sys32 folder, but can I rely on these two files to detect the MFP?

+3


source to share


1 answer


Found the answer and posted it here if helps anyone There is a registry key:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Setup \ WindowsFeatures \ WindowsMediaVersion

Some links:

http://support.microsoft.com/kb/922474



This will help you determine the actual taste of the window:

http://msdn.microsoft.com/en-us/library/ms724358%28v=vs.85%29.aspx

http://msdn.microsoft.com/en-us/library/aa394239%28v=vs.85%29.aspx

+5


source







All Articles