使用 msi 自动更新安装的 Office 2007 Addin

发布于 2024-12-13 06:17:31 字数 358 浏览 2 评论 0原文

我有一个 MS Office Word 2007 AddIn 和一个安装此 AddIn 的安装项目。

我已经进行了安装项目,因为我必须在安装提交和卸载阶段执行一些自定义操作。

有什么方法可以让插件从共享网络位置或网站自动更新吗?

我不想编写自定义更新例程。我没有选择 ClickOnce 安装,因为它不支持附加自定义操作。

我按照此网站中的设置更新我的外接程序,使用设置, 通过使用 ClickOnce 更新机制,但当我发布应用程序时,插件没有更新。有什么建议吗?

I have an MS Office Word 2007 AddIn and a setup project that installs this AddIn.

I have gone for setup project as I have to perform some CustomAction during the installation Commit and Uninstall stages.

Is there any way the AddIn updates itself automatically from a Shared Network location or Website?

I do not want to write a cutom update routine. I did not go for ClickOnce installation as it does not support attaching Custom Actions.

I followed the setps in this website to update my AddIn, installed using a setup,
by using ClickOnce update mechanism but the addin didnot update when I published my application. Any suggestions?

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

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

发布评论

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

评论(2

你如我软肋 2024-12-20 06:17:31

支持 ClickOnce - 您可以通过项目属性中的发布设置进行配置。为您提供了默认的先决条件(PIA、框架、Windows 安装程序、vsto 运行时)。最好以 7 天的间隔(默认)进行更新检查,以防止 Office 应用程序启动时间过慢(而不是“每次运行自定义时”)。

这样做的一个问题是,如果用户几天没有关闭应用程序(Outlook、Excel 等),则永远不会检查更新(直到关闭并重新启动)。

此方法的另一个问题是您无法为计算机的所有用户自动安装它。用户必须启动安装。

最后,您需要一个发布者证书来防止出现“发布者无法验证”消息。

我的建议是,您远离自动更新(轮询模型)并使用管理脚本(推送模型)来部署更改,以便在每个人收到更新时强制执行。当然,除非您处于企业环境中并且可以控制用户计算机,否则推送模型不起作用。

ClickOnce is supported - you can configure it via the Publish settings in the project properties. The default prereqs are included for you (PIA, framework, windows installer, vsto runtime). It's best to leave the update check at 7 day intervals (default) to prevent slow office application startup time (instead of "every time customization runs").

One issue with this is that if the user doesn't close the application (outlook, excel, etc.) for days - the updates will never get checked for (until it is closed and restarted).

Another issue with this approach is that you can't auto-install it for all users of a machine. The user must initiate the install.

Finally, you will need a publisher certificate to prevent the "publisher cannot be verified" message.

My recommendation is that you stay away from auto-updates (polling model) and use an administrative script (push model) to deploy changes to enforce when everyone receives the update. Of course the push model doesn't work unless you are in an enterprise setting and have control over users machines.

木落 2024-12-20 06:17:31

使用安装项目时,更新产品的唯一方法是检查更新并管理这些更新。通常这个“东西”是一个更新程序应用程序。

这是一个包含更多详细信息的线程:
自动更新 Windows 的最佳方式是什么应用程序?

另一种解决方案是使用 ClickOnce,但这仅适用于 ClickOnce 应用程序。我不确定 Office 加载项是否支持它。

When using setup projects the only way to update the product is to make something check for updates and manage those updates. Usually that "something" is an updater application.

Here is a thread with more details:
What is the best way to auto update a windows application?

Another solution is to use ClickOnce, but this works only for ClickOnce applications. I'm not sure if Office add-ins support it.

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