0

我知道这个问题有一些变体,我已经查看了它们以尝试找到解决方案,但我目前没有任何运气。我正在尝试从一个命令文件运行一系列安装(4),但它只会运行第一次安装。

我有一个主 cmd 文件,其内容如下:

call "Architecture 2015\Install.cmd"
call "Inventor 2015\Inventor2015_Install.cmd"
call "Mechanical 2015\Mechanical2015_Install.cmd"
call "Civil 2015\Civil2015_Install.cmd"

这些 cmd 文件中的每一个都包含以下内容:

"<path>\Setup.exe" /W /q /I Img\Autocad Architecture 2015.ini /language en-us

我试过使用

start /wait cmd /k call "Architecture 2015\Install.cmd"

在每个上,但它仍然只运行第一个。我不能使用确切的时间,因为它在网络上并不总是一致的。任何帮助,将不胜感激。

4

1 回答 1

0

我想问题是您的四个 .cmd 文件只是启动程序并退出,而无需等待 Setup.exe 完成。这可能会导致以下情况:

call first cmd ->
  call first setup ->
    exit without waiting setup to finish ->
  main script is notified that first cmd is done ->
call second cmd ->
  start setup -> error (impossible to run two MS install at the same time) ->
  exit ->
call third cmd ->
  same as second cmd ->
call last cmd ->
  same ->
done after one installations and three errors

尝试使用call "<path>\Setup.exe /W /q /I Img\Autocad Architecture 2015.ini /language en-us"而不是"<path>\Setup.exe" /W /q /I Img\Autocad Architecture 2015.ini /language en-us.

于 2014-12-18T10:54:00.240 回答