Search code examples
install4j

install4j: is it possible to have full update experience for all medias?


I am building my app using install4J and I am now trying to implement updater functionality. I have multiple media and I end up with different result:

  • for windows installer (.exe): it works perfectly, new media is donwloaded, my app is closed and new installer is run automatically
  • for .deb, .rpm the new media is downloaded in /Downloads and updater stop there. Is it possible to configure the updater to have my app closed and .deb / .rpm installed automatically similarly to what is achieved for windows updater?
  • archive (both windows and unix) the new media is downloaded in /Downloed and updater stop there. Is it possible to configure install4J to have the app closed and to have the .zip / .tar.gz unziped in the app directory to perform the update.

Thank you


Solution

  • The update downloader is just a template and you can modify the screens and actions as you like.

    For DEB and RPM you could add actions to the update downloader to install them. For archives on Unix this it is also possible to extract them to the installation directory.

    However, on Windows, it is is difficult to do this for archives, because of file locks. Replacing the install4j runtime or a bundled JRE will not be possible because they are in use by the update downloader.