如何更新已安装的Windows应用程序(创建补丁)
我有要求。我已经创建了窗口应用程序,并且已经创建了已安装到客户端计算机的该应用程序的设置。
现在的要求是,如果我对项目进行进一步修改,客户端不需要再次安装整个应用程序,而客户端只需要安装新版本的更新。比如使用补丁什么的。我该如何做到这一点,VS 中有一个工具,我们可以从中创建更新补丁或其他东西。
请帮忙..
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..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有多个选项,但它们取决于您首先使用的安装程序。
使用 Inno Setup 非常容易,因为(如果文件项配置正确)InnoSetup 将检测到应用程序已安装,并且仅复制修改的文件,即使您发布整个安装程序也是如此。这将是自动的。
如果您使用内置的 Visual Studio 安装项目,也是可以的,但您必须在安装属性中设置不同的“升级 ID”。我还没有在这方面做过太多工作。
第三种选择是使用 Windows Installer XML (WIX),它能够生成补丁安装程序,但我还没有太多使用 WIX。
最后一个选择是自己编写一些能够将旧文件与新文件交换的东西,但对于较新的 Windows 版本,您必须牢记 UAC。
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.
我已经解决了这个问题...使用 VS 的 ClickOne 安装程序。我将 win 表单发布到特定的 URl,每次应用程序启动时都会检查升级版本(如果可用),然后安装并运行。
http://www.15seconds.com/issue/041229.htm
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