I'm using NSIS to develop an installer for my application. What I need to do with this installer is to check whether the port 80 is available and if it is available proceed with the installer of if it is not give an error message with the process name which is running on port 80.
I found a way to check whether the port 80 is available or not. For that I have used Ports.nsh as a plugin. http://nsis.sourceforge.net/Check_open_ports
${If} ${TCPPortOpen} 80
MessageBox MB_OK|MB_ICONSTOP "PORT 80 is already using by another program..."
Abort
${EndIf}
But with this I cannot find the running process on that port. I need to give an error message such as
//Skype is running on port 80 and close Skype to continue with the installation.
Can someone please help me on this. Thanks.