happy_peach
27th December 2005 04:19 UTC
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 07:21 UTC
Forum Search
bholliger
27th December 2005 18:20 UTC
Maybe you could use the ExecDos-Plugin from
http://nsis.sourceforge.net/ExecDos
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.