By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,775 Members | 1,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,775 IT Pros & Developers. It's quick & easy.

Self update

P: n/a
Another quick question. I have seen applications like Reflector that can
perform a self update. How can I replace the currently running executable
with another file downloaded from an update location? I have tried
disasembling Application.Restart() and writing the new file in the process
gap but that does not work. I figgure there must be some best practrice for
this?

Thanks
Jan 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

"Jamey McElveen" <ja************@acstechnologies.com_nospamwrote in
message news:eb*************@TK2MSFTNGP02.phx.gbl...
| Another quick question. I have seen applications like Reflector that can
| perform a self update. How can I replace the currently running executable
| with another file downloaded from an update location? I have tried
| disasembling Application.Restart() and writing the new file in the process
| gap but that does not work. I figgure there must be some best practrice
for
| this?

This is the solution I'm using in a PPC application. The application check
for an update in a website, if one exist it downloads it. It's usually a
couple of files zipped. after unzipping them in a temp folder I execute the
real "updater app" and as a parameter I pass the process ID of the calling
(the app being updated). The updater terminate the calling process and then
just go on and copy the new .exe (it was downloaded too) to the correct
location. Finally execute it.
Super simple and works like a charm :)

--
Ignacio Machin
machin AT laceupsolutions com
Jan 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.