|
-
October 29th, 2007, 05:00 AM
#1
[RESOLVED] Automatic Updates for Program
I'm needing to be able to update my database program with newer versions. The updates would be via a network, not over internet.
I've tried to find an example or tutorial but it doesn't seem to be easy to find.
I would assume that I would need something which does the following:
Main Program checks version with database or ini file on server.
Main Programs calls a secondary exe for updating and closes itself.
Update program downloads new version
Update program checks that no instances of main program are running
Update program overwrites main program exe file.
Update program calls Main program exe and closes itself.
I'm fairly new at programming C# so I'm really sure how to do some of the things like copying a file via the network (but I can figure it out).
What I'm stuck with the is whole checking whether the main program is closed so an error doesn't occur when trying to replace it's exe.
I also don't know if there's something I might be missing.
Can anyone direct me to some tutorials or code examples?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|