Recent

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

TheMouseAUS

  • Jr. Member
  • **
  • Posts: 60
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

  • Jr. Member
  • **
  • Posts: 60
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: 15735
  • Censorship about opinions does not belong here.
Re: Starting a Detached Updater App
« Reply #2 on: September 17, 2024, 10:09:09 am »
You can remove it.
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018