Re: winforms based product updates provision

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thanks for the solution Marc,

Can i use the updater block in .net 2.0 ?
i look for the updated version of this block but could not find it over msdn.

Can u guide me find the latest version if any?

thanks in advance
NZ

Marc Bernard wrote:
On May 17, 4:10 am, enzeez <nos...@xxxxxxxxxxxxxxxxx> wrote:
Hello,

I need to provide an updater exe along with my product executable in setup.

My product exe will check for updates if any, available and will launch
a process , updater.exe.
updater.exe downloads the updated version available.
This updater.exe needs to replace the current product exe with the new
ones thats downloaded.

Can someone guide me how do i achieve this?

Is it ok to just replace or delete the current exe and create a new exe
with same name?

I am new to such a task and i need to know the best possible solution.

I dont want users to uninstall and install the new version.
However, uninstalling silently by the updater.exe and then the
downloaded setup.exe run by updater.exe is also acceptable - is this
possible?


We're using a custom updater, heavily based on the Updater Application
block.

http://www.microsoft.com/downloads/details.aspx?familyid=c6c17f3a-d957-4b17-9b97-296fb4927c30&displaylang=en

Works great - we can choose to have multiple versions on a single
machine, update the app silently in the background, then prompt the
user to switch to the new one once it's downloaded, etc.

Marc
http://nomagichere.blogspot.com
.



Relevant Pages

  • Re: self-autoupdate vb exe
    ... The first exe does the checking and updating. ... including the caller's process ID so the updater can kill the parent. ... the caller program will then call ...
    (microsoft.public.vb.winapi)
  • Re: self-autoupdate vb exe
    ... >Public Sub Main ... so the app calls the updater passing in its location and name. ... >Once passed the Main sub exits and the exe is closed. ... >passing in a "ready" command on the command line. ...
    (microsoft.public.vb.winapi)
  • Re: self-autoupdate vb exe
    ... It can't be done the way I wrote this utility: The generic updater ... > I prefer not to include the updating code in each EXE, ... Public Sub Main ... If the user just launches the exe then there is no command line ...
    (microsoft.public.vb.winapi)
  • Re: winforms based product updates provision
    ... I need to provide an updater exe along with my product executable in setup. ... My product exe will check for updates if any, ... updater.exe downloads the updated version available. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: self-autoupdate vb exe
    ... the main EXE has to be launched by another ... > to run directly or call the updater and die. ... The app requires certain text to be present on the command ... passes in the proper text, but by default, the user can't just launch it from ...
    (microsoft.public.vb.winapi)