【问题标题】:Suppress Windows command output when using 'ExecWait' in NSIS在 NSIS 中使用“ExecWait”时抑制 Windows 命令输出
【发布时间】:2013-06-05 12:54:47
【问题描述】:

我试图抑制在 NSIS 中执行 psql 命令后弹出的输出窗口

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

看了link 之后,我尝试了“>nul”。但这不起作用。

【问题讨论】:

  • 'psql -q' 隐藏输出但不抑制错误。

标签: nsis


【解决方案1】:

为避免出现黑色 DOS 框,您可以使用 nsExec::Exec 代替 Execwait。

【讨论】:

    猜你喜欢
    • 2012-07-12
    • 1970-01-01
    • 1970-01-01
    • 2019-05-06
    • 1970-01-01
    • 2015-04-05
    • 1970-01-01
    • 2021-06-06
    • 1970-01-01
    相关资源
    最近更新 更多