This link helps you?
https://wyday.com/wybuild/help/silent-update-windows-service.php
I have a wyBuild update that is designed to update a single DLL. I am starting wyUpdate as a separate process from within the server application A which is a Windows service in order to force a silent update of the DLL by request from a remote client. I need to close both service A, and another service B that actually makes use of the DLL. I have included build update actions to stop service B before the update, and start it afterwards. Adding the same step for service A does not make a difference.Service B closes successfully but the service A itself does not close although I am passing /fromservice parameter and the update fails. If I run without the /fromservice parameter I get a dialog "The following processes need to be closed before updating...." which lists server application A. Any recommendations are greatly appreciated.
This link helps you?
https://wyday.com/wybuild/help/silent-update-windows-service.php
Thank you for your reply. Unfortunately no, as I mentioned I did try /fromservice parameter but the update just fails silently without closing service A.
You need to modify your service such that it respects request to stop it. wyUpdate can tell it to stop, but your service actually has to listen to that request. wyUpdate doesn't kill services abruptly -- it assumes the services will actually do what they're told.
Hi Wyatt,As far as I know service A is configured to be stopped. It responds well to requests like Stop-Service. Can you please provide more detail on how do you recommend to change the service configuration. Thanks
The question is: Is it possible to update a single binary file from a Windows service A that launches the wyUpdate process to update a binary, i.e. DLL file?Historically the service itself is being updated using wyUpdate with /fromservice argument, and that works fine. Thank you very much in advance.
Yes, you're doing it correctly. However, wyUpdate requires all *.exe files in the directory and subdirectories be stopped before the updates can proceed.