Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

(Sorry in advance if this is a duplicate question. I did search and didn't find anything).

Windows XP

I want to script an MSI installer to run silently (via msiexec). A prerequisite step is that certain applications (most notably Office and IE) need to be closed/shutdown prior to the installer running. How can I check to see if applications are open and close them if necessary?

share|improve this question
1  
I know this is horrible, but you could write a batch script to do taskkill /im "processname". –  Dr Kitty Feb 29 '12 at 3:50
    
@TheElectricMuffin That might work although errors come up if it doesn't find the program. –  Mike B Mar 1 '12 at 22:45

1 Answer 1

Open Task Manager & that'll show all currently running applications & processes.

Typing Task Manager into XP’s help menu will give a option to start Task Manager.

To avoid possible errors, Close each application via each applications menu. Only close an application via Task Manager if a particular application refuses to close via its application menu.

share|improve this answer
1  
The question clearly refers to a programmatic way to detect and terminate processes, so this answer doesn't help. –  Mox Feb 29 '12 at 3:30
    
It'll list all open apps to help decide which to close down. Personal experience taught me this. –  BlazeEagle Feb 29 '12 at 4:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.