A process is not the same as a Service (a service is a process but a process is not necessarily a service). It sounds like you have processes running that are not services. Have you tried closing them before you update your app?
Hello everyone,
According to documentation - wyUpdate supports starting and stopping Windows Services by simply going to the "Update Actions" in wyBuild and adding a new action. I followed instructions and - added one service(which is contained in the same folder as targeting process) to be killed before update occurs, but still - it requires - that process to be killed before update. I concluded, that other processes doesn't interact with the update, just the ones running from the same folder as the targeting process, can you give me any suggestion what can I do?? Any help will be acceptable, it's very urgent
Thanks for your attention
A process is not the same as a Service (a service is a process but a process is not necessarily a service). It sounds like you have processes running that are not services. Have you tried closing them before you update your app?
Hello again,
Thanks much for replying my question. Yea that's right I cant kill process by that tool, so I found another wyUpdate tool - Executing files before your update - "When you add files to the temporary folder in wyBuild you will have the ability to execute files either before the update has started and/or after the update has completed: This gives you the ability to run custom scripts and executables, and then wyUpdate removes the files after the update has completed".
So I added .cmd file to temporary folder - that . cmd file kills that process, and I chose as an option to be executed that file before update occurs, but still I came across with the same problem, wyUpdate requires process to be closed before updating ??? so what am i doing wrong???
Thanks again for your attention
It sounds like you're not closing the process. So, close the process. Either close it in your app before you start the update process or close it with a batch file.
@sofimami: I have the same problem, did you find out what was wrong ? The .cmd file I have added to be executed runs but only after wyBuild tries to do the update and my service is not stopped by the .cmd file.
You can execute files before an update, but to do that you need to put the files in the "Temporary folder" in wyBuild. See: Executing files in your update