getit.bat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. @echo off
  2. rem Inno Setup
  3. rem Copyright (C) 1997-2025 Jordan Russell
  4. rem Portions by Martijn Laan
  5. rem For conditions of distribution and use, see LICENSE.TXT.
  6. rem
  7. rem Batch file to get GetIt dependencies
  8. setlocal
  9. cd /d %~dp0
  10. if exist compilesettings.bat goto compilesettingsfound
  11. :compilesettingserror
  12. echo compilesettings.bat is missing or incomplete. It needs to contain
  13. echo the following line, adjusted for your system:
  14. echo.
  15. echo set DELPHIXEROOT=C:\Program Files\Embarcadero\RAD Studio\20.0 [Path to Delphi 10.4 Sydney (or later)]
  16. goto failed2
  17. :compilesettingsfound
  18. set DELPHIXEROOT=
  19. call .\compilesettings.bat
  20. if "%DELPHIXEROOT%"=="" goto compilesettingserror
  21. rem -------------------------------------------------------------------------
  22. call "%DELPHIXEROOT%\bin\rsvars.bat"
  23. if errorlevel 1 goto failed
  24. rem Delphi 10.4 note: Delphi 10.4 does not display these styles when using the
  25. rem GetIt Package Manager from the IDE, but its GetItCmd.exe can still retrieve
  26. rem them. When it does, it obtains the same files as Delphi 12.3.
  27. GetItCmd.exe --accepteulas --donotsetenvfile -i=VCLStyle-Windows11Light-1.0;VCLStyle-Windows11Dark-1.0;VCLStyle-PolarLight-1.0;VCLStyle-PolarDark-1.0;VCLStyle-Zircon-2.0
  28. if errorlevel 1 goto failed
  29. echo Success!
  30. goto exit
  31. :failed
  32. echo *** FAILED ***
  33. :failed2
  34. exit /b 1
  35. :exit