How to migrate Delphi or clone Delphi registry settings?

前端 未结 4 1581
北荒
北荒 2020-12-01 11:26

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.

4条回答
  •  再見小時候
    2020-12-01 12:12

    Install CnPack wizards from http://www.cnpack.org

    From the CnPack toolbar select IDE Config Backup/Restore (image below) and save this file somewhere safe

    Copy the components to the second delphi machine . Keep the exact same directory structure.

    I store my components as follows this helps backing up, moving etc., but you can use your own structure

    D:\components_bds\DCU

    D:\components_bds\BPL

    D:\components_bds\ComponentsThemselves

    Use the restore config file from CnPack to restore your components on the new machine

    This is also useful if your testing components that you plan to remove later and keeping a backup of your installation incase something goes wrong you can save time with new delphi installation if hard drive dies. Keep a copy on flashdrive or somewhere safe

    You may compare/diff the config file created by cnPack using a tool like Beyond Compare and see what the differences are to find out why third party components give problems on one of the machines. It may be a Delphi registry/installation problem or a problem in the paths of the thirdparty components. Components need to be installed in an order perhaps it did not find the needed dcu or dll it depends on.

提交回复
热议问题