User Tag List

Results 1 to 5 of 5

Thread: Updating a program via internet

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Location
    Palm Harbor, Florida
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Updating a program via internet

    I am creating an application that I would like to self-update from the internet every time it is started. However, of course, I only want it to download the updates if neccessary. I would not want it downloading the exact same files that already exist, but only if the files on the server have changed and now differ from the local ones. How can I program the application to check if updating is neccessary before it decides to do so?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Updating a program via internet

    Have your problem download what the current version from a text file on your server... then, if there is a new version, have your program download the update program. You could specify in the text file, that has the current version info, of which url the updater should download from.

    Also, if you want to have it only download what files are changed from the server (one at a time, I take it) you would need to make a list of files to download for every update that you do... so you could make an array that you download like

    fx.dll, 203984
    train.txt, 60923
    vexx.dll, 34245

    where the first thing is the file name and the second is a random number for each update. As often as you would like your program to update, it would need to download the array file. Files that have a changed random number next to them would have to be updated... so say the next time that the program downloads the array this is the array

    fx.dll, 203984
    train.txt, 45673
    vexx.dll, 34245

    in this case, the random number is different for train.txt
    so, the program would download that file again, and then update the home array to reflect the update
    the next time your program downloads the array it is:

    fx.dll, 203984
    train.txt, 45673
    vexx.dll, 34245

    nothing new, so no need to update

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Updating a program via internet

    For SmileyHouse, we use an MD5 checksum instead of a random number. This can be done using Binary Quickload and the Binary object.
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Updating a program via internet

    []This can be done using Binary Quickload and the Binary object. [/]
    or just quickhash ?

  5. #5
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Updating a program via internet

    []or just quickhash ? [/]
    Yeah, QuickHash is good (around 40% faster).
    .:::.Joshtek.:::.

Similar Threads

  1. Updating Beta
    By JoshuaC in forum iOS Export Module Version 2.0
    Replies: 15
    Last Post: 8th March 2013, 02:29 PM
  2. Updating to iOS 5.0 - 5.1?
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 13th November 2012, 11:48 AM
  3. Problem updating !
    By den333 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th March 2010, 11:55 AM
  4. Problem Updating
    By JamieZ in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th May 2008, 11:14 AM

Posting Permissions

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