I have an installer in which I would like to make sure my application is currently not working. If so, I would like to close it (do not kill, since the application must save some data on exit). An additional problem is that my application window is hidden (tray icon is displayed), so Process.MainWindowHandle is always 0.
What can I do to apply for closing my application? Can I send a message directly to the application (and not to the window)?
Your help will be greatly appreciated. Gregor
source
share