Archive: Updating an Updater


Updating an Updater
I've read over this thread and have implemented a helper executable in c. The problem I have is that I'd like to restart the updater automatically after replacing it with the new version. However I can't delete the helper because it's the parent of the new updater process that it starts. Is there any way around this? My first solution was forking the start of the new updater but of course Windows can't handle that.


There are some methods to delete the running executable. You can also fake forking by copying the running executable somewhere and executing it from there, as the NSIS uninstaller does.