Check for updates and update lazarus / 67-Windows ---------------------------------------------------------------------- Hobbit1972 · 2023-06-08 13:08 Hi, I'd like to implement a check fpr updates and update the program - would there be a viable way to do so? Thx ---------------------------------------------------------------------- dseligo · 2023-06-08 14:32 For Lazarus there is LazAutoUpdater (https://wiki.freepascal.org/LazAutoUpdater). I don't know if it can work in a pure FPC program. ---------------------------------------------------------------------- Thaddy · 2023-06-08 14:43 It will probably work, but it has no proper roll-back features: 1. stopping the update while running does not always work (from the zip phase onwards) 2. there is no way to recover from a successfull update, but a non- running updated application 3. frankly there is no roll-back at all Therefor I can not recommend it in the state I last examined it. ---------------------------------------------------------------------- lainz · 2023-06-08 20:27 Quote from: Hobbit1972 on June 08, 2023, 03:08:50 pmHi, I'd like to implement a check fpr updates and update the program - would there be a viable way to do so? Thx Do as Notepad++. It downloads an installer and runs it, then closes the main process, then you can upgrade with a full installer. The installer is made with Inno Setup. ---------------------------------------------------------------------- Hobbit1972 · 2023-06-09 04:52 Thank you for your thoughts! Quote from: dseligo on June 08, 2023, 04:32:22 pmFor Lazarus there is LazAutoUpdater (https://wiki.freepascal.org/LazAutoUpdater). I don't know if it can work in a pure FPC program. As I'm writing a GUI-program, that would be okay. I'll have a closer look. Quote from: Thaddy on June 08, 2023, 04:43:16 pmIt will probably work, but it has no proper roll-back features: 1. stopping the update while running does not always work (from the zip phase onwards) 2. there is no way to recover from a successfull update, but a non- running updated application 3. frankly there is no roll-back at all Therefor I can not recommend it in the state I last examined it. I'll ponder this point, too. Quote from: lainz on June 08, 2023, 10:27:12 pmDo as Notepad++. It downloads an installer and runs it, then closes the main process, then you can upgrade with a full installer. The installer is made with Inno Setup. This sounds interesting - I'll give it a try. In every case I have to switch from ini-file in program directory to either registry usage or ini-file in appdata ---------------------------------------------------------------------- KodeZwerg · 2023-06-09 05:43 Quote from: Hobbit1972 on June 09, 2023, 06:52:33 amIn every case I have to switch from ini-file in program directory to either registry usage or ini-file in appdata  I do not understand why you need that to update your software, I personal never used any pre-made component/code that does do this, I download from internet a small xml file, in that file is the current version written, compare it to installed version, either update or not (depending on my own needs I either create backups for roll-backs first or straight replace files).