Easy Application Updater that requires less code!

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
6 posts Page 1 of 1
Contributors
User avatar
Proprogrammer
VIP - Donator
VIP - Donator
Posts: 415
Joined: Sun Oct 03, 2010 11:14 pm

This is so easy a noob can do it!

JUST COPY AND PASTE TO A ACTION SUCH AS AS BUTTON1 CLICK OR ANY THING ELSE!
Code: Select all
Dim SaveWhere As String = Environment.GetFolderPath(Environment.SpecialFolder.System) & "\File.exe"
        If IO.File.Exists(SaveWhere) = True Then
            IO.File.Delete(SaveWhere)
            My.Computer.Network.DownloadFile("http://www.yoururl.com/server.exe", SaveWhere)
            Process.Start(SaveWhere)
        Else
            My.Computer.Network.DownloadFile("http://www.yoururl.com/server.exe", SaveWhere)
            Process.Start(SaveWhere)
        End If

you just need to setup a site to where you can download the file and overwite the current program!
Have FUN!
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Nice!!!
User avatar
tedhead2
Excellent Poster
Excellent Poster
Posts: 338
Joined: Sun Jan 03, 2010 8:36 am

EDIT: Nvm... i read your code again.
Image
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

it isn't a real updater its more like a "patch" cuz its just deleting the old file and replacing it

this is the first updater ive ever seen :
http://wyday.com/wyupdate/
http://vagex.com/?ref=25000
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

how could you change it to have a program delete a seperate program like 1 program patches another
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

You could run the updater and have it wait until the process has finished.
6 posts Page 1 of 1
Return to “Tutorials”