Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th November 2007, 13:38   #1
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
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'
galevsky is offline   Reply With Quote
Old 10th November 2007, 19:23   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Try searching the forums.
This one may help:
http://forums.winamp.com/showthread.php?threadid=255725

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 10th November 2007, 19:38   #3
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
I ran an unsuccessful search before. Thank you Afrow

Gal'
galevsky is offline   Reply With Quote
Old 14th November 2007, 19:26   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
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:
code:
${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.
Attached Files
File Type: nsh ports.nsh (1.7 KB, 194 views)

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 14th November 2007, 20:34   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Very nice

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 16th November 2007, 12:15   #6
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
Working nice here, this is a better way to get it without calling netstat executable. Thks

Gal'
galevsky is offline   Reply With Quote
Old 27th November 2007, 07:52   #7
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
Just a question... did you plan to integrate this lib to later NSIS deliveries ?

Gal'
galevsky is offline   Reply With Quote
Old 27th November 2007, 17:30   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
http://nsis.sourceforge.net/Check_open_ports

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th November 2007, 18:44   #9
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
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'
galevsky is offline   Reply With Quote
Old 27th November 2007, 19:53   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
No, I don't plan to currently include it in the Include directory.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th November 2007, 20:19   #11
galevsky
Senior Member
 
Join Date: Oct 2007
Posts: 101
okay, thanks.
galevsky is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump