[Tutorial] Make a Program Updater!

Posts 1–12 of 12 · Page 1 of 1
[Tutorial] Make a Program Updater!
This is pretty simple code.
This code is better than Ugleh's code, but respect that he thought of it 1st!
Materials:
VB 08 or 10
a web host with FTP (i used freehostia)
(optional) an FTP client (i used core FTP lite)

Procedure:
1. Get a web host.
2. (optional) get a FTP client
3. make a new project in VB.
4. make a text file with the code as:your build #
5. plan a name for the EXE
6. write it down! you will need it!
7. dont forget, PLAN A NAME!!! ITS A DIFFERENCE BETWEEN A SUCCESSFUL UPDATER AND AN UNSUCCESSFUL ONE!
8. Put text file in your debug folder
9. In load section:
Code:
My.Computer.Network.DownloadFile _
    ("http://www.yoursitehere.com/Update.txt", _
    Application.startuppath & "Update.txt")
10. Upload the EXE of your program
11. next...
Code:
if Application.startuppath & "textfilename.txt" >= Application.startuppath & "Update.txt"then
'code here
else
My.Computer.Network.DownloadFile _
    ("http://www.yoursitehere.com/exepath.exe", _
    Application.startuppath & "exepath.exe")
'more code if needed
12. Upload the text file with your build version, if your program was 1.2 and the text is 1.3 then it will update its self.
13. Done!

will add pics and more later!

End Result:
2 exes 2 txt files (also known as text files in this tut)
Going to try it out now and reporting it in a few mins if it's working :P

(It sure will lol)
NO ONE TEST THIS I FOUND AN ERROR!!!
Quote Originally Posted by mnpeepno2 View Post
NO ONE TEST THIS I FOUND AN ERROR!!!
wow just edit your fist post to tell us
Quote Originally Posted by Dreamer View Post
wow just edit your fist post to tell us
Wow, maybe you should stop spamming,

BTW, i did it for a reason you noob.
Quote Originally Posted by mnpeepno2 View Post

BTW, i did it for a reason you noob.
did what for a reason? o_0
There is no reason to code it, Vb.net has the ability to deploy and manifest a .exe with updates.

(decent tut though)

Just make it work......
this is a decent tutorial..

but like NextGen said, VS has that already built it.
Quote Originally Posted by XGelite View Post
this is a decent tutorial..

but like NextGen said, VS has that already built it.
Accomplish as much in as little code as possible, If something doesn't need to be complex , then save the time

Just a philosophy of mine.
Errm didnt Ugleh already post a TUT on this?
Quote Originally Posted by Bombsaway707 View Post
Errm didnt Ugleh already post a TUT on this?

This code is better than Ugleh's code, but respect that he thought of it 1st!
Read his first post :P
so that people who dont read the 1st post read the next one down the list. -_-

Almost done

RIP My 4 GB USB (I got an 8 GB replacement XD)
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us