Advertisement
TLama

Untitled

May 7th, 2015
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.01 KB | None | 0 0
  1. [Setup]
  2. AppName=My Program
  3. AppVersion=1.5
  4. DefaultDirName={pf}\My Program
  5.  
  6. [Code]
  7. procedure InitializeWizard;
  8. begin
  9.   // just tell the plugin when we want to start
  10.   idpDownloadAfter(wpReady);
  11. end;
  12.  
  13. procedure CurPageChanged(CurPageID: Integer);
  14. begin
  15.   // if the user just reached the ready page, then...
  16.   if CurPageID = wpReady then
  17.   begin
  18.     // because the user can move back and forth in the wizard, this place can
  19.     // be executed multiple times, so we need to clear the file list first
  20.     idpClearFiles;
  21.     // and add the files to the list; at this time, the {app} directory is known
  22.     idpAddFileComp('ftp://user:pass@server.xy/folder/myFile1.exe', ExpandConstant('{app}\subfolder\Download\myFile1.exe'), 'dl\aaa');
  23.     idpAddFileComp('ftp://user:pass@server.xy/folder/myFile2.exe', ExpandConstant('{app}\subfolder\Download\myFile2.exe'), 'dl\bbb');
  24.     idpAddFileComp('ftp://user:pass@server.xy/folder/myFile3.exe', ExpandConstant('{app}\subfolder\Download\myFile3.exe'), 'dl\ccc');
  25.   end;
  26. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement