Uninstall code check:

I want a code to verify the program. If it is open (my setup app), the uninstall process stops and the window closes. If it is closed, the uninstall is complete.

I saw this code, but when deleting a message appears, when ignoring, the deletion is complete and does not achieve the desired:-