I want to kill a process using inno setup.i want to check whether the window is open before i start installing the setup.
can i do this by searching windows name?
please help me with some sample code to kill the process
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.
The best option is to use a mutex to see if it’s still running using
AppMutex. One way to close it is to find the window handle then just post a simple WM_CLOSE message.There are other options like the Files in use extension and PSVince
Also see this article for a bit more information.