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 _
("https://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 _
("https://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)