|
Can't you do something similar to what the uninstaller is doing.
When first started, check the directory you're running in. If it isn't the temp folder, copy yourself to the tempfolder (under a temporary name) and execute that copy and exit the first instance (all this before a GUI is shown)
Alternatively, you could check to see if a certain commandline parameter is added or left to decide to copy yourself to the temp folder.
Now, you can check if the launcher is up to date, and if it needs to be updated, you can just copy it over the old one in the original directory. You then exit and call the new launcher, which will do the above process all over again.
Remco
|