如何制作更新程序 [英] How to Make Updater

查看:100
本文介绍了如何制作更新程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道我将如何做一个更新程序,所以说我重新发布该程序的一个版本,然后进行一些错误修复,然后我想要它,因此当该人打开该程序时,会弹出一个屏幕说需要更新,那么他们可以在那里进行更新.如果可能的话,我需要知道如何在C#和VB中执行此操作.

I need to know how i would go about like making a updater, so say i realease a version of the program, then i make some bug fixes, then i want it so when the person opens the program, a screen pops up saying Update needed, then they can update it right there. I need to know how to do this in C# and VB if possible

推荐答案

您的软件可以选择一种方法来轮询网站的最新版本,如果您的软件不是所列版本,请提示用户访问该网站以下载最新版本.这种策略的问题在于,他们可能不喜欢您的软件打电话回家",并且可能会将其阻止在防火墙中.

One option would be for your software to poll a website for the latest version, and if your software isn''t the listed version, then prompt the user to visit the website to download the latest version.  The problem with this strategy is that they might not like your software "phoning home" and might block it at the firewall.

另一种选择是简单地在您的系统中实现检查最新版本"功能(通常位于帮助菜单下),这样用户就可以知道您的软件需要连接到互联网并且很可能会允许它通过该实例的防火墙.

Another option is simply to implement a "check for latest version" feature in your system (commonly placed under the help menu), that way the user is aware that your software needs to connect to the internet and are likely to let it through their firewall in that instance.

您将无法远程强制用户更新系统(除非您当然是Microsoft!).

You won''t be able to remotely force a user to update their system (unless you are Microsoft of course!!).


要添加到上一个答案,您不能强迫某人更新其软件,但是可以对软件进行编码,如果发现某个问题,则可以停止工作.有可用的更新(如果无法上网进行检查,则可以通知用户您需要上网).我不建议您这样做,但我会把确切的设计留给读者练习.

您可以采用旧的iTunes方法,该方法是将更新通知用户,然后将其发送到网页,他们可以自己下载和安装更新的版本.

如果您使用ClickOnce部署应用程序,我非常确定您可以将其设置为自动更新:
To add to the previous answer, you can''t force somebody to update their software, but you can code your software to stop working if it finds an update is available (and if it can''t get online to check, you can inform the user you need to get online). I wouldn''t recommend doing exactly that, but I''ll leave the exact design as an exercise for the reader.

You could take the old iTunes approach, which was to inform the user of an update, then just send them to the webpage where they can download and install the updated verson themselves.

If you deploy your application using ClickOnce, I''m pretty sure you can set it to automatically update:
http://en.wikipedia.org/wiki/ClickOnce


好吧,我想弹出一个框,提示有可用的更新,您可以单击更新"或忽略",并且仅当我重新获得较新的版本时,我才希望它弹出在我的网站上
Well i would like a box to pop up that an update is available and u can click update or Ignore, and i want it to pop up only if i realease a newer version on my site


这篇关于如何制作更新程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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