How to automatically update software?
Ive used several programs in the past that automatically check for an update at runtime, I was wondering how I could do this? It would definitely save me lots of time with support emails If I didn't have to send updates anymore!
Thanks in advance. :)
1 Attachment(s)
Re: How to automatically update software?
I would suggest storing a text file on your web server with current version info, and latest download URL.
ie:
Code:
Current version: 1.0.2
Download URL: http://www.MyWebServer.com/download/setup.exe
You could use the Inet control to retrieve that info, or the attached code which reads it without using any controls.
You can also retrieve the current version of your app like this:
Code:
MsgBox App.Major & "." & App.Minor & "." & App.Revision
Then compare it to the one stored in the remote text file.
As for downloading the setup file, I would personally use the Winsock API, or Winsock control, but you could also use the Inet control or something else.
There's some code in the codebank for program updating that you should probably look at.
Re: How to automatically update software?