简体   繁体   English

如何检测系统上安装的 Windows Media Pack

[英]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:我需要任何信息来实现这一目标:

  1. Regkey based基于注册码

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 重新分发)是否设置了一些可用于确定这一点的注册码?

  1. Is there any API that can be used to detect Media Feature Pack?是否有任何可用于检测媒体功能包的 API?

  2. 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

Got to Control Panel > Programs > Turn Windows Feature On/Off进入控制面板>程序>打开/关闭Windows功能

在此处输入图片说明

在此处输入图片说明

in my case it's installed.就我而言,它已安装。 You can also install by marking on it.您也可以通过在其上标记来安装。 then hit OK然后点击确定

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 以编程方式检测是否已安装Windows Media Player - Programmatically detect if Windows Media Player is installed Qt:安装语言包时检测系统区域设置 - Qt: Detect system locale when language pack is installed QLocale在安装了语言包的Windows上检测不正确的系统语言 - QLocale detects system language incorrectly on Windows with language pack installed 如何检测是否安装了Windows Installer? - How can I detect if Windows Installer is installed? 如何检测Windows中是否安装了特定的软件? - How to detect whether a particular software is installed in windows? 检测是否在Windows上安装了MongoDB - Detect if MongoDB is installed on windows 使用C#如何检测Windows Installer 4.5是否已安装 - Using C# How to detect if Windows Installer 4.5 is Installed 有没有办法检测具有本机C#调用的系统上安装的Windows应用商店应用? - Is there a way to detect what Windows Store apps are installed on a system with native C# calls? 如何使用 Media Foundation 或 DirectShow 等 Windows 媒体 API 检测相机帧丢失? - How to detect camera frame loss using Windows media API like Media Foundation or DirectShow? 如何防止 java.exe 安装在 Windows 的 system32 中? - How to prevent that java.exe is installed in Windows' system32?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM