Old 20th July 2007, 03:00   #1
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
Get netstat -option information using NSIS

Hi all,

Is there a plugin/NSIS code/any other way that I can get the NSIS installer to get the information available using netstat -options (info on free and available ports).

Thanks.
rockerz is offline   Reply With Quote
Old 20th July 2007, 03:57   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
nsExec


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 20th July 2007, 05:47   #3
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
Hi Joel,

- Firstly I am unable to find nsExec plugin. I think it has been replaced by the execDos plugin.

- Also I am unable to figure out how to use the execDos plugin for my purpose. Basically I want NSIS to run my command prompt (situated in C:\Windows\system32\cmd.exe), execute the netstat -options in it and get the results into a text file in some folder on my comp.

Sorry for being so problamatic :P..m an amateur in the NSIS field still
rockerz is offline   Reply With Quote
Old 20th July 2007, 08:05   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
nsExec normally should present in NSIS/plugins folder.
ExecDos
code:
DetailPrint "Running netstat -a"
ExecDos::exec "netstat -a" "" "$EXEDIR\netstat.txt"
Pop $0
MessageBox MB_OK "Exit code $0"

You should set correct path for output file and can skip MessageBox.
Takhir is offline   Reply With Quote
Old 20th July 2007, 08:15   #5
rockerz
Junior Member
 
Join Date: Jul 2007
Posts: 29
Hi Takhir,

Thank you very much for the reply..it works
rockerz is offline   Reply With Quote
Old 9th January 2012, 15:32   #6
sr164w
Junior Member
 
Join Date: Nov 2011
Posts: 10
can anyone please tel me the logic behind check for available (not used by any application) ports using ExecDos::exec "netstat -a" "" "$EXEDIR\netstat.txt"
sr164w is offline   Reply With Quote
Reply
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