Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Source-VB.NET] Auto-Update Application Example

This one is for you Alex™!

This method of auto-updating is EXTREMELY simple (as you can see from the screen shot). I am reading the current version information off of a text file placed on my server. If the applications current version does not match that of the data in the text file, we assume that there is a new update. If it does match, we assume we have the current version already installed. What I think is pretty nifty about this code is that the old version will SELF DELETE after the new version is downloaded and move it into the place of the old version. This is done via batch file. Why you ask? It seemed the fastest way to handle this process that I could think of. I'm sure that it's unconventional to the way everyone else would do it, but hey... it works!

In the source you will find 2 variables named "pathVersion" and "pathDownload". pathVersion is the URL of the text file placed on your server that contains the version of the updated application. pathDownload is the URL of the actual new file you want to download from the server. I have not included an exe for you to upload to your server or a ver.dat, but it should literally take 2 seconds for you to create them.

IMPORTANT Wrote:Before you build the exe to upload to your server, make sure to increment the current version info (1.0.0.0) to something higher (1.0.0.1).

Screen shot:
Screen shot was removed and I'm too lazy to make a new one.

Source Code:
http://www.mediafire.com/?lt3akthl4wh49r8
Need a custom software? Check out my freelance service here! 6+ years and counting, never a complaint :)

STOP STEALING CODE.

FREE NATHAN

People who report posts are lamers.
Thanks for making this :)
Nice tutorial buddy, simple but effective.
(Apr 21, 2011 07:49 AM)Alex™ Wrote:  Thanks for making this :)

You're welcome :) Hope you can learn from it!


(Apr 21, 2011 08:27 AM)Doctor07 Wrote:  Nice tutorial buddy, simple but effective.

That was the goal! Glad I could help out with this one.
Need a custom software? Check out my freelance service here! 6+ years and counting, never a complaint :)

STOP STEALING CODE.

FREE NATHAN

People who report posts are lamers.
Links dead buddy, ^^

Looking forward to seeing how your version is coded compared to mine :P
(Feb 10, 2012 02:19 AM)FizzyMentos Wrote:  Links dead buddy, ^^

Looking forward to seeing how your version is coded compared to mine :P

Updated the download link. Hopefully it doesn't get deleted this time.
Need a custom software? Check out my freelance service here! 6+ years and counting, never a complaint :)

STOP STEALING CODE.

FREE NATHAN

People who report posts are lamers.
(Feb 10, 2012 02:21 AM)idb. Wrote:  Updated the download link. Hopefully it doesn't get deleted this time.

Nice man, thank you for the Awesome Shares of late, just looking at your past thread should suggest to ANYONE that your truly a wicked developer and friend :P

Thanks again Idb :3
nice , thank you for this example !
I try to understand and adapt ::):)
I was just looking for an example, thank you for the source.
Links for download are down... 😟

Can anyone upload it again??
Thank you
Thanks for sharing man.
This is utterly great.
Thanks i can use this in future =]!!!
Invalid or Deleted File.
The key you provided for file download was invalid. This is usually caused because the file is no longer stored on MediaFire. This occurs when the file is removed by the originating user or MediaFire.
Still have questions, or think we've made a mistake? Please contact support for further assistance.

Would of been a good source...
(Apr 10, 2013 03:19 AM)cracker99 Wrote:  Links for download are down... 😟

Can anyone upload it again??
Thank you

Way to grave dig, dumb ass. 🤦‍♂🤦‍♂
Contact the OP rather than bringing an old thread back up.

Easy to make a downloader and make it delete itself even without a batch, but with CMD.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by TennoFeb 3, 2019 04:49 AM 4 307 Feb 3, 2019 04:49 AM
Last Post: Tenno
[C#] by gigajewMar 19, 2018 05:27 PM 9 620 Mar 19, 2018 05:27 PM
Last Post: Aristocles
[Shell] by cogamaMar 16, 2016 07:24 PM 5 125 Mar 16, 2016 07:24 PM
Last Post: Cynoq