我怎么能手动安装安装2007 PIA的一台电脑,没有办公室的办公室?办公室、一台电脑、我怎么能、PIA

2023-09-05 23:34:41 作者:暮然回首你已离去

我看到关于 Office 2007的PIA的,特别是:

   您可以安装Office 2007 PIA的不办公? (3)    Is Office 2007的PIA部署可能没有Office 2007?    Can you install Office 2007 PIA's without office? (3) Is Office 2007 PIA deployment possible without Office 2007?

这个问题是不同的。

在我的经验,所以无法安装Office 2007的PIA的,当Office 2007的尚未在计算机上安装。我运行MSI,它会显示约5-7秒钟说:请稍候,Windows配置Office 2007的主互操作程序集...,然后在对话框消失,并没有什么似乎已经改变了对话。

In my experience, it is not possible to install Office 2007 PIAs when Office 2007 is not already installed on the machine. I run the MSI, it displays a dialog for about 5-7 seconds saying "Please Wait while Windows configures Office 2007 Primary Interop Assemblies..." and then the dialog disappears, and nothing appears to have changed.

最值得注意的是,也有在GAC没有Office组件

Most notably, there are no Office assemblies in the GAC.

如果我做错了什么,请大家指正。现在我假设,这是预期的行为,以及领先的答案this另一个问题,是错误的。

If I am doing something wrong, please correct me. For now I am assuming that this is the expected behavior, and that the leading answers to this other question, is wrong.

这让我们想到我的实际问题。假设我的经验,在安装PIA的,而没有首先安装Office是所预期的,有可能是我为手动安装PIA的到GAC?

Which leads us to my actual question. Assuming my experience installing the PIAs without first having installed Office is the expected one, is it possible for me to install the PIAs "manually" into the GAC?

我的目的是为了让依赖于PIA的一个项目的汇编。我不希望来运行应用程序。我不问是否有可能运行使用PIA的时候没有安装Office的应用程序。我知道这个问题的答案。我问是否可以安装PIA的,允许在构建机上项目的编制,没有先安装Office。

My purpose is to allow compilation of a project that depends on the PIAs. I don't expect to run the application. I am not asking if it is possible to run an app that uses the PIAs when Office is not installed. I know the answer to that. I am asking if it is possible to install the PIAs to allow compilation of a project on a build machine, without first installing Office.

我试着解包o2007pia.msi文件 MSIEXEC / A ,但没有喜悦。但是,我能够使用 lessmsi 微星内手动解压缩文件。

I tried unpacking the o2007pia.msi file with msiexec /a, but no joy. But, I was able to use lessmsi to manually extract the files within the MSI.

我想尝试 GACUTIL -i 分别来自MSI文件中的DLL,像这样的:

I was thinking to try to gacutil -i each of the DLLs from the MSI file, like these:

10/26/2006  09:17 PM  1,276,720 Microsoft.Office.Interop.Excel.dll
10/26/2006  08:02 PM    150,320 Microsoft.Office.Interop.Graph.dll
10/26/2006  09:42 PM    146,232 Microsoft.Office.Interop.InfoPath.dll
10/26/2006  09:42 PM    404,296 Microsoft.Office.Interop.InfoPath.SemiTrust.dll
10/26/2006  09:41 PM     88,896 Microsoft.Office.Interop.InfoPath.Xml.dll
10/26/2006  09:06 PM    903,992 Microsoft.Office.Interop.MSProject.dll
10/26/2006  08:24 PM     17,208 Microsoft.Office.Interop.OneNote.dll
10/26/2006  08:55 PM    920,376 Microsoft.Office.Interop.Outlook.dll
....  

不过,我也看到了这些项目:

But, I also see these items:

10/26/2006  09:00 PM      900 Policy.11.0.Microsoft.Office.Interop.Access.config
10/26/2006  09:18 PM   12,104 Policy.11.0.Microsoft.Office.Interop.Access.dll
10/26/2006  08:56 PM      898 Policy.11.0.Microsoft.Office.Interop.Excel.config
10/26/2006  09:17 PM   12,096 Policy.11.0.Microsoft.Office.Interop.Excel.dll
10/26/2006  07:53 PM      898 Policy.11.0.Microsoft.Office.Interop.Graph.config
10/26/2006  08:02 PM   12,096 Policy.11.0.Microsoft.Office.Interop.Graph.dll
....

我该怎么做这些政策DLL和配置文件?

What do I do with these Policy DLLs and config files?

我可以忽略它们? 感谢您的任何建议可以提供。

Can I ignore them? Thanks for any advice you can provide.

推荐答案

是的,你可以忽略它们。

Yes, you can ignore them.

不过,你不需要把PIA的,在海关总署的。 你可以简单地引用PIA的的本地副本在你的源代码控制树。

However, you don't need to put the PIAs in the GAC at all. You can simply reference a local copy of the PIAs in your source control tree.