执行外部可执行文件以运行并等待它完成,然后使用NSIS继续安装

执行外部可执行文件以运行并等待它完成,然后使用NSIS继续安装,nsis,Nsis,我是NSIS install creator的新手,我需要运行一个外部可执行文件,因为这是一个先决条件,一旦完成,我将继续安装。 我尝试了下面的代码,但它只是将exe复制到安装路径 Section "example" example SetOutPath "$INSTDIR" MessageBox MB_OK \ "The applications." File "Prerequisites\setup.exe" ExecWait '"exec" /i "$INSTD

我是NSIS install creator的新手,我需要运行一个外部可执行文件,因为这是一个先决条件,一旦完成,我将继续安装。 我尝试了下面的代码,但它只是将exe复制到安装路径

    Section "example" example
SetOutPath "$INSTDIR"
  MessageBox MB_OK \
    "The applications."
  File "Prerequisites\setup.exe"
  ExecWait '"exec" /i "$INSTDIR\setup.exe"  /passive'
  SetRebootFlag true
SectionEnd

只有在最终用户系统上的路径中有一个
exec.exe
时,这才有效,请尝试
ExecWait'$INSTDIR\setup.exe”/passive'