I am trying to run the exe in silent mode, but I don't know how I can do it with the command line option. Below I have attached my script.
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;
Arguments (like the /verysilent
) go to the third parameter of the ShellExec
function:
if ShellExec('open', NewInstallerPath, '/verysilent',
ExtractFilePath(NewInstallerPath), SW_SHOW, ewNoWait, ErrorCode) then