Update as service - stop running processAnswered

Hi,

When using the update as service, so the update processes in the background, is there a way that the update would auto stop a running process if it was blocking the update? We have changed the way things work in our application so that in the future stopping the service will stop the processes but for existing old installs we would need a way for the process blocking the update to be stopped?

Cheers, Andy 

No one any ideas on this?

Answer

Actually, it looks like I can use files in the Temporary Folder to execute a script or executable we can make to kill those processes before the update is applied :) 

 

If a process in your application is interfering with the update, you will need to create a code in your application (i.e. in the process that affects it) and tell it to ignore that process.

Likewise, from the wyBuild updater, you can close and open processes, even pass a command and wait for a response.

When I run an update, I run it in the background and from the updater I tell it which processes it should look for and close to ensure a correct update.