Hack Forums
[.NET] [Source-VB.NET] Auto-Update Application Example - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Source-VB.NET] Auto-Update Application Example (/showthread.php?tid=1231432)

Pages: Pages 1 2


[Source-VB.NET] Auto-Update Application Example - idb. - Apr 20, 2011

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



* - Alex™ - Apr 21, 2011

Thanks for making this :)


* - Doctor07 - Apr 21, 2011

Nice tutorial buddy, simple but effective.


* - idb. - Apr 21, 2011

(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)ViolentReality Wrote:  Nice tutorial buddy, simple but effective.

That was the goal! Glad I could help out with this one.


* - Penthos - Feb 10, 2012

Links dead buddy, ^^

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


* - idb. - Feb 10, 2012

(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.


* - Penthos - Feb 10, 2012

(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


* - doudoune66 - Feb 10, 2012

nice , thank you for this example !
I try to understand and adapt ::):)


* - t0ny - Feb 10, 2012

I was just looking for an example, thank you for the source.


* - cracker99 - Apr 10, 2013

Links for download are down... 😟

Can anyone upload it again??
Thank you


* - Saile - Apr 10, 2013

Thanks for sharing man.
This is utterly great.


* - MᴇᴛᴀʟSʟᴜɢ - Apr 10, 2013

Thanks i can use this in future =]!!!


* - Website_Hitincreaser - Apr 10, 2013

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...


* - deiski - Apr 10, 2013

(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. 🤦‍♂🤦‍♂


* - Foursenal - Apr 11, 2013

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.