当前位置: 代码迷 >> Office >> 有没有办法检察office有没有打某一补丁
  详细解决方案

有没有办法检察office有没有打某一补丁

热度:414   发布时间:2016-05-05 05:36:23.0
有没有办法检查office有没有打某一补丁
开发的软件功能之一是将word用c#导出成pdf。运行时,需要安装office2007,还要安装一个补丁SaveAsPDFandXPS。客户在使用时,经常会忘了打补丁,导致软件不能正常工作。
在程序里,有没有办法检查电脑上安装没有这个补丁?
------解决思路----------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\000021092B0040800000000000F01FEC]
"ProductName"="用于 2007 Microsoft Office 程序的 Microsoft 另存为 PDF/XPS 加载项"
"PackageCode"="04C889479CD05A74FB0FF8C12F4DD31B"
"Language"=dword:00000804
"Version"=dword:0c0011a6
"Assignment"=dword:00000001
"AdvertiseFlags"=dword:00000184
"ProductIcon"="C:\\WINNT\\Installer\\{90120000-00B2-0804-0000-0000000FF1CE}\\expxic.exe"
"InstanceType"=dword:00000000
"AuthorizedLUAApp"=dword:00000000
"DeploymentFlags"=dword:00000003
"Clients"=hex(7):3a,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\000021092B0040800000000000F01FEC\SourceList]
"PackageName"="ExPdfXps.msi"
"LastUsedSource"=hex(2):6e,00,3b,00,31,00,3b,00,43,00,3a,00,5c,00,50,00,72,00,\
  6f,00,67,00,72,00,61,00,6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,\
  00,53,00,45,00,43,00,61,00,63,00,68,00,65,00,5c,00,45,00,78,00,50,00,64,00,\
  66,00,58,00,70,00,73,00,5c,00,32,00,30,00,35,00,32,00,5c,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\000021092B0040800000000000F01FEC\SourceList\Media]
"DiskPrompt"="用于 2007 Microsoft Office 程序的 Microsoft 另存为 PDF/XPS 加载项"
"1"="OFFICE12;1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\000021092B0040800000000000F01FEC\SourceList\Net]
"1"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,\
  46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,53,00,45,00,43,00,61,00,63,00,68,\
  00,65,00,5c,00,45,00,78,00,50,00,64,00,66,00,58,00,70,00,73,00,5c,00,32,00,\
  30,00,35,00,32,00,5c,00,00,00

这是注册表中安装完补丁后增加的内容之一。
  相关解决方案