Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

LazAutoUpdater/Systray Service

Summary

Using the LazAutoUpdater Systray Service

This is even simpler to code in your app.

pascal
If LazAutoUpdate1.CreateLocalLauImportFile
  then LazAutoUpdate1.RelocateLauImportFile;

That's it!

How it works

  1. If the app is not running, it downloads and then copies over the new version of the app
  2. If the app is running, it calls lauupdate(.exe) to remotely close, update then re-open the app.
  1. Merge its contents with the app configuration file
  2. Delete the original

In this way, an update's information can be reflected in the configuration file.


From the Free Pascal wiki, page "LazAutoUpdater/Systray Service", as it stood on 2020-02-18 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .