Re: self-autoupdate vb exe



"Hunter" <huntertaylor@xxxxxxxxx> wrote in message
news:3fnqjdF8i4g9U1@xxxxxxxxxxxxxxxxx
> how might this be implemented?
>
> user runs an exe which immediately when started should check a network
> server location
> to determine if a newer version exists?
>
> if it does, copy the new exe, terminate current exe and start the new copy
>
> running the exe from the network location is not allowed, it must reside
> on local
> desktop

I've done this in 2 different apps and think I found a fairly good way to do
it. Your app should check is it needs updating and if it does it should
download a seperate exe, maybe called update.exe and then exit itself. Then
update.exe will copy the new version of your ap, run it and exit. The great
thing about doing it this way is that you can supply an updated update.exe
with each new release, so if requirements change you can change it. If all
your update code is stuck inside your app you are stuck with code you might
have written 2 years ago.

Don't forgot to put in some retrys when copying the files to make sure your
app has had time to exit.

Michael


.



Relevant Pages

  • Re: VFP Performance Question
    ... Watch your network switch and see what activity occurs, ... I would echo Rick's suggestion to put the exe and all temp files on the ... A further suggestion would be to try your app using native VFP ... Our app runs against a database around 300 MB ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Mobile Service & Auto Start
    ... SYSTEMTIME is declared wrong. ... have never needed to write an app like this and I just figured ... just very dumb about the CeRunAppAtTime call and why it may not ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... registry Init key is not going to work reliably. ... have never needed to write an app like this and I just figured ... I just played with what exe inits ... just very dumb about the CeRunAppAtTime call and why it may not ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)

Loading