Priyameena
Posts: 6
Joined: Wed Dec 26, 2007 7:31 pm

Tomcat Prerequisite

Hi,

I am adding tomcat as an Prerequisite.I want to check in the client machine,if it has tomcat service running,the I want to allow the user to proceed the next step. In the other words if the machine has tomcat,I dont want the user to install it.Please let me know how to accomplish it.

Thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Tomcat Prerequisite

Hi,

Unfortunately Windows Installer and Advanced Installer do not offer a way of detecting if a service is running. However, you can create a custom EXE which does this and set it as an install condition for the prerequisite.

For example, in C++ you can use the OpenService and QueryServiceStatus functions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”