1. 程式人生 > >Delphi中Indy 10的安裝和老版本的解除安裝

Delphi中Indy 10的安裝和老版本的解除安裝

解除安裝: 

1. Remove the package from Install Packages menu 

從Delphi的IDE中解除安裝Indy元件包 


2. Delete the *.BPL and *.DCP files of Indy from the installation directoy and from your System folder 

從你的系統目錄中刪除以Indy開頭的所有bpl和dcp檔案 


3. Remove any old old Indy files from your library path 

從你的Delphi的Library path中刪除所有Indy的路徑 

4。安裝你的新Indy元件 



安裝很順利(安裝前請先解除安裝Delphi自帶的Indy),不過載入專案進行編譯的時候報錯: 

[Fatal Error] Unit1.pas(11): Unit IdContext was compiled with a different version of IdSocketHandle.TIdSocketHandle 



解決方法也很簡單:只要把下列路徑(預設安裝在C:\Program Files\Indy 10 for Delphi 7)加入Delphi的 Library Path即可。 

C:\Program Files\Indy 10 for Delphi 7\Source\Core 

C:\Program Files\Indy 10 for Delphi 7\Source\Protocols 

C:\Program Files\Indy 10 for Delphi 7\Source\SuperCore 

C:\Program Files\Indy 10 for Delphi 7\Source\System