简体   繁体   English

当我启动Delphi时,Delphi包没有加载

[英]Delphi package not Loading when i start Delphi

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 " ... 然后,当我正在处理我错误地点击消息不要在下一个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). 即使我卸载,清理我的包......在我重新编译并成功重新安装之后:Delphi向我展示了我的组件已成功编译和注册的消息(已识别并添加了一些新组件: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" 我“希望”当我再次加载我的测试项目时,我的组件仍然会出现在我的表单上,但是我收到的消息是“找不到类TMyComponent。忽略错误并继续?注意:这可能会删除组件或丢失的属性值“

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 . 如果我重新启动delphi,程序包将再次取消选中并仍然被禁用

How can i re-activate this package to be load when i start Delphi as usual ? 当我像往常一样启动Delphi时,如何重新激活此包以加载? (Delphi-2009) (DELPHI-2009)

I found something while i was searching in windows registry (Regedt32.exe): 我在Windows注册表(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" 1 - 我确保我的包在这里 :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" 2 - 然后我从这里删除我的包 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. 3 - 我卸载并重新安装我的包。

Now it works again 现在再次运作

This information is held in the registry. 此信息保存在注册表中。 For Delphi 2009 look in: 对于Delphi 2009,请查看:

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

Your package should be listed there. 你的包裹应该列在那里。 Delete the value for your package, and restart Delphi. 删除包的值,然后重新启动Delphi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM