Skip to main content
 首页 » 编程设计

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

2024年02月23日18jyk

我正在使用 VS 2008 和 C#

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

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

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

有什么建议吗?

请您参考如下方法:

虽然我从未见过“手动安装旧设置的结果”部分,但未显示应用程序更新消息的事实是 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.

还有更多:

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.