简体   繁体   English

Indy 10无法安装到Delphi 5中

[英]Indy 10 fails to install into Delphi 5

I have Delphi 10 Seattle, but I have an older program I wrote in 1995 with Delphi 1. I have since moved it to Delphi 5 — because of all the old 3rd-party components I have used over the years, it would be a total re-write (at least a year) to move it into Delphi 10 Seattle. 我有Delphi 10 Seattle,但我有一个较旧的程序,我在1995年用Delphi 1编写。我已经把它移到Delphi 5 - 因为我多年来使用的所有旧的第三方组件,它将是一个重写(至少一年)将其移至Delphi 10 Seattle。

One of my secure websites the program uses is soon going to require TLS 1.2. 我的一个安全网站程序很快将需要TLS 1.2。 I have Indy 9 installed, and that has worked fine with TLS 1.0, but I understand the only way for TLS 1.2 is to install Indy 10. So far, I have been unsuccessful. 我安装了Indy 9,并且在TLS 1.0中运行良好,但我知道TLS 1.2的唯一方法是安装Indy 10.到目前为止,我没有成功。

  1. I followed the instructions to the word using the batch file method after removing any instance of Indy 9 (mainly renaming files and directories in case of the worse scenario). 在删除Indy 9的任何实例(主要是在更糟的情况下重命名文件和目录)后,我使用批处理文件方法按照说明操作。
  2. I changed my Environment path to the correct D2 folder Indy's batch file created. 我将环境路径更改为正确的D2文件夹Indy的批处理文件。
  3. I installed both of the dclIndyCore50 and dclIndyProtocols50 BPL's in the package installer. 我在软件包安装程序中安装了dclIndyCore50和dclIndyProtocols50 BPL。
  4. They both go in and are checked (enabled). 它们都进入并被检查(启用)。 Components were visible. 组件可见。
  5. Then I exit Delphi 5 and either get the following error or the 2 packages are unchecked: 然后我退出Delphi 5并得到以下错误或未选中2个包:

    错误信息

I have tried to move the all the files from the created 'D2' folder to a folder right off of my C drive in case it was some sort of Windows 10 permission problem. 我试图将所有文件从创建的'D2'文件夹移动到我的C驱动器右边的文件夹,以防它出现某种Windows 10权限问题。 I changed environment paths to match and add those packages. 我更改了环境路径以匹配并添加这些包。 Still, Delphi states it can't find the file. 尽管如此,Delphi表示无法找到该文件。

Installation seems simple enough. 安装看起来很简单。 What could I be doing wrong? 我能做错什么? I left a post in the Tools section of Embarcadero's forum, but I can see it is not used much. 我在Embarcadero论坛的工具部分留了一个帖子,但我可以看到它用得不多。 Search the forum and found '0' results. 搜索论坛,找到“0”的结果。 I sure how your Delphi experts can help. 我相信您的Delphi专家可以提供帮助。

Delphi 5 likes to see BPL related files in his directory. Delphi 5喜欢在他的目录中看到BPL相关文件。
(Of course you have to adapt the path specified in this example.) (当然,您必须调整此示例中指定的路径。)

Search for the **Indy*.* files, copy all with the same compilation date/time to Delphi5's folder. 搜索** Indy *。*文件,将所有编译日期/时间复制到Delphi5的文件夹中。 Look at next picture for the path and files. 查看下一张图片的路径和文件。

在此输入图像描述

If you have the files !! 如果你有文件!! (Don't copy now first) Remove the previous assignment to the Component. (现在不要先复制)删除以前的组件分配。 Press Remove to 按删除

Indy 10 Core Desig Time -> dclIndyCore50.bpl
Indy 10 Protocols Design Time -> dclIndyProtocols50.bpl

在此输入图像描述

Close and Restart Delphi 关闭并重启Delphi

Now copy the files to the Delphi folder! 现在将文件复制到Delphi文件夹!

Install Component Package 安装组件包

在此输入图像描述

press Add (look at Image above) 添加 (查看上图)
goto ...\\Delphi5\\Projects\\Bpl\\dclIndyCore50.bpl 转到...\\Delphi5\\Projects\\Bpl\\dclIndyCore50.bpl
next Add ...\\Delphi5\\Projects\\Bpl\\dclIndyProtocols50.bpl 下一步添加...\\Delphi5\\Projects\\Bpl\\dclIndyProtocols50.bpl

Make sure that the path to Delphi is in Environment 确保Delphi的路径在Environment中

F:\\Programme\\Borland\\Delphi5\\bin;F:\\Programme\\Borland\\Delphi5\\Projects\\Bpl;

Close and restart Delphi. 关闭并重新启动Delphi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM