Old 5th June 2006, 21:33   #1
Dashus
Junior Member
 
Join Date: Jan 2006
Posts: 9
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.
Dashus is offline   Reply With Quote
Old 16th June 2006, 08:36   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump