I'm looking for a way to have my program be able to upgrade itself! Using D4, I want to have my program check my website for a newer version of itself, download the newer version, and then terminate itself, start the upgrade process, and start itself over as the newer version!
Now... I can already do the "check the website and download the newer version" stuff, and I can figure out how to do the second part (unzipping the upgrade, installing and running the new version), say via a batch file. The second process, especially if it's a batch file as I'm envisioning, can easily start the "new" program over again, but I need to know HOW to do that all-important first step!
HOW do I tell my program to stop THEN tell it to run the batch file (seems very counter-intuitive...)???
Any and all help appreciated!