Search code examples
delphidelphi-7

Delphi 7 uninstall and install error


I have installed first delphi 5 and then installed delphi 7 a year ago. And I was using Delphi 5 only most of time. After I installed Delphi 7 it was working good and created 2-3 applications with that.

But now after 6 months when i am trying to run Delphi 7 its giving me some errors. So I uninstalled the Delphi 7 and tried to re-install but the acing same problem. I tried twice and same results. :( I am not able to view any forms also in Delphi 7. And there is no option also to add new form also.

When I run newly installed Delphi 7 its trying to load some components from delphi5 directory. How can I solve this problem?

Delphi 5 installed path: D:\Delphi5

Delphi 7 installed path: C:\Program Files\Borland\Delphi7

Below is error I am getting while loading Delphi 7:

Exception EPackageError in module rtl70.bpl at 00017EAA
Can't Load package D:\Delphi5\bin\delphide70.bpl
Can't Load package D:\Delphi5\bin\direct70.bpl
Can't Load package D:\Delphi5\bin\delphivclide70.bpl
Can't Load package D:\Delphi5\bin\MsgInoCFG.bpl

Thanks.


Solution

  • The Windows registry might have the wrong values (although I don't know how they would have gotten fouled up from what you describe). Use the Start menu's search control (Windows 7) and type RegEdit and hit Enter to open the registry editor. Go to HKEY_CURRENT_USER\Software\Borland\Delphi\7.0 (and the same path in the HKEY_LOCAL_MACHINE tree), and check for anything related to the Delphi 5 location in Known Packages, Known IDE Packages, or anywhere else.

    The alternative is to simply uninstall Delphi 7, and then go into RegEdit as above, and rename both the Borland\Delphi\7.0 entries described above. Use the Control Panel->System and Security\System dialog, click Advanced Settings in the left panel, and then click the Environmental Variables button, and make sure there are no entries in the PATH related to Delphi 7. Then reinstall Delphi 7 like you did above and see if it fixes everything. Make sure you only rename the entries and don't delete them, in case you do something wrong; you can always name them back again.