单击一次事件,仅在加载新版本后运行 [英] Click Once event that runs only after a new version is loaded

查看:110
本文介绍了单击一次事件,仅在加载新版本后运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用单击一次"部署我制作的所有应用程序.我设置了发布设置,以在应用程序启动之前检查新版本.我还将最低要求版本设置为当前版本号,以便单击一次即可将最新版本自动下载给用户.

我想知道是否可以使用仅在加载新版本时才会触发的事件.我想向用户显示一条消息,提示已加载新版本.然后,我希望为用户提供查看新功能"文档的选项,以便他们可以看到新版本中的所有更改.我考虑过要在MySettings中创建一个设置来执行此操作,但是似乎有时由于某些原因会清除这些设置.

I use Click Once to deploy all the apps I make. I set the publish settings to check for a new version before the application starts. I also set the minimum required version to the current version number so that click once will automatically download the latest version to the user.

I am wondering if there is an event I can use that only fires when a new version has been loaded. I would like to display a message to the user that a new version has been loaded. I would then like to give the user the option to view my "What''s New" document so they can see all the changes in the new version. I thought about creating a setting in MySettings to do this but it seems like these settings sometimes get cleared for some reason. Does anyone have any other ideas on how this can be done?

推荐答案

在这里看看:
向程序添加自动更新-第1部分 [ ^ ]
http://stackoverflow.com/Questions/401816/how-can-i-make-a-click-once-deployed-app-run-at-startup [ http://johnnycoder.com/blog/2009/02/24/clickonce-run -at-startup/ [ ^ ]
http://social.msdn.microsoft.com/forums/en-US/winformssetup/threads / [ ^ ]
http://www. installsite.org/cgi-bin/frames.cgi?url=http://www.installsite.org/pages/en/tt_patch.htm [ http://stackoverflow.com/Questions/1743650/is-the-a-standard-way-for-net-winforms-apps-to-auto-upgrade [ http://www.devx.com/dotnet/Article/10045/1763 [ ^ ]
Have a look here:
Adding automatic updates to your program - Part 1[^]
http://stackoverflow.com/questions/401816/how-can-i-make-a-click-once-deployed-app-run-at-startup[^]
http://johnnycoder.com/blog/2009/02/24/clickonce-run-at-startup/[^]
http://social.msdn.microsoft.com/forums/en-US/winformssetup/threads/[^]
http://www.installsite.org/cgi-bin/frames.cgi?url=http://www.installsite.org/pages/en/tt_patch.htm[^]
http://stackoverflow.com/questions/1743650/is-there-a-standard-way-for-net-winforms-apps-to-auto-upgrade[^]
http://www.devx.com/dotnet/Article/10045/1763[^]


这篇关于单击一次事件,仅在加载新版本后运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆