Forum > Windows

Check for updates and update

(1/2) > >>

Hobbit1972:
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:
For Lazarus there is LazAutoUpdater (https://wiki.freepascal.org/LazAutoUpdater). I don't know if it can work in a pure FPC program.

Thaddy:
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:

--- Quote from: Hobbit1972 on June 08, 2023, 03:08:50 pm ---Hi,

I'd like to implement a check fpr updates and update the program - would there be a viable way to do so?

Thx

--- End quote ---

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:
Thank you for your thoughts!


--- Quote from: dseligo on June 08, 2023, 04:32:22 pm ---For Lazarus there is LazAutoUpdater (https://wiki.freepascal.org/LazAutoUpdater). I don't know if it can work in a pure FPC program.

--- End quote ---

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

--- End quote ---

I'll ponder this point, too.



--- Quote from: lainz on June 08, 2023, 10:27:12 pm ---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.

--- End quote ---

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  :-X

Navigation

[0] Message Index

[#] Next page

Go to full version