如何更新已安装的Window应用程序 [英] How to Update the installed Window Application

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

问题描述

我已经创建了窗口应用程序,并且已经创建了已安装到客户端计算机的应用程序的设置.现在的要求是,如果我将对项目进行进一步的修改,则客户端无需再次安装整个应用程序相反,客户端只需要安装新版本的更新即可.

我使用了VS2008的安装和部署项目.

我该怎么办?

在此先感谢

i have created the window application and i have created the setup of that application that has been installed to client machine.Now the requirement is that if i will do the further modification to the project the client not need to install whole application again instead client only need to install Update of new version.

i have used Setup and Deployment project from VS2008.

what should i do ?

Thanks in advance

推荐答案

对于Windows应用程序更新,
无需为每个更新重新安装应用程序.

有三种解决方案

1.
只需用最新的exe替换客户端的exe文件即可.
(更新的基本过程是检测更改并替换为最新的更改.)

2.
使用.net clickOnce功能
第1步打开项目属性
步骤2点击发布"标签
步骤3点击更新"按钮
步骤4勾选应用程序应检查更新";
步骤4.1根据要求进行其他设置.
步骤4.2和最后一个步骤,指定更新位置(指定ftp或http路径,您将在其中上传应用程序更新,并且客户端更新将被自动检测到并将被下载,并且文件还将在特定位置上被自动替换.visual.net的clickonce功能可用于此功能.)

3.
使用自定义的自动更新应用程序.检查下面给出的参考
http://www.codeproject.com/Articles/19623/Adding-automatic-updates-to-your-program-Part-1


每个方法都有自己的利弊.
如果您没有空间在Internet上上传更新,或者您的客户端没有Internet设施.
而且您也不会经常从客户端获取更新,因此请选择第一种基本方法.

简单的是,
只需根据需求和便利使用资源."

祝您编程愉快!
:)
For windows application updates,
no need to re-install application for each update.

there are three solutions

1.
just replace client''s exe file with your latest exe.
(basic process for update is to detect the changes and replace with latest one.)

2.
use .net clickOnce feature
step 1 open project properties
step 2 click ''publish'' tab
step 3 click ''updates'' button
step 4 tick ''the application should check for updates'';
step 4.1 other settings as per requirement.
step 4.2 and last, specify update location (specify ftp or http path, where you will upload application updates and client-side the updates will be detected automatically and will be download + the files will also be automatically replaced on specific location. visual.net''s clickonce feature serves this facility.)

3.
use custom Auto-update application. check reference given below
http://www.codeproject.com/Articles/19623/Adding-automatic-updates-to-your-program-Part-1


each every method have their own pros-cons.
if you don''t have space to upload updates on internet or your client doesn''t have internet facility.
and also you don''t get updates from your client frequently, then go with first basic method.

simple thing is that,
"just use resources as per requirement and Convenience."

Happy coding!
:)


您可以在两个MSI文件之间手动创建补丁,只要只有文件已更改-从技术上讲,您也可以处理文件的添加/删除,但这取决于文件的一致性.两个MSI版本之间的文件排序

小更新示例 [ ^ ]

如果您想正确"地进行操作,建议您使用比VS中的设置和部署"工具更有用的工具;这是非常基础的-看看 WiX [ ^ ]如果您想要一个免费的,它是由(或曾经)由MSI开发团队编写的.

通过MSI进行部署的功能非常强大,但需要进行大量的思考和设计-不幸的是,大多数开发团队在发布之前会先检查设置过程,并犯下错误,最终让他们后悔
我诚实的建议是,使用真正的MSI创建者重新设计一个全新的msi,并删除以前的安装程序(使用
You can manually create a patch between two MSI files as long as only files have changed - technically, you can also handle additions/removals of files too, but that relies on consistency of file ordering between the two MSI builds

Example of small update[^]

If you want to do it ''properly'', I''d suggest you use something more useful than the Setup and Deployment tool in VS; that''s extremely rudimentary - have a look at WiX[^] if you want a free one, it is (or was) written by the MSI development team

Deploying via MSI is extremely powerful, but requires a lot of thought and design - unfortunately, most Dev teams look at the setup process just before release and make mistakes they eventually regret

My honest advice would be to re-engineer a new msi in it''s entirety, using a real MSI creator, have it remove your previous installer (using the Upgrade Table[^] and start again at v1.1


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

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