Adblock breaks this site

[COVEY] Updating Client

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

  1. dgameman1

    dgameman1 Active Member
    Banned

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

    This topic is for covey but if anyone else knows, feel free to answer. Ok you know how when theirs an update for Elite switch, eliteswitch checks for updates and then you can choose to update it if you want. Lets say I have 3 things on my client. Then later after a while, I add 1 more thing, so now their is 4 things on my client. How do I make it so that other people who have downloaded my client can update it without downloading a whole other version of my client.
     
  2. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Covey's takes and checks verses an online page to see if it is older, then closes the client. After it closes it redownloads what it needs to download. Essentially "reinstalling", but only adding what needs to be added instead of everything.
     
  3. dgameman1

    dgameman1 Active Member
    Banned

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

    Hehh? Now in basic english? And is it easy to do by a noobs standards?
     
  4. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    It is fairly easy. All you need to do is basically download the files you need and then replace the exe and register the components if needed.
     
  5. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

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

    In otherwords, he gets eliteswitch to check the online page??
    and even if there is an update jd, it doesnt entire close eliteswich, it then downloads it and then runs the installer??

    Lol, i am as lost as you are :eek:
     
  6. dgameman1

    dgameman1 Active Member
    Banned

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

  7. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Hmm, well I haven't really messed with eliteswitch in awhile, but when covey had me test his lite version he had it check online for the version number. Then it downloaded the new exe and replaced it. Also the downloader and eliteswitch were 2 separate exe's so he could easily close and replace eliteswitch without closing the installer. But in the full version of eliteswitch I am pretty sure it closes eliteswitch. Downloads the installer and runs it.
     
  8. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

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

    Alright... now i am assuming its one exe, lol i havnt noticed another one when browsing the folder recently...
    Eliteswich Lite version? Lol, that must have been a little while back :p
     
  9. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Nah lite was a version covey was/is working on that is a "legit" version that only uses the built in vb ocxs and dlls.
     
  10. dgameman1

    dgameman1 Active Member
    Banned

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

    ME=CONFUSED,, wanna explain what to do?
     
  11. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Step 1: Check a page online for the newest version verses your version
    Step 2: If your version is old, download the installer for the new version
    Step 3: Run the installer, then close the client.
     
  12. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

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

    A kk

    Ok dgameman, your gonna end up using an inet control for this i am assuming..
    So goto your components in vb and look for Microsoft Internet Transfer Control and tick that...
    I dont work with inet so you might have to get jd to help you with that!
     
  13. dgameman1

    dgameman1 Active Member
    Banned

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

    How do i make it so that it downloads the installer for a new version
     
  14. demonavenger

    demonavenger Forum Addict
    $5 USD Donor

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

    He doesnt have the slightest clue in coding jd :p
     
  15. dgameman1

    dgameman1 Active Member
    Banned

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

    Lol I know about the Inet, I've made some REALLY REALLY stupid stuff on vb6 but ya I know about Inet, dunno what it does though lol me=stupid
     
  16. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [COVEY] Updating Client

    Pretty much inet is a control based off the winsock library that gets a webpage source for you. Inet can also be used to download stuff off of the internet. You can use inet to add a progress bar to your download, but you can also use the API UrlDownloadtoFile to download the file to a specific location, but there is no progress bar.
     
  17. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

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

    Use an inet control, grab the version number from your website (either php or txt file)
    Compare it with the current version of the program (app.major, app.minor, [app.revision])
    If it needs to be updated, download the file.


    Covey uses the installer from "click team". you can get a free copy from there or get a pirated one. There are better ones out there, but that one does the job rather well.



    To check multiple files, just use the above method. I'm sure you have the smarts on how to modify it for multiple files.
     
  18. dgameman1

    dgameman1 Active Member
    Banned

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

    Oh cool k thanks i get it now, ill use it when and if i finish my client
     
  19. 0h n035

    0h n035 Active Member

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

    Here's what I do:

    You know how you get your client to see how many people are on RS by browsing the RS page? Do the same. Have a page with it saying 'Version Number: 1.1.2' Or whatever.

    On Form Load get it to change Label.Text to the number it grabs after 'Version Number'

    Have it so that if Label.text's text is 1.1.2, it runs normally, but if it's 1.1.3, it gets it to close down, download the install file and run it.

    You'd obviously have to change the text on the page where your client grabs each time it updates.
     
  20. 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

    This thead is amusing.
     
< Need Example. | Little help on wlds plox :D >


 
 
Adblock breaks this site