quinta-feira, 26 de setembro de 2013

How to update Indy component library in Delphi 7

Hi,

During the development of an application, unfortunately I faced a problem that forced me to update the Indy library version of my Delphi 7. I really don't liked the idea, but it was the only solution to continue the development...

I think that if you are here, is because you are facing the same problem, so bellow I listed the instructions to update the Indy component library on Delphi 7 and be happy again! =)

Don't worry if you use another version o Delphi, instructions are the same for all versions, just change the Delphi 7 references by your own version.

First of all, you need to download the latest package from the Indy component repository:
http://indy.fulgan.com/ZIP/
(The latest file version while I writing this post is Indy10_5060.zip)

Now you are ready to start the process of uninstall old version and install the new one.

Open your Delphi 7 and access Components > Install Packages.

Search for the package named Internet Direct (Indy) for Property and Component Editors. Select it and click on Remove button.

This will remove the Indy components from the development enviroment and they won't more avaiable in the components pallete.

After this, exit and close Delphi application and access its install directory. Inside bin folder, search for dclindy70.bpl file and remove it if exists.

Ok, the uninstall of old packages was completed and we will start the install process of the new version of Indy.

To simplify the nexts steps, unzip the content of previous downloaded file in a folder named Indy10 (you need to create this folder), under <Delphi install dir>\Lib.

On a command line prompt, access <Delphi install dir>\Lib\Indy10\Lib folder and execute the batch file Fulld7.bat. It will remove the binary install files of other Delphi versions.

Run again Delphi and one-by-one, open and compile the files listed bellow, respecting their list order:
         1. IndySystem70.dpk (in Indy10\Lib\System)
         2. IndyCore70.dpk (in Indy10\Lib\Core)
         3. IndyProtocols70.dpk (in Indy10\Lib\Protocols)
         4. dclIndyCore70.dpk (in Indy10\Lib\Core)
         5. dclIndyProtocols70.dpk (in Indy10\Lib\Protocols)

After a successfull compile of the packages, you just need to add a new Library path. To do this, access the Tools > Environment options menu, click on the Library sheet and add to your Library path, the path to <Delphi install dir>\Lib\Indy10\D7.

And the most important step on this post is put this new entry before the $(DELPHI)\Lib as follow the image bellow:

Now, on Components > Install Packages menu, finally add the components packages available in the Indy10\D7, on the follow order:
    1. dclIndyCore70.bpl
    2. dclIndyProtocols70.bpl

It was a lot of steps to do, but now you are ready to come back and develop your apps using the updated version of Indy components!

I hope it was usefull to you!

With best regards,
Marco.


This post was originally written by me in brazilian portuguese and was based on my experience using Indy 10 Installation Instructions.

8 comentários:

  1. hello
    thanks a lot for your tutorial, I have very apreciated and helped me a lot for installing Indy 10.5.30

    Meanwhile I have 2 adds :

    1) the last step (installing components packages) is not necessary as it is yet installed a step before.

    2) to access source file in design time you have to add sources paths :
    $(DELPHI)\Lib\Indy10\Lib\Core
    $(DELPHI)\Lib\Indy10\Lib\Protocols
    $(DELPHI)\Lib\Indy10\Lib\SuperCore
    $(DELPHI)\Lib\Indy10\Lib\System

    one more thing for date localisation in the datetime unit they do not get days/months names from local SysConst.pas any more.
    So who want date localisation he should add SysConst to uses clause and delete constante declarations of days/months in datetime unit then recompile. As I did for french delphi 7

    who want more info about Indy 10 on delphi 7 or localisation can contact me : king2003@ymail.com

    good day

    ResponderExcluir
  2. ngk iso di instal mas bro ....gagal total ....piye iki ...waduhhhh payah

    ResponderExcluir
  3. hi, i have followed your steps but the components are no longer available in my delphi 7 compiler ..

    ResponderExcluir
  4. Hello...

    Thanks for the article...

    Unfortunatly the fulld_7.bat does not seem to work under Windows98 MSDos7.1

    ResponderExcluir
  5. Thank you so much for this very detailed procedure which works perfectly !

    ResponderExcluir
  6. I HAVE AN OLD APPLICATION IN DELPHI7 THAT I SHOULD UPDATE INDY FROM VERSION 9 TO VERSION 10 FOR AN SSL PROBLEM.
    I CANNOT FIND THE UPDATE FILE.
    YOU WILL HAVE A LINK OR YOU CAN SEND ME THE FILE
    THANK YOU

    ResponderExcluir
  7. User ID: Indy-Public-RO
    No Password
    https://svn.atozed.com:444/svn/Indy10

    Note - certificate alert

    ResponderExcluir