Auto update utility for my Visual Basic program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Djeek
    New Member
    • Feb 2008
    • 8

    Auto update utility for my Visual Basic program

    I try to find out how I can add routines to my vb6 program that will check and download a newer version of my application and overwrite the old one. Cant find it.
    Did anyone this before?
  • !NoItAll
    Contributor
    • May 2006
    • 297

    #2
    I did this with a vb6 project a few years back. If you write it yourself you need to run a secondary program as overwriting an executable that you are running is not possible. You must run the "update" program, then exit. The update program can update the main program and re-execute it once complete.
    One thing you could look into is the InstallShield update service if you use InstallShield.

    Comment

    • Djeek
      New Member
      • Feb 2008
      • 8

      #3
      Indeed, I made a program like you suggested. I'm now fine tuning it. I tried to make it reusable.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        You need to create a separate component for this.

        On the application startup
        1.Check for version of the application and that of the version available in your server.
        2.If a higher version is available then prompt to upgrade.
        3.If the user chooses to go for upgrade. then
        4.close the application
        5.downlaod the new exe and over write the old one with new one.
        6.register all the new components if any.
        7.restart the application.

        Comment

        Working...