Hello all,
I'm trying to figure out how to do this... This is what I've come up with:
- Check for a new version on the net
- If there is a newer version of the executable (or any component), download it
- replace the needed files
Now it's the last part that's being kinda hard... How do I replace for example the executable? (AFAIK it's locked) I found some things, like renaming the file but that wouldn't always work and sometimes involve a reboot, wich I want to avoid. To avoid replacing locked files, I could use a launcher program:
- Launcher updates the main program, then executes it
- Main program updates the launcher
That seems ok to me, BUT I need to be sure that the main program can only be launched by the launcher. How do I do such a thing? Any tips? Thanks in advance,
David Jennes