NSIS automatic and silent update

爱⌒轻易说出口 提交于 2019-12-01 06:54:49

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...

It is easy to download files from internet using NSIS (there are several plug-ins for this purpose: NSISdl, InetC, ...) but such functionality is more about coding.

There is no exact solution for this - as Anders said you need to specify every detail to achieve required behaviour.

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