应用程序未引用 GAC 中需要 Office 12 (2007) 的 Office 以实现 ClickOnce
我遇到过这样的情况:我尝试通过 ClickOnce 向许多用户部署应用程序更新,但在某些用户上失败并显示错误,指出他们的 GAC 中需要 Office 12.0.0.0。
这是在我安装 Office 2007 后发生的,因此我卸载了 2007 并重新安装了 Office 2003,然后重新构建/重新发布了该应用程序。 修复了一些问题,但不是全部。
应用程序中没有对 Office 的引用,因此我不确定它为什么要检查依赖项。
我检查了我的 GAC,它仍然列出了 Office 12 并且不允许我删除它 - 说它是 Windows Installer 所必需的
I have a situation where I'm trying to deploy an application update via ClickOnce to many users, but on some it's failing with an error saying that they need Office 12.0.0.0 in their GAC.
This happened after I installed Office 2007, so I uninstalled 2007 and reinstalled Office 2003, then re-built/re-published the app. Fixed it for some, but not all.
There are no references to Office in the application, so I'm unsure why it's checking for a dependency.
I checked my GAC, and it still lists office 12 and won't let me remove it - says it's required by Windows Installer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查这里:
项目属性 - 发布 - 先决条件。
和这里:
设置包属性 - 先决条件。
Check here:
Project properties - Publish - Prerequisites.
and here:
Setup package properties - prerequisites.
我想我已经解决了这个问题,但我不确定它是如何发生的。 发布选项卡上的应用程序文件中有对 office.dll 的引用。 它被列为必需的先决条件,但未在先决条件下列出(这就是为什么我不接受 WakeUpScreaming 的答案,尽管我确实根据他的建议找到了它。
因为没有引用任何 Office在我的应用程序中,我将该文件标记为“排除”,它现在将部署给我的用户。
只是想让大家知道我发现的内容。2009
年 4 月 6 日更新:卸载所有可能的 Office 2007 组件(包括 PIA)后。 ,我仍然遇到问题,结果 GAC 中仍然存在将 Office 11 重定向到 Office 12 的策略,并且我使用 GACBrowser 删除了这些策略,一切正常。
I think I've resolved the problem, but I'm not sure how it occurred. There was a reference to office.dll in the Application Files on the publish tab. It was listed as a requried prerequisite, but wasn't listed under the Prerequisites (which is why I didn't accept WakeUpScreaming's answer, although I did sort of find it as a result of his suggestion.
Since there were no references to anything Office in my app, I marked that file Exclude and it now will deploy to my users.
Just thought I'd let everyone know what I found.
Update 4/6/09: After un-installing all possible Office 2007 components, including the PIAs, I still had the problem. Turns out that there was still a Policy in the GAC redirecting Office 11 to Office 12, and they wouldn't un-install. I used GACBrowser to remove the policies and all is well.