Prevent Windows command output when using "ExecWait" in NSIS

I am trying to suppress the output window that appears after running the psql command in NSIS

ExecWait 'psql -U postgres -f "Path\To\File.sql" postgres' 

I tried '> nul' after looking at this link . But that does not work.

+8
nsis
source share
1 answer

To avoid the black box of DOS, you can use nsExec :: Exec instead of Execwait.

+10
source share

All Articles