How to Update the installed Window Application (Creating Patches)

夙愿已清 提交于 2019-12-24 09:27:06

问题


i have requirement. 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. like using Patches or something. How can i do this is there and tool in VS from which we can create the update patches or something.

Please Help..


回答1:


There are several options, but they depend on which installer you used in the first place.

It is very easy with Inno Setup, as (if the file items are configured correctly) InnoSetup will detect that the application is already installed and only copy modified files, even though you publish the entire setup. This will be automatic.

If you used the built-in Visual Studio setup project, it is also possible, but you must set a different "upgrade id" in the setup properties. I haven't worked much with this, yet.

A third option is using Windows Installer XML (WIX), which is able to generate patch installers, but I haven't worked much with WIX yet.

One last option would be to write something yourself that is able to exchange old files against new files, but you'd have to keep UAC in mind for newer Windows versions.




回答2:


I have solved the problem...using ClickOne Setup of VS. i publish the win form to a specific URl and each time when application launchs its check the Upgraded version if available it install and run.

http://www.15seconds.com/issue/041229.htm



来源:https://stackoverflow.com/questions/3510112/how-to-update-the-installed-window-application-creating-patches

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!