How to write the EXE file itself?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jiatiejun

    How to write the EXE file itself?

    I want to write a Update program like Norton LiveUpdate,

    but I canot how to update the Update program itself?


  • Benne Smith

    #2
    Re: How to write the EXE file 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.

    :-)


    "jiatiejun" <jiahome@263.ne t> wrote in message
    news:%23QLAIa1n DHA.2068@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > I want to write a Update program like Norton LiveUpdate,
    >
    > but I canot how to update the Update program itself?
    >
    >[/color]


    Comment

    Working...