Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Updating an Updater (http://forums.winamp.com/showthread.php?t=247946)

Dashus 5th June 2006 21:33

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.

kichik 16th June 2006 08:36

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.


All times are GMT. The time now is 05:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.