How to write the EXE file itself?

  • Thread starter Thread starter jiatiejun
  • Start date Start date
J

jiatiejun

I want to write a Update program like Norton LiveUpdate,

but I canot how to update the Update program itself?
 
Hi,

There's a "big" solution called "BITS" which is the basis of the Windows
Update functionality. This is alittle to big for me, so i made my own. It's
really easy, you just make two exe's; 1) One for your program, and one of
the update program.

When the program starts, the first thing it does is to see what version it
is. Then it compares the version number of the update program, with a server
variable (i'm using a webservice). If it's higher (or different) it
DOWNLOADS the update program, and then shell's out and starts the update
program and closes the normal program. Now you can install your msi package,
or copy files or whatever you want. Then when the update program is
finished, you shell start the normal program again.

Tadaaaa.

:-)
 
Back
Top