标题: 在Win10上安装Delphi7
cjc


软件作者



UID 1
精华 18
积分 2773
帖子 1467
威望 2773
金钱 72
阅读权限 200
注册 2002-5-7
发表于 2023-3-4 20:45  资料  个人空间  短消息  加为好友 
在Win10上安装Delphi7

在Win10上安装Delphi7

Delphi7 在win10上安装会遇到不少问题.



1. 安装无法新建工程, 控件栏全部空白, 代码窗口不能切换到设计窗口。
   这是权限问题,进行以下2步可以解决:
   a) 修改 C:\Program Files (x86)\Borland 和 C:\Program Files (x86)\Common Files\Borland Shared 两个文件夹的Users组的访问权限为完全控制
   b) 卸载并重新以管理员用户,并以管理员权限安装 Delphi7 (在 setup.exe 上右键,选 以管理员身份运行)



2. 编译会提示错误:“'System.pas' not found”
   打开Delphi菜单,选择 Tools -> Environment Options 然后选择 Library 标签,在 Library Path 添加如下内容就行了:
   -------------------------------------------------------------------
   c:\Program Files\Borland\Delphi7\Lib;
   c:\Program Files\Borland\Delphi7\Bin;
   c:\Program Files\Borland\Delphi7\Imports;
   c:\Program Files\Borland\Delphi7\Projects\Bpl;
   c:\Program Files\Borland\Delphi7\Rave5\Lib
   -------------------------------------------------------------------
   如果不是默认路径,则添加你自己的那些路径就行了。



3. 无法打开delphi7 帮助文件的问题
   a) 用winxp中的C:\Windows\winhlp32.exe替代win10中的同名文件。
       注意版本,winxp x86对应win10 x86版本。winxp x64对应win10 x64版本,找不到winxp x64系统,使用winxp x86系统中的也可以。
       一定要用winxp的,从win7或win8.1的补丁包中找出的会出现9009错误。
   b) 写一个批处理和winhlp32.exe放在一起:
        @echo off
        set crtpth=%CD%
        takeown /f "%windir%\winhlp32.exe" >nul
        icacls "%windir%\winhlp32.exe" /grant *S-1-5-32-544:F >nul
        copy /y "%crtpth%\winhlp32.exe" %windir%
        icacls "%windir%\winhlp32.exe" /setowner "NT Service\TrustedInstaller" >nul
        echo.
        echo Done.
        echo.
        echo Press any key to Exit
        pause >nul
   c) 鼠标右键点击批处理文件,选择“用管理员身份运行“。
      下载地址:https://pan.baidu.com/s/1nesDeyw85rmaWH1tNmt81A?pwd=1234
      https://www.cnblogs.com/unjiang/p/16697883.html



4. Installing Delphi 7 on Windows 7/8/10/Server 2012
   Submitted by st on Tue, 19/01/2016 - 10:36
   How to install and use Delphi 7 and help files on Windows 8/10 or Server 2012.

Installation
Start Delphi setup and install all required items including help files.

In Windows 8/10/Server 2012 or later (should work on Windows 7 too):

Create the shortcut to Delphi32.exe
Open shortcut properties and set "run as administrator" option
Add Delphi to the of DEP (Data Execution Prevention). Go to My Computer - Properties - Advanced System Settings - Performance Settings - Data Execution Prevention
Check that Delphi 7 started correctly
In case of problem set the compatibility "Windows XP SP2" in shortcut options (not recommended)
Delphi HLP files
Since Windows Vista the WinHlp32.exe program isn't more supported. You should download corresponding version from Microsoft web site and install it. For example:

WinHlp32.exe for Windows 7
WinHlp32.exe for Windows 8

Unfortunately, there is no official way to install WinHlp32 on Windows Server 2012 and Windows 10. The only workaround is to copy it from an other system. In my case I take it from my old Windows XP SP3 (32 bits). Later versions extracted from Win7/Win8 packages don't work for me.



You must have administrator's rights to do following actions:

Go to Windows folder
Find existing WinHlp32 file and open its properties
In security tab add your user name with full rights (when disabled, click "Advanced" button and take the ownership over this file)
Rename this file to winhlp32.exe.bak
Copy winhlp32.exe instead
From now Delphi 7 help works fine!

P.S. Cohabit fine with Delphi XE 10.x on the same machine.

from: https://www.arbinada.com/en/node/1529



安装序列号:
6AMD-PKG68E-DB8PP7-9SFE
3QH-9QW

6AMD-PDJ686-APME9D-9CDR
YVX-27C

顶部
 



当前时区 GMT+8, 现在时间是 2024-11-21 23:25

粤ICP备2021113670号
访问量: - 清除 Cookies - 联系我们 - CJC学习与技术分享