将参数(/ verysilent)传递给从Inno Setup中的Pascal代码执行的应用程序(子安装程序)

时间:2016-08-12 13:52:08

标签: inno-setup inno-download-plugin

我正在尝试以静默模式运行exe,但我不知道如何使用命令行选项来执行此操作。下面我附上了我的剧本。

var progress:TOutputProgressWizardPage;

procedure DownloadFinished(downloadPage:TWizardPage);
var ErrorCode:integer;
begin
 if ShellExec('open', NewInstallerPath, '',
   ExtractFilePath(NewInstallerPath), SW_SHOW, ewNoWait, ErrorCode) then
   ExitProcess(1);
end;

1 个答案:

答案 0 :(得分:1)

参数(如ShellExec)转到if ShellExec('open', NewInstallerPath, '/verysilent', ExtractFilePath(NewInstallerPath), SW_SHOW, ewNoWait, ErrorCode) then 函数的第三个参数:

pip install -r requirements.txt -t /path/to/install
相关问题