Here's a smaller version of a live update .. also includes code to change it to a patch, where it downloads it to a folder called Patch under the Apps Main Folder. Another thing it does is close out your App if it is open, then reopen it with the new version ...
File configuration is done in modConfig. Uses Winsock Control.
Also uses an ASP page on the remote server to check the file versions (included).
Rory
PS. I have a Full Live Update in a program i did last year (http://www.bahamassecurity.com/livevue.asp) but i need to strip the code out of that program before i post it ..maybe another time
Right .. it looks for the Main Program Exe in the Main Program Folder ..
eg. C:\Program Files\MyProgram\MyProgram.exe
First that has to exist (hence your error message) .. you can change that in the code ..
Then it goes to the URL specified and runs the script in the ASP Page.
The ASP page checks the File on the Server against the one in the main Program Folder, checks version numbers .. if the one on the Serber is newer it downloads it .. otherwise says no new updates.
I wouild have included the test EXEs but dont think we can here.
'Open a New Project & Compile blank Exe with App Title "My Program Title"
'App title's need to be same if you want it to close and reopen if it was open
'Paste it into a new folder -> C:\Program Files\MyProgram\MyProgram.exe
'This exe will be version 1.0.0 by default since we just created it
'The version of the MyProgram.exe on my server is 1.0.1 for testing
'MyProgram.exe on my server is a blank exe as above with a MsgBox "New"
Na I have XP Home Ed
An my stupid host don't support ASP Well not yet any ways .. http://awardspace.com
There my host very good .. But there still in beta so some misshaps .. http://forum.awardspace.com
The forum .. aas u see lol I am a mod there ..