德尔福在哪里得到BDSCOMMONDIR的价值? [英] Where does Delphi get value the BDSCOMMONDIR from?

查看:346
本文介绍了德尔福在哪里得到BDSCOMMONDIR的价值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的一个系统有一个破解的Delphi安装:它认为 BDSCOMMONDIR 指向 C:\Windows\system32\9.0 而在功能正常的系统中,它指向 C:\Users\Public\Documents\RAD Studio\9.0



我可能是公司安全疯狂的受害者,因为我发现没有人可以访问 C:\Users\Public 目录在失败的系统。



我想要的是将目录的内容移动到开发人员可以编写的地方,然后全局(子目录 C:\ProgramData ,并设置 BDSCOMMONDIR



那么:Delphi在哪里得到 BDSCOMMONDIR 的值?

我如何覆盖?



它阻止我的主要原因是,我现在可以在每次编译/构建中尝试:

  [MakeDir错误]无法创建目录C:\Windows\system32\9.0\hpp\。访问路径C:\Windows\system32\9.0\hpp\被拒绝。 
[MakeDir错误]无法创建目录C:\Windows\system32\9.0\Dcp。对路径C:\Windows\system32\9.0\Dcp的访问被拒绝。
[MakeDir错误]无法创建目录C:\Windows\system32\9.0\hpp。访问路径C:\Windows\system32\9.0\hpp被拒绝。


解决方案

你可以去



工具|选项|环境选项|环境变量



双击



BDSCOMMONDIR



并将其设置为任何您想要的。



还可以看看存储在注册表中的环境变量在哪里?


One of my systems has a broken Delphi installation: it thinks BDSCOMMONDIR points to C:\Windows\system32\9.0 whereas on a functioning system, it points to C:\Users\Public\Documents\RAD Studio\9.0.

I'm probably the victim of corporate security madness, as I found out nobody can access the C:\Users\Public directory on the failing system anyway.

What I want is to move the content of the directory to a place where the developers can write, then globally (a subdirectory C:\ProgramData comes to mind) and globally set the BDSCOMMONDIR.

So: where does Delphi get the BDSCOMMONDIR value from?
How can I override it?

The major reason why it is holding me back is that I now get this on every compile/build I try:

[MakeDir Error] Unable to create directory "C:\Windows\system32\9.0\hpp\". Access to the path 'C:\Windows\system32\9.0\hpp\' is denied.
[MakeDir Error] Unable to create directory "C:\Windows\system32\9.0\Dcp". Access to the path 'C:\Windows\system32\9.0\Dcp' is denied.
[MakeDir Error] Unable to create directory "C:\Windows\system32\9.0\hpp". Access to the path 'C:\Windows\system32\9.0\hpp' is denied.

解决方案

You can go to

Tools|Options|Environment Options|Environmental Variables

double click on

BDSCOMMONDIR

and set it to whatever you want.

Also get a look at Where are environment variables stored in registry?

这篇关于德尔福在哪里得到BDSCOMMONDIR的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆