I'm writing a little application that will act as an uninstaller for a bigger application. I want the uninstaller to be able to send a very basic message (a simple notify) to the application if it's running.
What is the best way to do this?
Illustration of what I want:
public class Uninstall {
public static void main(String[] args) {
if(isRunning("Application")) {
// Tell Application to clear data & exit
sendMessage("Application","EXIT");
}
}
}