Skip to content

TLDR Quick How‐to: Replacing default Indy on fresh install of Delphi 12

DavidRueter edited this page Dec 20, 2024 · 11 revisions

Installing Indy from source tends to be complicated to install due to a) preinstalled version of Indy, and b) an emphasis on backwards-compatibility with every version of Delphi (or Lazarus/Free Pascal) ever released.

This page has simplified step-by-step instructions for installing Indy from source on a fresh install of Delphi 12 (installed with the Offline installer using the RAD Studio, Delphi, C__ Builder 12.2 inline ISO (RADStudio_12_2_i_0329_C2CC.iso) image and Indy source on GitHub as of 12/20/2024) on Windows 10 x64.

The basic steps can probably be adapted for other versions of Delphi.

  1. {exit out of Delphi}

  2. {open Administrator Command prompt}

  3. cd \Prog (or whatever your preferred folder is to hold the Indy source folder that will be created)

  4. git clone https://github.com/IndySockets/Indy (assumes that git.exe is installed and is in the path)

  5. cd Indy/Lib

  6. Clean_Athens.cmd (removes default install of Indy)

  7. Fullc_Athens.bat (rebuilds Indy. May be optional, as the resulting .bpl files aren't easily used, but will progamatically build the source and report any errors)

  8. Note output: *.bpl files saved in C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl but get moved to C:\Prog\Indy\C29\Win32\Release

  9. Launch Delphi

  10. Note error / confirm dialog: Can't load package c:\program files (x86)\embarcadero\studio\23.0\Bin\LivePreview290.bpl (click No to prevent this error in the future)

  11. File / Open C:\Prog\Indy\Lib\Indy290.groupproj

  12. For each project (in order) right-click and Build (Or right-click the top level group Indy290 and Build All)

  13. right-click dclIndyCore290.bpl and Install

  14. right-click dclIndyProtocols290.bpl and Install

  15. Exit Delphi

  16. Save changes to dclIndyCore290.dprog? click Yes

  17. Save changes to dclIndyCProtocols290.dprog? click Yes

  18. Launch Delphi

  19. Tools / Options

  20. Language / Delphi / Library / Library Path then click ...

  21. In edit box enter: C:\Prog\Indy\Lib\Core then click Add

  22. In edit box enter: C:\Prog\Indy\Lib\System then click Add

  23. In edit box enter: C:\Prog\Indy\Lib\Protocols then click Add

  24. Click OK then Save

Now you should be ready to use Indy in a new or existing project. When you build your project the new version of Indy will be linked in.

Clone this wiki locally