Quote:
Originally Posted by Logrim
One question.. i try to execute directx in ssPostInstall.. my code for this is:
but return invalid numbers of parameters error.. i'm lost,, what is wrong? thanks.
end;
|
Code:
if (CurStep=ssPostInstall) then begin
if (DirectXCB.Checked = True) then begin
FileStatusLabel.Caption := ExpandConstant('{cm:Installing} ') + ExpandConstant('{#Redist1}') + ExpandConstant(', {cm:Wait}');
Exec(ExpandConstant('{src}\_CommonRedist\DirectX\DXSETUP.exe'),'/Silent',ExpandConstant('{src}'),1,ewWaitUntilIdle,ResCode);
end;
end;
original Exec function looks like:
Code:
function Exec(const Filename, Params, WorkingDir: String; const ShowCmd: Integer; const Wait: TExecWait; var ResultCode: Integer): Boolean;
p.s. add in var section
ResCode: integer;