View Full Version : Checking if process is running

10-14-2004, 03:25 PM
My installer requires Outlook to be closed before setup can proceed. Is there an easy way with InstallShield Express X to find if Outlook is running and display a message that will have option Close, Retry and Ignore. :)

Mike Marino
10-19-2004, 05:46 PM
If Windows Installer detects that a file it needs to modify is in use by another application, it will display a conflict dialog like you describe automatically. So you may get this for free without doing anything.

If you need to do it manually, you would need to write a custom action that calls the API FindWindow and looks for Outlooks' Class name ("rctrl_renwnd32" on my machine). Then display a dialog asking the user to shut it down...or tell them you are going to shut it down, and shut it down via code.