Auto Update My Application...
-
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
-
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
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. :)
-
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. :)
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,