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~
how to aviod popup a dos command window when set up firewall
3 posts
Maybe you could use the ExecDos-Plugin from
Hope this helps.
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.
ExecDos::exec /TIMEOUT=2000 'netsh firewall add allowedprogram "c:\windows\system32\sol.exe" nisedit enable' "" "out.txt"
Hope this helps.