Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Auto Update My Application...

Auto Update My Application...

Scheduled Pinned Locked Moved C / C++ / MFC
c++comhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    loid grey manuel
    wrote on last edited by
    #1

    Hi, i am working on a simple application that needs to be updated frequently, do you have an an article that discusses how an application downloads the update then install it. Like an anti virus, it downloads the update definitions then install it on its own. lets say its an application that collects updates from a common share-point. lets not focus on the install part, what we want to focus is on the connection and download part.. and what are the common protocol and ports used for connection? i got some good hint from Simon Ellis's article, An AutoUpdate Trick An AutoUpdate Trick[^], but i still can't find where is the download part, any help or guide will be much appreciated, thanks in advance

    M 1 Reply Last reply
    0
    • L loid grey manuel

      Hi, i am working on a simple application that needs to be updated frequently, do you have an an article that discusses how an application downloads the update then install it. Like an anti virus, it downloads the update definitions then install it on its own. lets say its an application that collects updates from a common share-point. lets not focus on the install part, what we want to focus is on the connection and download part.. and what are the common protocol and ports used for connection? i got some good hint from Simon Ellis's article, An AutoUpdate Trick An AutoUpdate Trick[^], but i still can't find where is the download part, any help or guide will be much appreciated, thanks in advance

      M Offline
      M Offline
      Moak
      wrote on last edited by
      #2

      loid grey manuel wrote:

      lets say its an application that collects updates from a common share-point.

      I used a repository with version information, the application checks what needs to be downloaded. After successful download, checksum verification and unpacking the updater checks modification time on a per file basis, to decide which binary really needs to be replaced. If you plan to update multiple files, make sure they will be replaced together (to avoid dependency issues). To my knowledge there is no simple automatic update mechanism on Windows, you probably need an extra executable for: stopping your application, replacing files and restarting you application again (all should be UAC compatible for Vista/Win7).

      loid grey manuel wrote:

      and what are the common protocol and ports used for connection?

      I did all network communication via HTTP, this means repository and downloads are on a web server. Hope it helps. :)

      Chat in Europe :java: Now with 24% more Twitter

      L 1 Reply Last reply
      0
      • M Moak

        loid grey manuel wrote:

        lets say its an application that collects updates from a common share-point.

        I used a repository with version information, the application checks what needs to be downloaded. After successful download, checksum verification and unpacking the updater checks modification time on a per file basis, to decide which binary really needs to be replaced. If you plan to update multiple files, make sure they will be replaced together (to avoid dependency issues). To my knowledge there is no simple automatic update mechanism on Windows, you probably need an extra executable for: stopping your application, replacing files and restarting you application again (all should be UAC compatible for Vista/Win7).

        loid grey manuel wrote:

        and what are the common protocol and ports used for connection?

        I did all network communication via HTTP, this means repository and downloads are on a web server. Hope it helps. :)

        Chat in Europe :java: Now with 24% more Twitter

        L Offline
        L Offline
        loid grey manuel
        wrote on last edited by
        #3

        Yup, it was a good hint for me, I've started reading books regarding your suggestions. since I don't have a personally owned database repository at least yet, and i only use free web hosting sites to store some of my files that i needed to access often. thanks for the headstart, appreciate it. but if you have a sample code or application for me to review the code, it would be easier. thanks again,

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups