.NET AutoUpdater Library

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    gooby pls Phant0m is offline
    MemberRank
    Mar 2008 Join Date
    ArgentinaLocation
    1,498Posts

    Re: .NET AutoUpdater Library

    Quote Originally Posted by Solaire View Post
    It reads a remote file (UpdateList.ini) and compares line 1 to a local file (local.ver). I'm assuming that line contains a revision number.
    What he said.

    Code is messy tho and I havn't had any time to clean it and post it here, sorry.

  2. #17
    • ♠️​ ♦️ ♣️ ​♥️ • שเ๒єtгเ๒є is offline
    MemberRank
    Mar 2012 Join Date
    917Posts

    Re: .NET AutoUpdater Library

    Quote Originally Posted by Phant0m View Post
    What he said.

    Code is messy tho and I havn't had any time to clean it and post it here, sorry.
    Perhaps it's a four liner when you take the fixed C# FtpClient class. :P

    1. Download File 2
    2. Open File 1
    3. Open File 2
    4. Compare File 1 Content & File 2 Content

    ^^

  3. #18
    Apprentice TheDanishGuy is offline
    MemberRank
    Oct 2012 Join Date
    6Posts

    Re: .NET AutoUpdater Library

    Got a bit tired of waiting so I decompiled it myself. Here's the source I got out of it.

    https://mega.co.nz/#!4RFFVAqT!EDcbll...lw9yy072u5m7zs

    No idea if it actually compiles yet.

  4. #19
    Markie Mark onecore is offline
    MemberRank
    Dec 2011 Join Date
    /usr/bin/gccLocation
    553Posts

    Re: .NET AutoUpdater Library

    #in Python Auto Updater ;)
    #compile it to exe so you could use it :P

    import urllib as hi

    #getwebVersion
    webversion = hi.urlopen('http://www.site.com/text.txt')
    # '1.2' inside the text.txt
    readWeb = webversion.read()
    evalweb = eval(str(readWeb))
    #getmyversion
    getmyVersion = open('myversion.txt', 'r+)
    # '1.1' ibside the myversion.txt
    readmyVersion = getmyVersion.read()
    evalmyversion = eval(str(readmyVersion))

    compare = float(evalweb) > float(evalmyversion)

    if compare == True:
    try:
    get = hi.urlopen('www.site.com/file')
    get.retrieve()
    except:
    print "ooops"
    finally:
    print "finished"

    else:
    pass




    Sent from iPhone via Tapatalk



Page 2 of 2 FirstFirst 12

Advertisement