I’m creating a setup project using Visual Studio 2008 and I was wondering if there is a standard way to check if a certain program is running during the setup? In this case I want to check for any instances of Microsoft Excel.
thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To do this during setup you will likely have to define a custom action. A custom action is an install step which allows you to run arbitrary code. It’s too big of a topic to cover in a SO post, but the following article will help you get started on custom actions
In this action you could use the process class to determine if a particular process is running.
Can’t remember off the top of my head if it’s excel or msexcel but you can adjust appropriately ;).