TLama

Untitled

Apr 1st, 2013
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.63 KB | None | 0 0
  1. [Setup]
  2. AppName=My Program
  3. AppVersion=1.5
  4. DefaultDirName={pf}\My Program
  5. OutputDir=userdocs:Inno Setup Examples Output
  6.  
  7. [Components]
  8. Name: "file1"; Description: "File 1"
  9. Name: "file2"; Description: "File 2"
  10. Name: "file3"; Description: "File 3"
  11.  
  12. [Code]
  13. procedure ComponentsClickCheck(Sender: TObject);
  14. var
  15.   ListBox: TNewCheckListBox;
  16. begin
  17.   ListBox := TNewCheckListBox(Sender);
  18.   if (ListBox.ItemIndex >= 0) and (ListBox.ItemIndex <= 1) then
  19.     ListBox.Checked[2] := ListBox.Checked[0] or ListBox.Checked[1];
  20. end;
  21.  
  22. procedure InitializeWizard;
  23. begin
  24.   WizardForm.ComponentsList.OnClickCheck := @ComponentsClickCheck;
  25. end;
Advertisement
Add Comment
Please, Sign In to add comment