Results 1 to 12 of 12
  1. #1
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81

    [Tutorial] Make a Program Updater!

    This is pretty simple code.
    This code is better than Ugleh's code, but respect that he thought of it 1st!
    Materials:
    VB 08 or 10
    a web host with FTP (i used freehostia)
    (optional) an FTP client (i used core FTP lite)

    Procedure:
    1. Get a web host.
    2. (optional) get a FTP client
    3. make a new project in VB.
    4. make a text file with the code as:your build #
    5. plan a name for the EXE
    6. write it down! you will need it!
    7. dont forget, PLAN A NAME!!! ITS A DIFFERENCE BETWEEN A SUCCESSFUL UPDATER AND AN UNSUCCESSFUL ONE!
    8. Put text file in your debug folder
    9. In load section:
    Code:
    My.Computer.Network.DownloadFile _
        ("https://www.yoursitehere.com/Update.txt", _
        Application.startuppath & "Update.txt")
    10. Upload the EXE of your program
    11. next...
    Code:
    if Application.startuppath & "textfilename.txt" >= Application.startuppath & "Update.txt"then
    'code here
    else
    My.Computer.Network.DownloadFile _
        ("https://www.yoursitehere.com/exepath.exe", _
        Application.startuppath & "exepath.exe")
    'more code if needed
    12. Upload the text file with your build version, if your program was 1.2 and the text is 1.3 then it will update its self.
    13. Done!

    will add pics and more later!

    End Result:
    2 exes 2 txt files (also known as text files in this tut)
    Last edited by mnpeepno2; 01-26-2010 at 01:12 AM.


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



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

    Samueldo (03-18-2010)

  3. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Going to try it out now and reporting it in a few mins if it's working :P

    (It sure will lol)

  4. #3
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    NO ONE TEST THIS I FOUND AN ERROR!!!


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  5. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    There is no reason to code it, Vb.net has the ability to deploy and manifest a .exe with updates.

    (decent tut though)

    Just make it work......
    Last edited by NextGen1; 01-26-2010 at 12:27 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  6. #5
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    this is a decent tutorial..

    but like NextGen said, VS has that already built it.

  7. The Following User Says Thank You to XGelite For This Useful Post:

    NextGen1 (01-26-2010)

  8. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Quote Originally Posted by XGelite View Post
    this is a decent tutorial..

    but like NextGen said, VS has that already built it.
    Accomplish as much in as little code as possible, If something doesn't need to be complex , then save the time

    Just a philosophy of mine.


     


     


     



    The Most complete application MPGH will ever offer - 68%




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

    Lolland (01-26-2010)

  10. #7
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Errm didnt Ugleh already post a TUT on this?

  11. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Quote Originally Posted by bombsaway707 View Post
    Errm didnt Ugleh already post a TUT on this?

    This code is better than Ugleh's code, but respect that he thought of it 1st!
    Read his first post :P

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

    mnpeepno2 (01-26-2010)

  13. #9
    Dreamer's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Seattle
    Posts
    8,745
    Reputation
    393
    Thanks
    1,481
    My Mood
    Bitchy
    Quote Originally Posted by mnpeepno2 View Post
    NO ONE TEST THIS I FOUND AN ERROR!!!
    wow just edit your fist post to tell us
    Resource Team: Feb/5/2012 - May/5/2012
    Middleman: April/25/2012 - September/16/12


  14. #10
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    Quote Originally Posted by killer66143 View Post
    wow just edit your fist post to tell us
    Wow, maybe you should stop spamming,

    BTW, i did it for a reason you noob.


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



  15. #11
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by mnpeepno2 View Post

    BTW, i did it for a reason you noob.
    did what for a reason? o_0

  16. #12
    mnpeepno2's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    In a barren wasteland
    Posts
    905
    Reputation
    10
    Thanks
    81
    so that people who dont read the 1st post read the next one down the list. -_-

    Almost done

    RIP My 4 GB USB (I got an 8 GB replacement XD)


    -----------------------------------------------

    My site: here
    My Blog: here
    My member's area: here
    Minecraft Sever Forum: here


    Minecraft Servers:

    Public:



    Private:



Similar Threads

  1. Should I make tutorials on making basic programs?
    By Pixie in forum Visual Basic Programming
    Replies: 14
    Last Post: 09-27-2009, 02:04 PM
  2. Video tutorial: Making WarRock hack in Visual Basic
    By Darky in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-12-2009, 02:47 PM
  3. [Video tutorial] Make your own css cheats
    By seren1ty in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 09-15-2007, 04:11 PM
  4. [Tutorial] Lottery Winning Program!
    By Grim09 in forum Visual Basic Programming
    Replies: 7
    Last Post: 07-03-2007, 10:54 AM
  5. [Tutorial] Your first program
    By akimoko in forum C++/C Programming
    Replies: 10
    Last Post: 06-23-2007, 12:58 PM