How to automatically update an application installed with Inno Setup

早过忘川 提交于 2020-07-07 12:33:48

问题


I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java.

I often frequently release new versions and bug fixes.

I would like to know if there is a mechanism to install updates automatically?


回答1:


Inno Setup does not have any built-in mechanism for implementing automatic updates.

You need to implement that yourself:

  • Make your application check for new versions (against your application webpage?). E.g. on startup (on a background thread?)
  • If the application detects a new version, make it download an installer to a temporary location.
  • Make the application execute the downloaded installer. You can make the installer run in silent mode (/silent switch). The application should close itself, to unlock any files it is using, to allow files update.


来源:https://stackoverflow.com/questions/27860099/innosetup-and-automatic-update

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