如何连续在NSIS中运行.exe文件?

时间:2019-06-10 19:11:48

标签: nsis

使用NSIS,我正在为自制软件套件创建安装程序。该安装程序需要运行三个.exe文件。

使用

Exec "Execute1.exe"
Exec "Execute2.exe"
Exec "Execute3.exe"

我运行所有这些文件。问题是所有文件都并行运行。我要连续运行文件-首先运行Execute1.exe,然后运行Execute2.exe,最后运行Execute3.exe

2 个答案:

答案 0 :(得分:0)

改为使用ExecWait

ExecWait command [user_var(exit code)]
     

执行指定的程序,然后等待执行的进程退出。

ExecWait "Execute1.exe"
ExecWait "Execute2.exe"
ExecWait "Execute3.exe"

答案 1 :(得分:0)

ExecWait是您要寻找的。我会链接到文档,但在线链接似乎已断开。

File "${MSVSREDIST}\${MSVSREDISTFILE2008}"
ExecWait '"${ExtractPath}\${MSVSREDISTFILE2008}" /q'

File "${MSVSREDIST}\${MSVSREDISTFILE2010}"
ExecWait '"${ExtractPath}\${MSVSREDISTFILE2010}" /passive /norestart'

File "${DOTNET}\${DOTNETFILE}"
ExecWait '"${ExtractPath}\${DOTNETFILE}" /passive /norestart'
相关问题