Skip to content
⌘ NSIS Forum Archive

Is XXX port already used ?

11 posts

galevsky#

Is XXX port already used ?

Hi all,

just wanna know if there is some NSIS lib to do that, or if I have to run my little shell script based on netstat.

Thks,

Gal'
Afrow UK#
Try searching the forums.
This one may help:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


Stu
kichik#
I've written a new function to test this. It works on 98 and above and NT4 SP4 and above.

It's used via LogicLib:
${If} ${TCPPortOpen} 80
DetailPrint "a webserver is running"
${ElseIf} ${UDPPortOpen} 80
DetailPrint "a very peculiar webserver is running"
${EndIf}
I'll upload it to the Wiki once it stops being so slow.
galevsky#
Working nice here, this is a better way to get it without calling netstat executable. Thks 😉

Gal'
galevsky#
Yes it is nice ... but.... I would like to know if ports.nsh will be included in \include directory or not (I need to describe a design documentation to describe how to set the NSIS development environment, including which plugin to download and so on...)

It is not planned ?

Gal'