I want to have it so that when the user uninstalls my program, the program, if it's running, is closed.
I already have a custom uninstaller override and the original program has a mutex handle to avoid it opening twice. I can tell via the mutex if the program is open, but don't know what to do to close the program. Any pointers? Thanks.