Thread: Help-me
View Single Post
  #1  
Old 05-04-2016, 08:46
coveiro coveiro is offline
Registered User
 
Join Date: Dec 2014
Location: EUA
Posts: 77
Thanks: 90
Thanked 52 Times in 32 Posts
coveiro is on a distinguished road
I want to put a DLC for downloads, only low when I turn on the check box

[] Download the DLC xxx

Quote:
sample code, wanted to add a checkbox to use this feature

[Code]
procedure InitializeWizard();
begin
itd_init;

itd_addfile('http://www.sherlocksoftware.org/petz/files/dogz5.zip',expandconstant('{tmp}\dogz5.zip'));
itd_addfile('http://www.sherlocksoftware.org/petz/files/petz4.zip',expandconstant('{tmp}\petz4.zip'));

itd_downloadafter(wpReady);
end;

procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep=ssInstall then begin //Lets install those files that were downloaded for us
filecopy(expandconstant('{tmp}\dogz5.zip'),expandc onstant('{app}\dogz5.zip'),false);
filecopy(expandconstant('{tmp}\petz4.zip'),expandc onstant('{app}\petz4.zip'),false);
end;
end;

Last edited by coveiro; 05-04-2016 at 12:13.
Reply With Quote
Sponsored Links