How to update "updater"? (WITH#)

I have a program consisting of two programs: Updater and WorkMaker. Whenever there is an update for WorkMaker - Updater kills it, downloads the updates and starts it again. But I will say that I came up with a new program Updater. How to update it? Via WorkMaker? Through the third program? Thanks.

+4
source share
4 answers

The simplest IMHO solution is:

  • Currently, MainProgram downloads Updater been requested, as well as updates after Updater launched.

  • The update closes MainProgram , updates and restarts MainProgram , or just quits.

Thus, you have a flexible way to update your program ( MainProgram ), but also Updater , when necessary.

Hope this helps.

+4
source

I'm not sure how far your application architecture is, but as a complete replacement for Updater, did you consider using ClickOnce to manage your WorkMaker deployment?

It will ensure that the last patch is launched at startup. If the application is lengthy, then you can also manually run updates .

+2
source

I use a similar setting to run our msi and msp files when necessary. The solution consists of a small executable file that loads the working DLL into the second AppDomain using Shadow Copy . The executable is so simple that I never needed to change it. However, now I can easily fix my working DLL as I please, since it is not locked in its original location on the disk.

+1
source

Perhaps your updater has updated the update, launched it with some parameters, and updated the original update file.

You can also use WorkMaker as an update for your Updater program.

0
source

All Articles