0

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;
  • Are you really just asking how to run an installer in silent mode from command line? How's the question related to the code you have posted and to the "geo" stuff? – Martin Prikryl Aug 12 '16 at 14:12
  • Well this was your idea to find out where the user is from and guide them to that country exe but the issue is its not running the exe in /Verysilent mode since i dont know how i can do that with the code i have now. so i would like some help in running the exe using the command line –  Aug 12 '16 at 14:25

1 Answers1

1

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
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992