Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行静默 NSIS 安装程序(从控制台,如 中installer.exe /S /D=C:\Foo)时,它会立即移动到后台。我想等到它完成安装后再做任何其他事情。我可以通过一个标志来告诉安装程序被阻止吗?
installer.exe /S /D=C:\Foo
你没有说你如何在你的问题中开始这个过程!NSIS 安装程序总是“阻塞”,对于静默安装程序,这意味着您只需等待子进程结束。
如果父进程也是您可以执行的 NSIS 安装程序,ExecWait '"c:\path\to\installer.exe" /S /D=C:\Foo'或者如果它是您必须使用的批处理文件start "" /WAIT "c:\path\to\installer.exe" /S /D=C:\Foo
ExecWait '"c:\path\to\installer.exe" /S /D=C:\Foo'
start "" /WAIT "c:\path\to\installer.exe" /S /D=C:\Foo