Results 1 to 2 of 2

Thread: Simple update checker framework

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2008
    Location
    Between the keyboard and the chair.
    Posts
    122

    Simple update checker framework

    Here, I have designed a simple update checker framework using a few APIs, specifically InternetOpenURL to download the versions textfile to the users computer, then search the file for the needed information, using the GetPrivateProfileString API.

    The versioning scheme used here is <MajorVersion>.<MinorVersion>.<BugfixVersion>, but this could be changed to suit your needs, for instance those who use compile dates as your versions, 2008.09.26 should work fine, or you could edit the class to remove BugFixVersion, and have for instance v1.02, etc.

    I have commented in some areas, but the code is fairly straight forward, and should be easy to understand. The current setup has the program at version 1.0.0, and the file checks http://iamentity.10gbfreehost.com/versions.txt (my free webserver) which states the 'newest' version is 2.1.0.


    Notes: one possible error could be if the file exists when its downloaded, and the file is locked (marked as in use). Even though I have added an error handler, using On Error Goto... this error still crashes the program.
    Also, this will not work for trying to reference a file on the local computer directly, ie "C:\versions.txt".
    Finally, the filename versions.txt is hardcoded, and shouldn't need changing, but feel free to do so. I don't forsee the need to expose this as a variable.
    Attached Files Attached Files
    If I have helped you out, be a pal and rate the helpful post!

    My CodeBank Submissions:
    Convert Color Values Between Long, RGB and Hex. Updated Sept 25th!
    Update Checker FrameWork

    My WIP Projects:
    Winsock Chat Server/Client Updated Oct 5th!

    Useful Tools:
    Aivosto.com MZ-Tools SysInternals Suite

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Aug 2008
    Location
    Between the keyboard and the chair.
    Posts
    122

    Re: Simple update checker framework

    If anyone has any ideas on the error, or general requests/alterations, please do not hesitate to post! I'm surprised there has only been one download thus far.
    If I have helped you out, be a pal and rate the helpful post!

    My CodeBank Submissions:
    Convert Color Values Between Long, RGB and Hex. Updated Sept 25th!
    Update Checker FrameWork

    My WIP Projects:
    Winsock Chat Server/Client Updated Oct 5th!

    Useful Tools:
    Aivosto.com MZ-Tools SysInternals Suite

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width