NSIS自动和无提示更新 [英] NSIS automatic and silent update

查看:281
本文介绍了NSIS自动和无提示更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在构建一个应用程序,并且想要一个安装程序并为其进行自动静默更新.

Dropbox,Spotify和Chrome在没有任何人注意的情况下都非常出色地进行更新.因此,我查看了AppData中的Dropbox漫游文件夹,并找到了一个带有NSIS图标的名为DropboxUpdateHelper.exe的文件.在Spotify文件夹中,我只能找到SpotifyHelper.exe,并在条款中提到了NSIS.

是否有一个有关如何在漫游文件夹中安装应用程序并具有无提示自动更新程序的教程?我对NSIS并不固定,但希望使用开源和免费安装程序.

解决方案

NSIS具有 INetC插件可以用来从Internet下载东西,但是我不知道那里是否有自动更新教程.您可能还想看看 VPatch插件 ...

这里有很多变量要考虑:

  • 您的主应用程序应该查找更新还是仅在应用程序(或Windows)启动时运行更新程序以进行检查?
  • 服务器上的文件是否已签名,或者您还有其他方法可以检测无效/损坏/ 解决方案

NSIS has the INetC plugin that can be used to download things from the internet but I don't know if there is an auto update tutorial out there. You might also want to take a look at the VPatch plugin...

There are many variables to think about here:

  • Should your main application look for updates or just run the updater on application (or windows) startup so it can check?
  • Are the files on the server signed or do you have other ways to detect invalid/corrupted/MitM updates?
  • Do you require access control/DRM before downloading/applying updates?
  • How will you handle major version number updates? Will you support more than one major version or force upgrades?
  • Do you require administrator rights to update? UAC handling?
  • How are you going to support upgrading from 1.0 to 1.2? Update to 1.1 first or support every possible minor version upgrade path?

I'm sure there are many other issues you also have to think about. You should probably try to answer all these questions before you start coding. During development you might find other questions or that you have to change the design completely.

IMHO, this is not a simple question and I don't think you will be able to find a drop-in solution that fits your exact design/requirements...

这篇关于NSIS自动和无提示更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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