Hey Shlomi,
Im "helping" the process to close the windows service. This means that when the CloseAppNow is called, inside the callback I call the ServiceBase.Stop() function.
If you handle the CloseAppNow event (that is, you have an event attached) then you must also handle the closing of your service. Otherwise the AutomaticUpdater handle this by calling Environment.Exit(0);
My only other option was to kill the process myself in the OnStop() function of the Service.Only after that the update succeeds.
Yes, wyUpdate requires your apps to be closed before proceeding with the update. When wyUpdate is installing from a service (i.e. no user interface) then wyUpdate waits a fixed amount of time (less than a minute) for apps to close themselves. If they don't close then wyUpdate aborts and rollsback the update.
1. Are you aware of these problems?
These aren't really problems. You have to handle them, yes, but they're specific to your app. Perhaps we should make this clearer in our help articles.
2. Were the solutions I proposed valid? (meaning do they agree with the valid flow of the AutomaticUpdater program)
They look valid to me.