Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Hawk_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    NGEForums.net
    Posts
    265
    Reputation
    15
    Thanks
    10
    My Mood
    Paranoid

    [VB.NET]Auto Updater [Tutorial]

    I AM STEVE323!
    DO NOT FLAME ME SAYING I LEECHED!
    So you want your program to auto update. Well, here's the easy way I coded

    First, make a new project. I suggest making a project first to test it out THEN adding it in to your program.

    Now, add a WebBrowser. Make it Visible = false.

    Next, add 2 Web Clients. To get a Web Client, first right click on one of your controls/blank space in the GENERAL SECTION(very important!) in the Toolbox and click Choose Items.
    [img]https://j.image*********/0811/chooseitems.png[/img]


    Then, scroll down to the bottom. Scroll up a TINY bit from there and you will see a checkbox marked WebClient.
    [img]https://h.image*********/0453/webclient.png[/img]

    Check it and click OK.

    You should see something like this:
    [img]https://h.image*********/0289/webclientinsection.png[/img]

    Now click on that and drag in to your form 2 (2!) times. DO NOT RENAME THEM!


    Now add two labels.

    Arrange the labels like this:

    Status: Checking for updates...

    and put them anywhere on your form. I prefer the bottom but you can put them anywhere.


    Now, add a button. This button can be anywhere and should say "Download Updates" noquotes. Make Enabled=False.


    Now for the tricky part.

    Double click your form. You should be in the Coding window. You should also be in Form1_Load.

    Copy&paste this in: (exactly!)

    Code:
    WebClient1.DownloadFileAsync(New Uri("https://www.yourftpsite.com/version.txt"), "C:\version.txt")
    What this will do is when you open the program it will download a small text file that has the version of your program. (ex. 1.0.0.0)
    You must get a FTP server - online or offline - to use this correctly. I will use 110mb.com for this tutorial, it's easy to make an account and go into the FTP.

    When you have created your account, go into the FTP. It should look like this on 110mb.

    [img]https://j.image*********/0050/ftp.png[/img]

    Click the small blue arrow. You should be in a site called "110MBPANEL". You've just gotten into the FTP server, good job.

    Now click "New File". You will be presented with a textbox. Type in "version.txt" noquotes and press OK. You will be taken to a large text entry box. However, just type in "1.0.0.0" noquotes for the moment. We will change this later. Now click Save at the bottom and then Back at the bottom.

    Go into the coding window of your project again. Add this code underneath Form1_Load.

    Code:
    Private Sub WebClient1_DownloadFileCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient1.DownloadFileCompleted
    		Dim Read As String = My.Computer.FileSystem.ReadAllText("C:\version.txt")
    		If Not Read = Application.ProductVersion Then
    			'If it reads blank, then the internet connection is faulty.
    			If Read = "" Then
    				MsgBox("ERROR: Please check your internet connection or try later.", MsgBoxStyle.Critical, "ERROR")
    			Else
    				Label2.Text = "Update ready to download!"
    				Button1.Enabled = True
    				Label2.ForeColor = Color.Green
    			End If
    		Else
    			Button1.Enabled = False
    			Button1.Text = "Up to date."
    			Label2.Text = "Up to date."
    			Label2.ForeColor = Color.Green
    
    		End If
    	End Sub

    Add underneath that:


    Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    		MsgBox("Downloading new update!")
    		WebClient2.DownloadFileAsync(New Uri("https://www.yourftpsite.com/link.txt"), "C:\link.txt")
    	End Sub
    Go back into the FTP site again and create a new file, "link.txt" noquotes. Add inside it the DIRECT link to the new updated program. (ex. "www.blahblahblah.com/UpdatedProgram.zip")

    THIS PROGRAM HAS TO BE IN A ZIP FILE!!! HAS TO BE!!!! SO PUT IT IN A ZIP FILE!!!!



    Ok, now add that ZIP file wherever you put the link to. Try and add it in your FTP server on 110MB.


    If it is not in a zip file the webclient will NOT download it. So put it in.

    Now add beneath that code in the Coding Window:

    Code:
    	Private Sub WebClient2_DownloadFileCompleted(ByVal sender As System.Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs) Handles WebClient2.DownloadFileCompleted
    		Dim Link As String = My.Computer.FileSystem.ReadAllText("C:\link.txt")
    MsgBox("Please unzip the application and place in an easily accessible place.")
    		WebBrowser1.Navigate(Link)
    		Button1.Enabled = False
    		Button1.Text = "Update already downloaded."
    		Label2.Text = "Update already downloaded."
    		Label2.ForeColor = Color.Red
    
    	End Sub


    You're done!

    All that you need to do whenever you get an update is modify LINK.txt to the new update.ZIP!!!!!!!!! and modify version.txt to your new version. Also, go into your project properties and change the version whenever you update.



    You're welcome, if anyone needs ANY help with this just post here and it will be fixed by me or someone else. THANKS FOR VIEWING!

  2. The Following User Says Thank You to Hawk_ For This Useful Post:

    aditya5692 (01-13-2015)

  3. #2
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    this looks a bit to much like an updater i had in my old old injector... I updated (to much lag)
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  4. #3
    Hawk_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    NGEForums.net
    Posts
    265
    Reputation
    15
    Thanks
    10
    My Mood
    Paranoid
    you're saying I leeched it from you?

    well you can stop saying it right now xD i made this myself, no tutorials at all, but i looked up New URI on the internet.. i was sucky back then :P

  5. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by Hawk_ View Post
    you're saying I leeched it from you?

    well you can stop saying it right now xD i made this myself, no tutorials at all, but i looked up New URI on the internet.. i was sucky back then :P
    It is partially leeched if not fully. E.g: File Manager Image is the same as of the other tutorial I saw !! Credits Now !

  6. The Following User Says Thank You to Hassan For This Useful Post:

    bbhing987 (11-09-2010)

  7. #5
    bbhing987's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ng
    Posts
    58
    Reputation
    10
    Thanks
    2
    i tried 100mb.com and other ftp sites but those sites need credit cards to make an account.Any other way to skip the payment page?

  8. #6
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Use 000webhos*****m, they have free hosting.

  9. The Following User Says Thank You to Lolland For This Useful Post:

    bbhing987 (11-09-2010)

  10. #7
    bbhing987's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ng
    Posts
    58
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by Lolland View Post
    Use 000webhos*****m, they have free hosting.
    thanks for the fast reply.
    but
    after i sign up on the website, i need to wait for 24hrs for them to activate my account?ty

  11. #8
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    It might take some time to activate your account, but they have good servers and they're decently fast.

  12. The Following User Says Thank You to Lolland For This Useful Post:

    bbhing987 (11-09-2010)

  13. #9
    bbhing987's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ng
    Posts
    58
    Reputation
    10
    Thanks
    2
    Quote Originally Posted by Lolland View Post
    It might take some time to activate your account, but they have good servers and they're decently fast.
    oh thanks for the help!loland
    thanks!

  14. #10
    Hawk_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    NGEForums.net
    Posts
    265
    Reputation
    15
    Thanks
    10
    My Mood
    Paranoid
    And, 110mb doesnt use credit cards :S
    And i didnt leech this, if i did leech some of it (looking up code strings on google) i have no idea where. xD this was about 2 years ago.

  15. #11
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Hmmm, did my tutorial section rule go out the window?

    Also, Stop flaming each other, glad to see the section "Picking up" even though it's do to the contest, (for the most part) however, why does every thread have someone calling another a "fag" or "noob" or "leecher" or something or another.

    Sheesh, if you want to question somebody about leeching, do it via PM, Report them, keep it out of this section, gone for a few weeks......and already...


     


     


     



    The Most complete application MPGH will ever offer - 68%




  16. The Following User Says Thank You to NextGen1 For This Useful Post:

    qwerty01 (11-12-2010)

  17. #12
    .Celtics's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    5
    My Mood
    Crappy
    Opps opps opps

    Seen this guide before, and i still have the link.

    Credz credz credz

  18. #13
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by .Celtics View Post
    Opps opps opps

    Seen this guide before, and i still have the link.

    Credz credz credz
    Read the first post? Big bolded letters? Doesn't get more obvious.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  19. #14
    Hawk_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    NGEForums.net
    Posts
    265
    Reputation
    15
    Thanks
    10
    My Mood
    Paranoid
    AND, the image i took myself. I posted this on 3 websites or 4 i forget under xFalcon, steve323, etc..

  20. #15
    .Celtics's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    148
    Reputation
    10
    Thanks
    5
    My Mood
    Crappy
    xFalcon leeched that tut from GodHack2's thread!

    Orig thread :https://www.mpgh.net/forum/33-visual-...o-updater.html

    close cuz its an auto updater


    Post that xFalcon leeched : https://www.mpgh.net/forum/33-visual-...ml#post2437592

    You even said it Jason, that it was leeched, check the post below in that link

    EDIT:
    You didnt make the pictures, all c/p



    Last edited by .Celtics; 11-11-2010 at 05:03 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. Auto-Updating Addresses
    By OneWhoSighs in forum Game Hacking Tutorials
    Replies: 4
    Last Post: 04-29-2013, 06:10 AM
  2. [TUTORIALS] How to auto-update addresses even after patches
    By J in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 19
    Last Post: 09-23-2010, 06:28 AM
  3. [Tutorial] Auto Updater[Reopen]
    By NOOB in forum Visual Basic Programming
    Replies: 2
    Last Post: 04-10-2010, 10:06 PM
  4. Auto-update adress D3D
    By LinkIII in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 11-05-2008, 03:24 AM
  5. [Please Help] Auto-Updating
    By twistedswift in forum Hack Requests
    Replies: 0
    Last Post: 08-01-2008, 10:59 AM