I've implemented the "/fromservice" update function and this appears to be working from within my service however i've noticed that if the GUI application is running, it just hangs and keeps waiting forever to finish the update. If i manually exit the GUI then my service picks up the latest version and runs the update without a problem.
wyUpdate doesn't wait forever, it just waits for something like 2 minutes before cancelling the update and rolling back to the previous state if any changes were made.
Running the standalone wybuild.exe i noticed that it detects and terminates the service as well as the gui app, however it appears that /fromservice does not do this.
Running wyUpdate.exe by double clicking it you'll see there's a popup dialog if you have any apps open. That is, wyUpdate will give you the option of killing your running processes. In the service mode (i.e. using /fromservice) obviously we can't show a popup dialog to the user.
Any advise would be appreciated, i tried killing the process for my gui app before starting the /fromservice option but that didn't work either, it just left my app in an unstable state with missing .exe files
You have to close all your running processes from the service that calls wyUpdate. Then call wyUpdate.exe /fromservice. (Obviously you should close the service process that launches wyUpdate -- let wyUpdate handle that by using the "stop and start service update actions).
Tell me if this helps.