6

I was working on my own package. Then while i was processing i wrongly click on the message "Don't load this package on the next start of Delphi"...

Even i uninstall, clean my package... After i recompile and reinstall it successfully : Delphi show me the message that my components been compiled and registered successfully (Some new components been identified and added : TMyComponents).

I was "hoping" when i will load my testing project again my component will still be there on my form but i get the message that "Classes TMyComponent not found. Ignore error and continue ? Note : this could delete the component or lost properties values"

Then i check in the menu : "Component / Installing Package", my package appear in the list but it's "unchecked". If i check it manualy and load my project, my component is there, all is ok. if i restart delphi the package remain unchecked again and still disabled.

How can i re-activate this package to be load when i start Delphi as usual ? (Delphi-2009)

dummzeuch
  • 10,975
  • 4
  • 51
  • 158
ffert2907
  • 370
  • 4
  • 16

2 Answers2

6

I found something while i was searching in windows registry (Regedt32.exe):

1 - I make sure that my package is in here : HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\ Known Packages\ "C:\Users\Public\Documents\RAD Studio\6.0\Bpl\MyPackage.bpl"

2 - Then i deleted my package from here HKEY_CURRENT_USER\Software\CodeGear\BDS\6.0\ Disabled Packages\ "C:\Users\Public\Documents\RAD Studio\6.0\Bpl\MyPackage.bpl"

3 - i uninstall and reinstall my package.

Now it works again

ffert2907
  • 370
  • 4
  • 16
  • 3
    You don't need to declare the package to be known. That gets done for you when you install the package. Step 1 is redundant. The key is step 2. – David Heffernan Oct 17 '16 at 11:45
  • 1
    Also make sure the test project has not added the package to the `Excluded_Packages` field of its `.dproj` file. – Remy Lebeau Oct 17 '16 at 21:43
  • This worked for me too, except in D7 the key is here: HKEY_CURRENT_USER\SOFTWARE\Borland\Delphi\7.0\Disabled Packages\. I had an error with one of my packages and I think I accidentally clicked "No" to the prompt do you want to load this package next time. Normally one could just manually re-install the packages and it would work fine but, possibly new for Win10, I had to manually delete them from this Disabled Packages registry key. – FreeText Feb 06 '17 at 14:49
3

This information is held in the registry. For Delphi 2009 look in:

HKCU\Software\CodeGear\BDS\6.0\Disabled Packages

Your package should be listed there. Delete the value for your package, and restart Delphi.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490