PDA

Click to See Complete Forum and Search --> : Best Auto Updater Program


pirate16
May 15th, 2008, 06:48 PM
I was looking for an auto updater program that you can add an update.exe with your program that automatically checks to see what the latest version of the program is. I want it to do that rather then to be a patcher so the user never has to download anything more :D. Is there a free program like this that is free or if not free what programs are out there like this? Also besides the program is there a way to do this through vb itself? I know there is the one click fix stuff but how do u make that work?

Hack
May 16th, 2008, 06:21 AM
VB what? VB6? VB.NET?

Hack
May 16th, 2008, 06:31 AM
Here (http://www.google.com/search?hl=en&q=auto+updater) is what I found on Google.

RhinoBull
May 16th, 2008, 08:28 AM
VB what? VB6? VB.NET?
Good question! :thumb:

Anyway, you can do it yourself and it's ot that difficult.

If you are using VB.Net then lookup the ClickOnce Deployment (http://msdn.microsoft.com/en-us/library/142dbbz4(VS.80).aspx)

If you are using VB6 (or prior) then here is what you need to do:

1. Write small program (AutoUpdate.exe) that all it does is comparing local version (date/time perhaps) to a remote (new executable that is available somewhere on your LAN).
AutoUpdate will always run first - all shortcuts (if any) must point to that exe.
2 If remote file is newer then rename (or delete local file - but renaming is safer) and copy new file to a local drive
3. Lauch your main executable using Shell.
4. If you keep your new version on the FTP server then you will have to use INet control (or related api function) to download most recent version first.
You would then compare old vs new and proceed accordingly.


Good luck.

pirate16
May 16th, 2008, 03:09 PM
I searched on google lol :D, alot good programs but most those are patching type deals :d. Its the latest vb :D Also Rhino thanks for the help i will study up on the clickone deployment :D.

Edit: I am having problems with it lol i dont get how to set it up and i dont want to ruin my program can someone help me set i up?) My im is Removed By Mod

Hack
May 17th, 2008, 05:27 AM
I have edited your post and removed your email/im addresses.

You should never post your email address in an open post on an open forum. Mail spam bots can pick that up and before you know it, your mailbox is full of junk mail. If you wish to share your email/im addresses with other forum members, please do so via our PM system.

In addition, we prefer all answers to questions be publically posted rather than sent via EMail or PM. That way, everyone with a similar problem can benefit.

Thanks. :)

pirate16
May 17th, 2008, 12:01 PM
Alright sorry about that. How would i set this up for my program? I am a beginner at vb and it is very difficult to understand.

zuperman
May 17th, 2008, 12:21 PM
Here (http://www.codeproject.com/KB/vb/autoupdate.aspx)i take the idea to make my own (http://blog.humanhrm.com/?cat=6) autoupdater

pirate16
May 17th, 2008, 07:15 PM
Thanks! I have looked at that code and tried it but don't get how to use it as it comes up with lots of errors for the module!