如何使用 Visual Studio 2010 设置和部署 Office 2010 加载项部署?
运行安装后,我们在安装过程中遇到错误:
Office Runtime(x86 和 x64)组件 Microsoft Visual Studio 2010 工具安装失败,并显示以下错误消息:
“尝试安装 Microsoft Visual Studio 2010 Office Runtime 工具(x86 和 x64)时发生故障。”
以下组件安装失败:
- 适用于 Office 运行时的 Microsoft Visual Studio 2010 工具(x86 和 x64)
有关详细信息,请参阅位于“C:\Users\***\AppData\Local\Temp\VSD831C.tmp\install.log”的安装日志文件。
日志文件返回:
验证 C:\Users\***\AppData\Local\Temp\VSD831C.tmp\VSTOR40\vstor40_x64.exe 的文件完整性
WinVerifyTrust 返回 -2146869232
文件不受信任
使用命令“C:\Users\***\AppData\Local\Temp\VSD831C.tmp\VSTOR40\vstor40_x64.exe”和参数“/q:a /c:"install /q /l"'进行安装
进程已退出,代码为 536870913
安装后“Microsoft Visual Studio 2010 Tools for Office Runtime(x86 和 x64)”包的状态为“InstallFailed”
如何继续成功安装我们的 Office 2010 加载项?
更新:好的答案,但目标是使用我测试的安装程序部署应用程序。所以最终用户会遇到和我一样的错误。目标是避免 Visual Studio 2010 中的安装配置中出现此错误。如何在安装程序中添加 VSTO 4 运行时并且不出现错误?
We have an error during the installation after running our installation:
Component Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64) has failed to install with the following error message:
"A failure occurred attempting to install the Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)."
The following components failed to install:
- Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)
See the setup log file located at 'C:\Users\***\AppData\Local\Temp\VSD831C.tmp\install.log' for more information.
The log file return:
Verifying file integrity of C:\Users\***\AppData\Local\Temp\VSD831C.tmp\VSTOR40\vstor40_x64.exe
WinVerifyTrust returned -2146869232
File not trusted
Installing using command 'C:\Users\***\AppData\Local\Temp\VSD831C.tmp\VSTOR40\vstor40_x64.exe' and parameters ' /q:a /c:"install /q /l"'
Process exited with code 536870913
Status of package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)' after install is 'InstallFailed'
How proceed to install successfully our Office 2010 add-in?
UPDATE: Ok for your answers but the goal is to deploy the app with the installer I test. So the end-user will have the same error as me. The goal is to avoid this error in the setup configuration in Visual Studio 2010. How can I add VSTO 4 runtime in the installer and obtain no error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是微软的错误。他们发布了未签名的安装程序版本,该版本会引发错误:
WinVerifyTrust 返回-2146762496。文件未签名。
我不确定这对你的情况是否有帮助。对我来说,修复方法是从 微软下载网站。
该错误的完整描述可在此处找到:
VSTO 运行时安装错误
It may be Microsoft bug. They have released un-signed version of the installer that throws error:
WinVerifyTrust returned -2146762496. File not signed.
I'm not sure if it will help in your case. The fix for me was to download new version from Microsoft downloads website .
The full description of the bug is available here:
VSTO Runtime installation error
您是否以更高的特权进行安装?这可能就是 WinVerifyTrust 不信任 vstor40_x64.exe 的原因。
要检查的第二件事是您是否按顺序安装 - 首先是 .NET 运行时(3.51 或 4.0,具体取决于您的加载项),然后是 vstor40_x86.exe 或 vstor40_x64.exe(取决于客户端计算机 x86 或 x64),然后你的解决方案。
如果问题没有这么简单,请查看Office 解决方案部署问题排查和/或ClickOnce 部署问题排查(如果您使用的是 ClickOnce) 。
Are you you installing with elevated privalages? That may be why WinVerifyTrust is not trusting vstor40_x64.exe.
Second thing to check is if you are installing in order - first the .NET run time (3.51 or 4.0, depending on your add-in), then vstor40_x86.exe or vstor40_x64.exe (depending on client machine x86 or x64), then your solution.
If it's not as simple as this, check out Troubleshooting Office Solution Deployment and/or Troubleshooting ClickOnce Deployments (if you're using ClickOnce).