-
Patching the patcher
Hi everybody,
I delevoped a .net application using C#. Whenever a new, updated build is available, a second application (the patcher) downloads the patch file and applies it to the main executable.
But what If I have to apply the patch to the patcher?
Is it possible to modify the exe while it's running and then restart it? How to restart an application (close and reopen soon after) using C#?
Thanks for help, much appreciated, bye :wave:
-
Well how about it checks if the app being downloaded is the main app or the patcher app. If its the main app, then update as normal. If its the patch app that's being downloaded, download it, close it, and have the patcher app downloaded replace the original patcher app :)
-
ok, I'll run the new patcher with another filename (patcher_new.exe) so he could work safely on the original file (patcher.exe) while it's not running.
thanks