[英]How to detect Windows Media pack installed on system
One of the components in my application is failing on Windows because Windows K/KN systems don't have Media Feature Pack installed.我的应用程序中的一个组件在 Windows 上失败,因为 Windows K/KN 系统没有安装媒体功能包。 To prevent this I was thinking of adding a check during install time to see if Media Feature Pack is installed on the current system.为了防止这种情况,我想在安装时添加一个检查,看看当前系统上是否安装了 Media Feature Pack。 However, I haven't found enough information about MFP to do so.但是,我还没有找到足够的关于 MFP 的信息来这样做。
For most versions of Windows it's already installed but some Windows 8 and 8.1 installations don't have it.对于大多数版本的 Windows,它已经安装,但某些 Windows 8 和 8.1 安装没有它。 I need a programmatic way to do this.我需要一种编程方式来做到这一点。
I would need any one of the info to achieve this:我需要任何信息来实现这一目标:
What are the regkeys that can be used to determine if Media Feature Pack is installed?可用于确定是否安装了 Media Feature Pack 的注册码是什么? Does Media Feature Pack (like .NET framework / VC redistribution) set some regkey which can be used to determine this?媒体功能包(如 .NET 框架/VC 重新分发)是否设置了一些可用于确定这一点的注册码?
Is there any API that can be used to detect Media Feature Pack?是否有任何可用于检测媒体功能包的 API?
Are there any DLLs that can be used to for detection?是否有任何可用于检测的 DLL?
I know mf.dll and mfplat.dll are installed in sys32 folder, but can I rely on these two files for MFP detection?我知道 mf.dll 和 mfplat.dll 安装在 sys32 文件夹中,但是我可以依靠这两个文件进行 MFP 检测吗?
Found the answer and posting here if helps someone There is a registry key at:找到答案并在此处发布如果对某人有帮助有一个注册表项:
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\WindowsFeatures\\WindowsMediaVersion HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Setup\\WindowsFeatures\\WindowsMediaVersion
Some links:一些链接:
http://support.microsoft.com/kb/922474 http://support.microsoft.com/kb/922474
This will help you detect the actual windows flavor:这将帮助您检测实际的 Windows 风格:
http://msdn.microsoft.com/en-us/library/ms724358%28v=vs.85%29.aspx 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 http://msdn.microsoft.com/en-us/library/aa394239%28v=vs.85%29.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.