检查是否安装了 Windows 映像组件(wic 注册表)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7553764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Check if Windows imaging components is installed (wic registry)
提问by Bhushan
How to check whether windows imaging component is installed or not on 64 bit XP machine.
如何检查 64 位 XP 机器上是否安装了 windows 映像组件。
采纳答案by Bhushan
Windows imaging component gets installed along with the MSOFFICE. if not check in registry >>
Windows 映像组件与 MSOFFICE 一起安装。如果没有在注册表中检查>>
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Imaging Component
Check for InstalledVersion in that regdirectory.
检查该 regdirectory 中的 InstalledVersion。
If that key is present then windows imaging component is installed else not
如果该密钥存在,则安装 Windows 映像组件,否则不安装
回答by Harvey Kwok
Check the existence of C:\Windows\System32\WindowsCodecs.dll
检查是否存在 C:\Windows\System32\WindowsCodecs.dll
回答by Nagaraj
Check : C:\Windows\System32\WindowsCodecs.dll
检查:C:\Windows\System32\WindowsCodecs.dll
If Windows Imaging Component (WIC) not Installed then Install Windows Imaging Component before installing SSR 2013 on Windows 2003 or XP system.
如果未安装 Windows Imaging Component (WIC),则在 Windows 2003 或 XP 系统上安装 SSR 2013 之前安装 Windows Imaging Component。
32-bit: www.microsoft.com/en-us/download/details.aspx?id=32
32 位:www.microsoft.com/en-us/download/details.aspx?id=32
64-bit: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=1385
64 位:http: //www.microsoft.com/download/en/details.aspx?displaylang=en& id=1385
回答by Tono Nam
I found the registry located at:
我发现注册表位于:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WIC
回答by Boaz Gazit
Try to create instance by:
尝试通过以下方式创建实例:
CComPtr<IWICImagingFactory> pImagingFactory;
HRESULT hr = CoCreateInstance(CLSID_WICImagingFactory, 0, CLSCTX_INPROC_SERVER,
IID_IWICImagingFactory, (void**)&pImagingFactory);
if (SUCCEEDED(hr) && pImagingFactory != NULL)
{
pImagingFactory.Release();
pImagingFactory = NULL;
return false;
}