I have created a launcher application using NSIS, which first checks for updates of the program on a network share and launches the program if no updates are found. If they are found then it updates the local system before proceding. Every so often I have an update for the launcher itself but it cannot update itself while it is still running. Therefore I use this code to update it. But it only works after the computer is restarted.
MessageBox MB_OK "$\"Launch.exe$\" Update Found: $LocalVer to $ServerVer"
GetTempFileName "$0" "$Local"
CopyFiles /Silent "$Server\Launch.exe" "$0"
Rename /RebootOK "$0" "$Local\Launch.exe"
Is there a way to update the launcher program and get it to automatically startup after the update is finnished and continue with the execution without the need to restart the computer.
Vytautas