Prev Previous Post   Next Post Next
Old 12th January 2016, 22:57   #1
pkonduru
Member
 
Join Date: Jul 2015
Posts: 62
Check if Port is open

Hi All,

I am trying to use this in my installer to see if a port is open. I need to show a message box if the port cannot be used or proceed if its ok to use the port.

http://nsis.sourceforge.net/Check_open_ports

I am not able to figure out the example in this page. If I used the condition with {If}, how would this be:

${If} ${TCPPortOpen} $PortNumber
MessageBox MB_OK|MB_ICONSTOP "$PortNumber is already using by another program..."
Abort
${Else}
MessageBox MB_OK"$PortNumber is open to use"

Is this correct?
pkonduru is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast 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