PIA不会安装在我的开发机器上 [英] PIA's will not install on my dev machine

查看:78
本文介绍了PIA不会安装在我的开发机器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行了Office 2007 PIA安装程序,但引用仍然不存在。我可以在我的计算机上找不到Microsoft.Office.Interop dll。添加/删除程序已在其列表中安装。



所以我尝试了2010 PIA安装程序(我安装了Office 2010,但希望我的项目向后兼容到2007)。那也行不通。
b


我卸下了两个并尝试安装2010.没有快乐。



我在VS 2008安装后使用VS 2008并安装了Office 2010。找到关于该订单问题的评论,但没有解决方案。



当我安装OFfice 2010时,选择了.NET可编程性支持选项。但是,我仍然没有PIA引用,没有DLL,也没有Assembly \ GAC文件夹。我在Windows 7旗舰版x64上$


去年我尝试在我当时使用Access 2003的计算机上安装Access 2007查看器。这导致Access 2003不稳定。卸载Access 2007查看器解决了该问题。然后今年我尝试将Access 2010与Access 2003
一起安装,效果相同。最后摆脱了除Office 2010版本之外的所有内容。 

I ran the Office 2007 PIA installer but the references are still not there. I can find the Microsoft.Office.Interop dlls nowhere on my computer. Add/Remove programs has the install in its list.

So I tried the 2010 PIA installer (I have office 2010 installed, but wanted my project to be backward compatible to 2007). That did not work either.

I uninstalled both and tried just installing 2010. No joy.

I am using VS 2008 and installed Office 2010 after my VS 2008 install. Found a comment about problems with that order, but no resolution.

When I installed OFfice 2010, the .NET Programmability Support option was selected. However, I still have no PIA reference and no DLLs and no Assembly\GAC folder. I am on Windows 7 Ultimate x64

Last year I did try to install Access 2007 viewer on my computer which had Access 2003 at the time. This caused Access 2003 to be unstable. Uninstalling Access 2007 viewer solved the problem. Then this year I tried to install Access 2010 alongside Access 2003 with the same effect. Finally got rid of everything but Office 2010 versions. 

我刚刚运行Office 2010安装程序以删除并重新添加.NET可编程性支持选项。没有欢乐。

I just ran the Office 2010 installer to remove and re-add the .NET Programmability Support option. No Joy.

我是否在PIA安装中损坏了我的系统,无法修复?



任何想法如何我可以安装PIA吗?

$
谢谢! Brad

Did I corrupt my system, vis-a-vis PIA installation, beyond repair?

Any ideas how I can get the PIAs installed?

Thanks! Brad

推荐答案

嗨布拉德

嗯。 Microsoft已经支持并行安装多个Office版本超过十年。它可以在最终用户级别工作,但问题可能会突然出现。在编写VSTO解决方案时,它根本不起作用,因为VSTO拒绝
正常运行(按设计)。其中一个主要原因是,无论GAC中可能存在多少个版本,Windows注册表中都只会引用一个版本的PIA。

Mmm. Parallel installation of multiple Office versions hasn't been supported by Microsoft for over ten years. It can work at the end-user level, but problems can crop up. When it comes to programming VSTO solutions it simply will not work as VSTO refuses to function properly (by design). One of the main reasons for this is that only one version of the PIAs will be referenced in the Windows Registry, no matter how many versions may be present in the GAC.

添加到此只有在计算机上存在相关Office版本时,才会安装PIA安装程序。实际上,甚至还有一个问题是PIA是否应该作为一个单独的分发包提供,因为如果出现任何版本的.NET Runtime(GAC),Office的最新版本
应该自动安装它们。机器。对于最近发布的Windows版本就是这种情况。

Add to this that the PIA installer will only install if the version of Office in question is present on the machine. Actually, there was even a question whether the PIAs should be made available as a separate distribution pack because the most recent versions of Office should be installing them automatically if any version of the .NET Runtime (the GAC) is present on the machine. And this will be the case with most recent releases of Windows.

最后,您不能将PIA版本与不同版本的Office一起使用(2007年PIA与Office 2010一起使用) , 例如)。版本必须匹配。

And lastly, you can't use a version of the PIAs together with a different version of Office (2007 PIAs with Office 2010, for example). The versions have to match.

您的系统是否可以"轻松"清理不确定。注册表可能已被"破坏",但您可以尝试。我的第一个建议是卸载所有PIA可再发行组件和计算机上安装的所有Office版本。
然后重新安装您想要用于开发的Office版本。

Whether your system can be cleaned up "easily" is uncertain. It's possible that the Registry has been "broken", but you can try. My first recommendation would that you uninstall all the PIA redistributables AND all versions of Office installed on the machine. Then reinstall just the version of Office you want to use for developing.

如果需要针对各种版本的Office进行开发,则需要多台开发机器:每台一台Windows / Office组合。许多开发人员使用虚拟机软件,例如VMWare(我的偏好)或VPC。

If you need to develop against various versions of Office you'll need multiple development machines: one for each Windows/Office combination. Many developers use virtual machine software, such as VMWare (my preference) or VPC.

如果您使用的是Visual Studio 2010并且可以定位.NET Framework 4.0,则可以开发与版本无关的版本解决方案。 4.0允许您将Office类型库信息嵌入到可分发的解决方案中,而不是直接在
运行时引用PIA。

If you're using Visual Studio 2010 and can target .NET Framework 4.0 it's possible to develop version-independent solutions. 4.0 allows you to embed the Office type library info into the solution distributable, rather than referencing the PIAs directly at run-time.


这篇关于PIA不会安装在我的开发机器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆