No announcement yet.


  • Filter
  • Time
  • Show
Clear All
new posts

  • Question...

    Hey there,

    I'm trying to figure out the best way for an auto-update function. When the user clicks on the "CD-ROM button I want it to:

    1) Check connection
    2) Go to my site and check for new update ( If file exists, or download .txt file and insert info into variable?)
    3) Download the correct file only if there is a new update available (from info gathered from new file name or variable?)
    4) Start install of application.

    It seems like there could be a lot of ways to do this, but I'm looking for the most solid way. It would be ideal if it didn't need to download anything to determine version info. That it would only download the correct version if a newer one was available. Let me know if you all have any ideas...




  • #2
    Re: Question...

    Well, at the risk of repeating the advert - amp;page=0&view=collapsed&sb=5&o=0&amp ;fpart=
    It would seem that TrueUpdate was made for you ...

    Haven't used it myself (except to update) but I'm sure those who have will comment here ..


    • #3
      Re: Question...

      Couple suggestions:

      For #2: yeah, use a text file. This text file will always have the same name, and be hosted at the same place. Your AutoPlay app will download this file to find out what the most recent version is, and where it can be downloaded from. Put the version on the first line, so you can compare that to the current version. (Probably easiest to just use a #version# design-time constant and change that every time you build the application. Or, if the AutoPlay application isn't changing each time, and you're updating some other file, just store the current version in the Registry somewhere. Or, if the file is an executable with version resource info, get the version of the file and use that in the comparison.) Put the URL of the file to download on the second line.

      The rest should be fairly obvious. [img]/ubbthreads/images/icons/smile.gif[/img]
      --[[ Indigo Rose Software Developer ]]