I am trying to suppress the output window which pops up after executing a psql command in NSIS
ExecWait 'psql -U postgres -f "Path\To\File.sql" postgres'
I tried '>nul' after looking at this link. But that doesn't work.
I am trying to suppress the output window which pops up after executing a psql command in NSIS
ExecWait 'psql -U postgres -f "Path\To\File.sql" postgres'
I tried '>nul' after looking at this link. But that doesn't work.
To avoid the black DOS box, you can use nsExec::Exec instead of Execwait.
Using vanilla NSIS, you can also use ExecShellWait
with SW_HIDE like so:
ExecShellWait "" "$INSTDIR\myservice.exe" "install" SW_HIDE
...although nsExec is clearly the way to go if you want to capture output.
© 2022 - 2024 — McMap. All rights reserved.