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?
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.
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