I´m finishing Actorsprite Maker (http://forum.chaos-project.com/index.php/topic,11413.0.htmlActorsprite Maker) (on Visual C#) and now I´m thinking on a way to update the program. I have 120 resources ready to launch with the first version (I use imagelist/listview to manage with them inside the program), and I want to update those resource online. ClickOnce looks like what I'm looking for, so I want to ask if any of the programmers here have ever use it or at least now if it's suitable for my objetives.
I personally hate ClickOnce, and it is worthless for offline use. It forces the user to download the app everytime it is used.
I usually create an updater something like this.
- Upload a file that simply contains version information
- Have the main app check this version number and compare to local one
- If the online version is higher, it downloads the files.
- If you want to update the actual executable, you will need to launch a separate process. Make sure this app closes the main one you are trying to update. I make the command line args the filepath and PID of the process. You can also just check the running process on the computer to make sure all instances are closed
- Then simply download the file and save it to the path that was passed in the argument.
- Restart the main app from the updater, and there you go.
I´m testing now ClickOnce, but propably I´ll try your recomendation.
thanks ForeverZer0.