Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

.NET AutoUpdater Library

Joined
Mar 22, 2008
Messages
830
Reaction score
158
Hello, i've written an AutoUpdater library in C#.
This is for anyone with a custom made .NET Launcher for their game that wants to include an autoupdate function.

Usage:
PHP:
            using DiffUpdater;
            //Leave "user" and "pw" empty if http is used, otherwise specify login information.
            if (UpdateProgress.needUpdate("ftp://109.169.72.xxx", "user", "pw"))
            {
                Form Updater = new UpdateProgress();
                Updater.ShowDialog();
            }
            else
            {
                InitializeComponent();
            }

Files Attached View attachment Release.rar (UPDATED 7/16/2013@5:53 PM)
For the paranoids:

Report any bugs here, so I can work them out.
Note: Code is really messy, sorry. Will fix later...
 

Attachments

You must be registered for see attachments list
Last edited:
Experienced Elementalist
Joined
Apr 7, 2005
Messages
242
Reaction score
58
Would be better if writing in pascal obj , it's faster a lot !
p/s:
you should build client / server to get authentication , to prevent user from free downloading , user other port , just use IIS open http and change its port
 
Joined
Apr 28, 2005
Messages
6,953
Reaction score
2,420
You have clearly not downloaded the Release folder i attached...
There is an Update Manager named "UpdateManager.exe", from there you can upload to FTP or manually upload elsewhere.
Actually I did download it, but I'm not running a random EXE file from someone who can't even document their code correctly.

Not to mention you provided nearly no instruction on how to actually use this, but thats beside the point...
 
Joined
Mar 22, 2008
Messages
830
Reaction score
158
Actually I did download it, but I'm not running a random EXE file from someone who can't even document their code correctly.

Not to mention you provided nearly no instruction on how to actually use this, but thats beside the point...
Well then, did you not the the Manager?
FYI, there is something called VirusTotal and there is nothig more to document I think. Just needUpdate() and call new Form...

Would be better if writing in pascal obj , it's faster a lot !
p/s:
you should build client / server to get authentication , to prevent user from free downloading , user other port , just use IIS open http and change its port

I can code C# and that's about it.
I will probably add some more features, such as the ones you mentioned, in the future. Thanks!
 
Experienced Elementalist
Joined
Apr 7, 2005
Messages
242
Reaction score
58
I can code C# and that's about it.
I will probably add some more features, such as the ones you mentioned, in the future. Thanks!

well , C# and Pascal obj / Delphi are not different much , i think you should try Delphi ... i really hate
{
//... code
}
 
Newbie Spellweaver
Joined
Oct 16, 2012
Messages
6
Reaction score
0
Is there any chance that you could publish the source code for the library?
 
Praise the Sun!
Loyal Member
Joined
Dec 4, 2007
Messages
2,502
Reaction score
986
How is the exact condition UpdateProgress.needUpdate() returns true, is it game specific or what? It was in any game section before I guess, now it's here in coders paradise.

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.
 
Newbie Spellweaver
Joined
Oct 16, 2012
Messages
6
Reaction score
0
Got a bit tired of waiting so I decompiled it myself. Here's the source I got out of it.



No idea if it actually compiles yet.
 
Joined
Dec 14, 2011
Messages
515
Reaction score
126
#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
 
Back
Top