gpt4 book ai didi

delphi - Delphi 从哪里获取 BDSCOMMONDIR 的值?

转载 作者:行者123 更新时间:2023-12-03 15:46:43 25 4
gpt4 key购买 nike

我的一个系统的 Delphi 安装有问题:它认为 BDSCOMMONDIR 指向 C:\Windows\system32\9.0 而在正常运行的系统上,它指向 C:\Users\Public\Documents\RAD Studio\9.0

我可能是公司安全疯狂的受害者,因为我发现无论如何都没有人可以访问故障系统上的 C:\Users\Public 目录。

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

那么:Delphi 从哪里获取 BDSCOMMONDIR 值?
我怎样才能覆盖它?

它阻碍我的主要原因是我现在在每次尝试编译/构建时都会得到这个:

[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.

最佳答案

您可以前往

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

双击

BDSCOMMONDIR

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

另请查看Where are environment variables stored in registry?

关于delphi - Delphi 从哪里获取 BDSCOMMONDIR 的值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12286012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com