can't stop servicesAnswered

With the old update process we stopped several windows services with wyUpdate. Now we have the problem that the services are not stopped triggered with wyUpdater. To solve the problem we remove the actions from the wyBuild, but the wyUpdater try to also stop the services. It likes that the actions are cached. How to solve such problem?

PS: the wyClient and wyUpdate are located on “C:\Program Files\<SoftwareName>”

WyUpate try to kill all running processes of the same directory and all subdirectory?

Answer

WyUpate try to kill all running processes of the same directory and all subdirectory?

Yes.

Thanks for the quick answer. If i don't want to kill any running processes i should remove the .exe from all versions in WyBuild to let wyUpdate not touch them, right?

If it's in the subdirectory, and the process is running, it doesn't matter if it's being updated, it needs to be stopped before the update can complete.

Our problem is that the services are started with nssm, it's not clear stopped with wyUpdate. Our client don't have monitor, we make silent update for the customer. that means we can't click stop processes on the window. 

We don't use incremental update now and make update always with setup, the running processes are killed with the setup. Can i remove all files under program's folder in WyBuild? If i do that, whether wyUpdate don't touch the running processes anymore?

Another way is maybe start scripts to end the running processes before update. If i add script in Temp, it and set it to run before update, it will run before the close process of wyUpdate?

Either use real services (and use the built-in wyBuild methods to stop / start services), or use scripts to stop the fake-services. Either way, they need to be stopped.