Hi
I have an application installed.
I need to have a functionality that prevents user from uninstalling the application if application is currently running. I uninstall appliation from Add/Remove programs.
I have functionality in my system that allows it to be minimized to the task bar and to system tray. During minimized to system tray user can access system tray menu and click "Show" menu to see the application windows again. During minimized state in system tray all the application windows are hidden.
If application is minimized to task bar and i try to uninstall the application, windows wont allow me to uninstall it and show me some message like "Following appliation should be closed before continuing install". This is a good behaviour. This is what i want. But same message don't appear if system is minimized to system tray. During system tray minimized state no application window is visible to the user. And programming is running. Still window usninstalls my application.
How can i prevent user from uninstalling the application if application is minimized to system tray.
Please help
Thanks