Application deleted while running

Hi

I have an application that is supposed to run all the time on macOS and is protected to be deleted from Finder. However, if I add to dock the application folder (from Finder) it is possible to drag the application to the trash and delete it even if it is running. Is there a way to inhibit this behaviour and make sure the application cannot be deleted by the user ?

thank you

Bogdan

Application deleted while running
 
 
Q