Archive: how to aviod popup a dos command window when set up firewall


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~


Forum Search


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.