且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查计算机上是否安装了Addin(SaveAsPDFandXPS.exe)?

更新时间:2023-09-26 17:11:04



我放了一个问题并立即自己解决了这个问题,以便其他面对相同问题的人都能找到它.

我做了很多研究,终于找到了我要与您分享的解决方案.顺其自然,

在计算机上安装"SaveasPdfandXPS.exe"加载项时,它仅将两个文件"EXP_PDF.dll"和"EXP_XPS.dll"复制到目标计算机.

将这些文件复制到的文件夹是:
对于64位计算机-C:\ Program Files(x86)\ Common Files \ Microsoft Shared \ OFFICE12
对于32位计算机-C:\ Program Files \ Common Files \ microsoft共享\ OFFICE12

因此,首先在安装程序中(通过自定义安装脚本),我们可以检查上述位置是否存在上述文件(EXP_PDF.dll和EXP_XPS.dll).
如果不存在,只需将这些文件复制到各自的位置.导出为PDF和导出为XPS功能有效.

检查注册表项(在先决条件"部分中)非常令人困惑,因为它对于安装Office 2010的系统失败.

谢谢和问候,
YKK Reddy
Hi,

I placed the question and solved it myself immediately so that if any other person who is facing the same problem can find it.

i have done lot of research and finally found the solution which iam going to share with you. Here it goes,

When "SaveasPdfandXPS.exe" addin is installed on the machine, it just copies two files "EXP_PDF.dll" and "EXP_XPS.dll" to the target machine.

The folder to which these files are copied are:
For 64-Bit machines - C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12
For 32-bit machines - C:\Program Files\Common Files\microsoft shared\OFFICE12

So, in installer (through a custom Install Script) first we can check whether the above mentioned files (EXP_PDF.dll and EXP_XPS.dll) are present in the locations mentioned above.
If not present just copy these files to the respective locations. The Export to PDF and Export to XPS functionality works.

Checking registry entries (in Pre-requisite section) is pretty confusing as it fails for the systems where Office 2010 is installed.

Thanks and Regards,
YKK Reddy