如何在 ClickOnce 中处理应用程序更新

发布于 2024-12-08 07:15:50 字数 379 浏览 0 评论 0原文

我正在使用 VS 2008 和 C#

我的查询如下。 使用 VS 2008 中的 Clickonce,我正在创建一个安装程序。它有一个选项“应用程序应该检查更新”。这是屏幕截图

在此处输入图像描述

当您放置新版本设置时,它会显示以下更新信息弹出窗口与旧设置的安装位置相同。下面是屏幕截图。

在此处输入图像描述

现在,问题是如果您单击“跳过”按钮并再次单击已安装设置的快捷方式将不会显示“应用程序更新”消息并导致手动卸载旧安装程序。

有什么建议吗?

I am using VS 2008 with C#

My query is below.
With Clickonce in VS 2008, i am creating a installer. It has an option that "Application should check for updates". Here is the screen shot

enter image description here

It shows the below Update Information Pop up When you have a new version setup placed in the same location from where the old setup was installed. Below is the screen shot.

enter image description here

Now, the issue is if you click the skip button and again clicking the shortcut of the installed setup will not show the "Application Update" message and results in manually uninstalling the old setup.

Any suggestions ?

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

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

发布评论

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

评论(2

疧_╮線 2024-12-15 07:15:50

虽然我从未见过“手动安装旧设置的结果”部分,但未显示应用程序更新消息的事实是 根据设计

单击“跳过”将启动应用程序的本地安装版本,并确保一周内不会提示您进行该特定更新。

还有更多:

重申一下,单击“跳过”相当于“一周内不要提示我进行此特定更新”。周时间限制是不可配置的。
请注意,一周内不会“提示”您 - 但是 clickonce 仍会根据您的 maxAge 或 beforeApplicationStartup 设置检查更新。如果它检测到较新的更新(您跳过了 V2,但现在 V3 可用),系统将提示您进行新更新。

While I've never seen the "results in manually installing the old setup" part, the fact that the application update message is not shown is as per design :

Clicking on Skip launches the locally installed version of the application AND makes sure you are not prompted for that particular update for a week.

And further more:

To reitterate, clicking on Skip is equivalent to "Do not prompt me for this particular update for a week". The week time limit is non configurable.
Note that you will no be "Prompted" for a week - however clickonce will still check for updates based on you maxAge or beforeApplicationStartup setting. If it detects a newer Update (You skipped V2, however now V3 is available) you will be prompted for the new update.

悲念泪 2024-12-15 07:15:50

如果您希望应用程序具有自定义行为,请查看系统。部署命名空间。您可以强制在后台下载更新,并使应用程序自行重新启动,以便它始终是最新的(如果您需要的话)。

If you want to have custom behaviour for the application look into the System.Deployment namespace. You can force updates to download in the background and make the application restart itself so that it's always up to date if that's what you require.

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