SetupLdrAndSetup.XPTheme.pas 785 B

123456789101112131415161718192021222324252627282930313233
  1. unit SetupLdrAndSetup.XPTheme;
  2. {
  3. Inno Setup
  4. Copyright (C) 1997-2025 Jordan Russell
  5. Portions by Martijn Laan
  6. For conditions of distribution and use, see LICENSE.TXT.
  7. Enables themes. Used only by the Setup and SetupLdr projects.
  8. Note: XPTheme must be included as the first unit in the program's "uses"
  9. clause so that its code runs before any VCL initialization code.
  10. }
  11. interface
  12. implementation
  13. {$IFNDEF WIN64}
  14. {$R SetupLdrAndSetup.XPTheme-x86.res}
  15. {$ELSE}
  16. {$R SetupLdrAndSetup.XPTheme-x64.res}
  17. {$ENDIF}
  18. uses
  19. Windows;
  20. { Avoid including Variants (via CommCtrl) in SetupLdr (SetupLdr uses XPTheme), saving 26 KB. }
  21. procedure InitCommonControls; external comctl32 name 'InitCommonControls';
  22. initialization
  23. InitCommonControls;
  24. end.