Re: Self update



Hi,

"Jamey McElveen" <jamey.mcelveen@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:ebJFIOKRHHA.464@xxxxxxxxxxxxxxxxxxxxxxx
| 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


.



Relevant Pages

  • Re: New Patch Fixes 43 Flaws In OS X, Many Serious
    ... downloads as read-only, ... It prevents malware from executing and seeing that the downloaded object has no id or user id available, the kernel will not execute it. ... There have been exploitable bugs in IE, ... You must have an installer to do this, ...
    (comp.sys.mac.advocacy)
  • Browsers special handling of EXE files
    ... downloads it, uses it once and throws it away. ... version works perfectly using non-Microsoft browsers, ... appears the IE browser is doing it's best to find something to execute. ... created as "Windows Applications" over the net? ...
    (microsoft.public.dotnet.vjsharp)
  • Re: Open Outlook on user machine
    ... compiled COM application that downloads to the user's client browser and attempts to execute there. ... If, however, you are programming for your own intranet, or can guarantee that the user is running IE and will execute code from your site with enough privelege, you can write an embedded activeX control and call it from javascript within your page. ... Because the ActiveX control will download to the client and run there, you can do more or less anything you could do in a normal user program. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Where does SP2 downloads itself to?
    ... Enquire, plan and execute. ... Please tell the newsgroup how any suggested solution worked for you. ... I'm having trouble installing SP2, and even when I tried system> restore, Windows update still tells me that they are already downloaded> into ... > downloads there are in my computer... ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Combo Box Property
    ... after all what the ComboBox throw the event when the ... value change with no regards of that made it change. ... Ignacio Machin ... a combo box click method to only execute when the index is ...
    (microsoft.public.dotnet.languages.csharp)