如何迁移 Delphi 或克隆 Delphi 注册表设置? [英] How to migrate Delphi or clone Delphi registry settings?

查看:48
本文介绍了如何迁移 Delphi 或克隆 Delphi 注册表设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两台装有 XE2 的 PC.我以为我在两者上都安装了相同的东西,但是在一个上安装 3rd 方软件包时遇到了问题,而另一个却没问题.

I have two PCs both with XE2. I thought that I had installed identically on both but have problems installing 3rd party packages on one while the other is just fine.

无论如何我都想要相同的.简单的方法可能只是通过移入我的 Dropbox 文件夹来迁移"工作设置.我可以这样做吗?如果是,怎么办?

I want the same on both anyway. The easist would probably just to "migrate" the working set-up by moving in into my Dropbox folder. Can I do that? If so, how?

如果没有,我可以(轻松)在一台机器上备份我的注册表设置,然后在另一台机器上导入它们吗?

If not, can I (easilly) backup my registry settings on one machine and then import them on the other?

我想我可以在一台 PC 上解决问题,但到目前为止我运气不佳.我宁愿把时间花在只有一个 Delphi 设置上.而且因为我无论如何都要将许多其他东西转移到 DropBox ......

I suppose I could just sort out the problem on the one PC, but am not having much luck so far. I would rather invest the time in only having one Delphi setup. And since I am moving lots of other stuff to DropBox anyway ...

推荐答案

我不知道用 DropBox 有什么办法.这是我在 CodeGear 新闻组中发表的一篇旧帖子(与 Delphi 7 相关,但对注册表项的更正仍然适用);希望它会有所帮助.

I don't know of any way to do so with DropBox. Here's an old post I made (related to Delphi 7, but with correction of registry keys still applicable) in the CodeGear newsgroups; hopefully it will help.

(这可能不言而喻,但是在开始使用 RegEdit 并导出它们之前备份目标计算机上的现有注册表设置,以防万一.您至少可以如果通过删除导入的条目然后导入保存的条目出现问题,请回到您现在的状态.)

(It probably goes without saying, but back up the existing registry settings on the destination machine before starting by using RegEdit and exporting them, just in case. You'll at least be able to get back to the point you're at now if something goes wrong by deleting the imported entries and then importing the saved ones.)

你不能,无论如何都没有困难.(特别是如果你有安装了第三方组件,因为它们可能已将文件放置在您可能不知道的 %SYSTEM% 文件夹.)

You can't, without some difficulty anyway. (Especially if you have third party components installed, as they may have placed files in the %SYSTEM% folder you may not know about.)

您也许可以(从旧计算机到新计算机)运行完全相同版本的 Windows 的计算机!)通过导出HKCUSoftwareEmbarcadero 下的注册表项和HKLMSoftwareEmbarcadero 从旧机器,然后在在新机器上安装 Delphi(在完全相同的文件夹中位置)导入该注册表文件.

You may be able to (for going from the old computer to the new computer running the same exact version of Windows!) by exporting the registry keys under HKCUSoftwareEmbarcadero and HKLMSoftwareEmbarcadero from the old machine, and then after installing Delphi on the new machine (in the exact same folder location) importing that registry file.

许多编译器、链接器和其他设置都配置在一个每个项目的基础,并且应该在您移动源时转移代码到新机器.

Many of the compiler, linker, and other settings are configured on a per-project basis, and should transfer over when you move your source code to the new machine.

第三方组件是个问题,正如我上面提到的.你可能会如果您复制,则可以使用注册表导出/导入将旧计算机中的每个第三方组件设置为完全导入注册表之前在新机器上的相同位置文件.您可能需要追踪一些最终出现的 .BPL 文件在 $(BDS)Bin 和 $(BDS) 下可能的其他文件夹中树;当您尝试启动时,IDE 会告诉您丢失的东西它.当询问您是否要尝试加载时,请确保您回答是"下次再来!

Third-party components are a problem, as I mentioned above. You may be able to get away with using the registry export/import if you copy each third-party component set from the old computer into exactly the same location on the new machine before importing the registry file. You'll probably have to track down some .BPL files that end up in the $(BDS)Bin and possibly other folders under the $(BDS) tree; the IDE will tell you about missing stuff when you try and start it. Make sure you answer "Yes " when asked if you want to try and load it again next time!

这篇关于如何迁移 Delphi 或克隆 Delphi 注册表设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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