Recent

Author Topic: Starting a Detached Updater App  (Read 1953 times)

TheMouseAUS

  • Full Member
  • ***
  • Posts: 136
Starting a Detached Updater App
« on: September 17, 2024, 05:26:38 am »
Hi,
I am trying to get an app I have made to self update. I have it checking a version number, then if an update is required, I want to run an updater app, close itself while the updater replaces the binary. I seem to be really struggling. Everything I try using the TProcess examples seems to close the updater app when the parent main app closes. Can some one please direct me to some TProcess examples that will actually work?

Lazarus 3.4
FPC 3.2.2
x86_64_qt5

Thanks

TheMouseAUS

  • Full Member
  • ***
  • Posts: 136
Re: Starting a Detached Updater App
« Reply #1 on: September 17, 2024, 05:34:39 am »
This is in the wrong place. Have reposted in the linux section

Thaddy

  • Hero Member
  • *****
  • Posts: 19388
  • Glad to be alive.
Re: Starting a Detached Updater App
« Reply #2 on: September 17, 2024, 10:09:09 am »
You can remove it.
objects are fine constructs. You can even initialize them with constructors.

 

TinyPortal © 2005-2018