TLama

Untitled

Mar 1st, 2014
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.56 KB | None | 0 0
  1. [Code]
  2. procedure CurStepChanged(CurStep: TSetupStep);
  3. var
  4.   I: Integer;
  5.   LogList: TStringList;
  6. begin
  7.   if CurStep = ssInstall then
  8.   begin
  9.     LogList := TStringList.Create;
  10.     try
  11.       LogList.Add('Selected components:');
  12.       for I := 0 to WizardForm.ComponentsList.Items.Count - 1 do
  13.         if WizardForm.ComponentsList.Checked[I] then
  14.           LogList.Add('Component: ' + WizardForm.ComponentsList.ItemCaption[I]);
  15.  
  16.       LogList.SaveToFile(ExpandConstant('{userdocs}\MySetupComponents.log'));
  17.     finally
  18.       LogList.Free;
  19.     end;
  20.   end;
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment