Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 155 Vote(s) - 3.38 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Update Checker [VB.NET]

#1
This tutorial is created to show you how to make an auto-update checker in Visual Basic.NET.

Right, how this works is by checking a website for a certain string, and if it contains that string, then it'll continue, but if it's something different, it'll open up a link to the new version. Let's get started!

All you have to do is make a few changes to the following code and put it in your Form1_Load:

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.



Have your text document/html documents or anything as plain text with the text "1.0" (without quotation marks) and whenever you have an update out, just change your document to "2.0" (without quotation marks) and it'll automatically display the message box and open a link to your program. Make sure you have the link of what the program is going to be already in the program when you release it, or this'll be pointless.

Enjoy!
Reply

#2
Just cleaned up the codea little bit.
Reply

#3
To make it even better, you could check it against the programs current version and say if the txt version is less than my version, go for it.
And instead of doing Process.Start, you could have a WebClient DownloadFileASync, then when it's done, execute it, and closed the outdated version.

Nevertheless, nice post. Could see this in future VB.net apps.
Reply

#4
Example of post above, without DownloadFileAsync

Hidden Content
You must

[To see links please register here]

or

[To see links please register here]

to view this content.

Reply

#5
This is meant to be done asynchronously. And there's no need for the process class here, you should be downloading that file without depending on the default browser. You can download and save the data using the webrequest streams instead.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through