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

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

问题描述

我有两台电脑都配有XE2。我以为我已经安装了相同的两个,但是有一个安装第三方包的问题,​​而另一个是正常的。



我想要两样都一样。轻松的人可能只是通过进入我的Dropbox文件夹来移植工作设置。我能做到吗如果是这样,那么如何?



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



我想我可以在一台电脑上解决问题,但到目前为止没有太多的运气。我宁愿投入时间只有一个Delphi设置。因为我正在把很多其他的东西移动到DropBox ...

解决方案

我不知道有什么办法所以用DropBox。这是一个旧帖子(与Delphi 7相关,但修正注册表项仍然适用)在CodeGear新闻组;希望会有所帮助。



(可能不用说,但是备份目标机器上的现有注册表设置,然后开始使用RegEdit并将其导出,如果删除导入的条目,然后导入保存的条目出现问题,您至少可以回到现在的位置。)


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



您可以通过在HKCU\Software\Embarcadero和$($)下导出
注册表项(用于从旧计算机运行到运行相同确切版本的Windows的新
计算机!) b $ b HKLM\Software\Embarcadero从旧机器,然后在
之后安装Delphi新机器(在完全相同的文件夹
位置)导入该注册表文件。



许多编译器,链接器和其他设置都以每个项目
的形式配置,并且当您将源
代码移动到新的机器。



如上所述,第三方组件是一个问题。如果您将
每个第三方组件集从旧计算机复制到正确的
,那么您可能需要
才能使用注册表导出/导入在导入注册表
文件之前,新机器上的位置。您可能必须在$(BDS)\Bin和$(BDS)
树下的其他文件夹中追踪最终
的一些.BPL文件。当您尝试启动
时,IDE会告诉您有关缺少的东西。确定你回答是时询问你是否想尝试下次再次加载



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.

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?

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

解决方案

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.

(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.)

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

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 HKCU\Software\Embarcadero and HKLM\Software\Embarcadero 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.

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天全站免登陆