Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   how to aviod popup a dos command window when set up firewall (http://forums.winamp.com/showthread.php?t=234083)

happy_peach 27th December 2005 03:19

how to aviod popup a dos command window when set up firewall
 
i use this command in nsis script

Execwait 'netsh firewall add allowedprogram "C:\util\nisedit\nisedit.exe" nisedit enable'

to set up a firewall.

but when install, it's popup a dos command window ~~

how can i avoid this problem~

thanks~

Takhir 27th December 2005 06:21

Forum Search

bholliger 27th December 2005 17:20

Maybe you could use the ExecDos-Plugin from
http://nsis.sourceforge.net/ExecDos

code:

ExecDos::exec /TIMEOUT=2000 'netsh firewall add allowedprogram "c:\windows\system32\sol.exe" nisedit enable' "" "out.txt"



After running the code you could look into out.txt and you'll see the result. (Of course the return code is also available...) And of course there's no shell blinking up.

Hope this helps.


All times are GMT. The time now is 04:57.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.