View Single Post
  #10  
Old 14-02-2014, 10:42
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Logrim View Post
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;
Reply With Quote
The Following 2 Users Say Thank You to altef_4 For This Useful Post:
Logrim (15-02-2014), papas (02-09-2016)