Adblock breaks this site

[COVEY] Updating Client

Discussion in 'Programming General' started by dgameman1, Mar 25, 2008.

  1. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    True.
     
  2. 0h n035

    0h n035 Active Member

    Joined:
    Feb 1, 2007
    Posts:
    163
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Why? Is there a better way? Or is it just the misunderstandings, etc?
     
  3. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    [COVEY] Updating Client

  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    [COVEY] Updating Client

    I'm not sure if it's possible in VB6, but an easy way to update the GUI could be to place all program information in a .xml file (contols, where they are, what they do etc) or other format, initialize and create everything at startup and use a script parser to tell which button what to do. Then to update the GUI, rather than updating the core files unless you need to, you could just download the .xml file.

    Same goes for anything else really. Create a separate file with the info, then just make your own code to parse it.

    Sorry if I sound like I have no clue, I'm way too tired.
     
  5. Terrankiller

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1
    [COVEY] Updating Client

    Do what I did with anything RS related. Quit.
     
  6. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    [COVEY] Updating Client

    An updater doesn't have to be runescape related.

    Although this one probably is :p
     
  7. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Ohhh k im starting to get it now.. So it when i open the client is checks its version against what number it says in the .txt named version. And if it needs updateing, the client closes itself and opens the other .exe called updater and the updater uses the inet to go on the website that has the new version and downloads the new stuff?
     
  8. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    [COVEY] Updating Client

    Yea pretty much.
     
  9. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

    Joined:
    Feb 25, 2007
    Posts:
    536
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    ^ rofl...
     
  10. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    care to explain in more depth?
     
  11. Stuart

    Stuart Guru
    Banned

    Joined:
    May 5, 2005
    Posts:
    1,580
    Referrals:
    2
    Sythe Gold:
    10
    [COVEY] Updating Client

    1) You open your client.
    2) Before doing anything make it load a txt file on your website with a version number in it and have it check the version variable in your client.
    3) If it is out of date it will open up the updater tool and close down the client meaning it can now be edited.
    4) The updater will download the latest client if possible otherwise it will show the error.
    5) After it has updated it will show a button which when clicked will run the updated client executable and close the updater program.
    6) Your program has been updated and should run normally.
     
  12. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    [COVEY] Updating Client

    This works quite effectively except it leaves no way to update the updater besides having the user download a new one manually as you probably wouldn't want to make an updater to an updater. :p
     
  13. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [COVEY] Updating Client

    or have the updater built into the program...
     
  14. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Why would i want to update an updater unless the only way for people to get the update is by me updating the updater to have more stuff in it which people can download?
     
  15. LeetScape

    LeetScape Active Member

    Joined:
    May 27, 2007
    Posts:
    126
    Referrals:
    0
    Sythe Gold:
    1
    [COVEY] Updating Client

    All I do in my Client is check a .txt file that's on the net, if it's < than the version you're using then you must download, you can't use an old version.

    If you're using a => equal or higher (BETA?) then display an open button or automatically open the Client.
     
  16. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    [COVEY] Updating Client

    That's just like saying "Why update Windows? It works properly!". Use your brain before you post questions.

    Lets see, faulty updates, unstable program, corrupt downloads etc.

    To update the updater, just use the client program itself to download and install updater updates.
     
  17. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Wait so like lets say i make a moonfruit site soo lets say my site will be named

    Dgameman1.moonfruit.com

    And on that site i make a txt document and if it ""if it's < than the version you're using then you must download, you can't use an old version.

    If you're using a => equal or higher (BETA?) then display an open button or automatically open the Client.""

    Now the question is how do i make a .txt on a site?
     
  18. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    [COVEY] Updating Client

    1) create the text file.
    2) upload it via FTP or otherwise.

    Stupidest question yet, serious props to you.
     
  19. dgameman1

    dgameman1 Active Member
    Banned

    Joined:
    May 25, 2006
    Posts:
    122
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Thank you. xD
     
< Need Example. | Little help on wlds plox :D >


 
 
Adblock breaks this site