vsto 安装程序 - 静默模式问题

发布于 2024-09-10 04:17:03 字数 514 浏览 1 评论 0原文

背景: 我正在为 Outlook 2007 制作 VSTO 4.0 插件,使用户能够将其邮件项目传输到 CRM 数据库。

要求: 安装必须在用户不知情的情况下进行静默安装。它将位于安装程序类中的自定义操作中,或者从 shell 命令运行。

问题: 安装以静默模式进行,但实际上并不安装加载项。 非静默模式下的安装成功完成(但用户收到提示)

安全: 清单使用企业信任的证书 (*.pfx) 进行签名

错误日志: 静默安装消息: 例外:此应用程序中的自定义功能将无法工作,因为它尚未获得信任。用于签署部署清单的证书未知,并且自定义本身 (FulcrumAddin) 不在包含列表中。请联系您的管理员以获得进一步帮助。

最后一个问题: 进行静默安装有哪些要求?包含列表是什么(来自:错误日志)以及它有什么帮助。

Background:
I am making a VSTO 4.0 add in for Outlook 2007 which enables users to transfer their mail items to a CRM database.

Requirements:
The installation has to be silent without users knowledge. It will be in a Custom Action in the Installer class or will run from shell command.

The problem:
The installation occurs in silent mode but doesn't actually install the add in.
The installation in non-silent mode completes successfully (but user gets a prompt)

Security:
The manifests are signed with a enterprise-trusted certificate (*.pfx)

Error log:
Message for silent installation:
Exception: Customized functionality in this application will not work because it has not been granted trust. The certificate used to sign the deployment manifest is unknown, and the customization itself (FulcrumAddin) is not on the inclusion list. Contact your administrator for further assistance.

Final question:
What are the requirements for the silent install to happen. What is the inclusion list (from: error log) and how does it help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月野兔 2024-09-17 04:17:03

好的,非常简单,您只需将 customInclusionList 项目添加到您的解决方案中即可。
请参阅 VSTO 3.0 的链接,我认为(尚未在 4.0 上开始)它与 4.0 相同

您需要将 IncludionList 输出添加到安装项目中,并且有一些步骤可以从主项目 .VSTO 添加 RSAKey 值清单到安装程序类代码,然后确保将安装项目中的包含列表输出添加到每个“状态”安装、回滚、卸载等。
阅读链接它比我更有意义......
http://msdn.microsoft.com/en-us/library/bb608607.aspx

另请注意,如果您决定通过 MSI 而不是 clickonce 进行部署,并且安装到程序文件(作为管理员,例如使用 SCCM 或类似机制),您将自动获得完全信任。这可能是解决你的问题的另一种方式......

Ok pretty simple mate, you just need to add the customInclusionList project to your solution.
see this link for VSTO 3.0 i think (haven't started on 4.0) its the same for 4.0

You'll need to add the IncludionList output to the setup project and there are some steps for adding the RSAKey value from the primary projects .VSTO manifest to the installerclass code then making sure you add the inclusionlist output in the setup project to each of the "states" Install, rollback, uninstall, etc.
read the link it makes more sense than i do...
http://msdn.microsoft.com/en-us/library/bb608607.aspx

Also note that if you decide to deploy via MSI instead of clickonce, and you install to Program files (as admin, for instance using SCCM or similiar mechanism) you are Automatically granted Full Trust. this could be another way around your problem...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文