如何安装虚拟树视图?

发布于 2024-10-16 22:55:10 字数 2344 浏览 3 评论 0原文

Mike Lischke 的虚拟树视图在网络上和作为第三方组件似乎非常流行。我刚刚在我的机器上下载了 4.8.7 版本。

我的 2 个分区中有 Delphi 2010 和 Delphi 7.0。

点击虚拟树视图安装程序后,有日志文件提示,表示已安装成功。

我检查了 Delphi 2010,是的,它在组件面板上显示了 3 个控件。

但是当我启动Delphi 7.0时,IDE提示“无法加载VirtualtreesD7.bpl...”。我忽略它,发现虚拟树视图设计时包在列表中但未选中。如果我尝试检查它,它会再次提示“无法加载 virtualtreesD7...”。

我搜索整个磁盘并找到 VirtualTreesD7D.bpl,然后手动将其添加到设计时包列表中。它在调色板上有 3 个控件。

我快速测试了一下并退出了Delphi 7.0。但是当我重新启动Delphi 7.0时,它再次提示“无法加载VirtualtreesD7.bpl...”,它再次不在调色板上并且没有在设计时包列表中检查。

这是一个非常简单的问题。你能让我知道如何解决吗? 预先非常感谢您。

编辑:

感谢您的评论。

我测试了你的评论,但不起作用。

新问题:

如果我通过点击unins000.exe卸载虚拟treeview并仅在Delphi 7.0中重新安装,安装程序在最后一个屏幕中提示“...完成..”并且没有错误提示。当我启动Delphi 7时,虚拟树视图treeview 设计时包不在包列表中。这比上次更糟糕(上次它在包列表中但没有检查)。

我非常仔细地逐行检查该日志文件,它说:

...
...
VirtualTreesD7.dpk(39) 
VirtualTreesD7.dpk(39) 
VirtualTreesD7.dpk(41) 
VirtualTreesD7.dpk(43) 

**VirtualTreesD7D.dpk(32) Fatal: Required package 'VirtualTreesD7' not found**

为什么? 为什么没有安装成功,并且在上次安装界面没有提示安装错误。

如何解决这个“致命...未找到”问题。

谢谢大家的帮助。

新编辑:(这是答案吗?)

首先感谢您的帮助和建议。

我花了2个小时来测试并找到可能的解决方案。它可以在我的机器上运行,并且可以安装在 Delphi 7.0 中。

步骤:

1. uninstall virtual treeview by clicking unins000.exe from Delphi 7.0 ( you can separately install virtual treeview in Delphi 2010)

2. clicking newly downloaded VirtualTreeview setup 4.8.7.exe, install it in Delphi 7 folder, do not install it in default...Rad..path.  Important: INGNORE ALL ERROR PROMPTS DURING INSTALLATION (INCLUDING ERROR PROMPT IN THAT LARGE INSTALLATION LOG FILE).

3. Go to $\Virtual Treeview, right click VirtualTreesD7D.dpk, select Open with Delphi 32 development environment. A window prompts for you to compile. JUST CLICK COMPILE, DO NOT CLICK INSTALL.

4. Go to Component -> Install Packages. Go to $\Bpl folder and manually add VirtualTreesD7D.bpl into Design Package. The three controls will appear in Palette.

5. Go to folder $\Bpl and YOU MUST COPY VirtualTreesD7.bpl (NOT VirtualTreesD7D.bpl) INTO $\Bin folder.

6. Close Delphi 7 and restart it, you will find that this component is on Palette and in Package list, it is in Design package list and CHECKED.

我个人觉得Virtual treeview的安装程序需要改进,让用户在安装中免去这样的麻烦和测试。安装程序需要重写。

这是我的安装案例。我不知道它是否可以推广到所有用户。

谢谢大家。

Virtual treeview by Mike Lischke seems so popular on the web and as third party component. I just downloaded version 4.8.7 on my machine.

I have Delphi 2010 and Delphi 7.0 in 2 partitions.

Aftter clicking installer of virtual treeview, a log file prompts, saying it has been installed successfully.

I check Delphi 2010, yes, it is on component palette showing 3 controls.

But when I start Delphi 7.0, IDE prompts 'Can not load VirtualtreesD7.bpl...'. I ignore it, and find that Virtual treeview design time package is in list but UNCHECKED. If I try to check it, again it promts "Can not load virtualtreesD7...".

I search whole Disk and find a VirtualTreesD7D.bpl, and manually add it in design time package list. It is on palette with 3 controls.

I tested it quickly and exit Delphi 7.0. But when I restart Delphi 7.0, again it prompts "Can not load VirtualtreesD7.bpl...", it is again not on palatte and not Checked in design time package list.

This is very simple question. Can you let me know how to solve it?
Thank you very much in advance.

Edit:

Thanks for comments.

I tested your comments, but not work.

New problem:

If I uninstall virtual treeview by clicking unins000.exe and reinstall it only in Delphi 7.0, the installer prompts in the last screen ''...completed.." and no error prompts. When I start Delphi 7, the virtual treeview design time package is not in package list. This is even worse than the last time (last time it is in package list but not checked).

I check very carefully one line by one line of that log file, it says:

...
...
VirtualTreesD7.dpk(39) 
VirtualTreesD7.dpk(39) 
VirtualTreesD7.dpk(41) 
VirtualTreesD7.dpk(43) 

**VirtualTreesD7D.dpk(32) Fatal: Required package 'VirtualTreesD7' not found**

Why?
Why it does not successfully install and does not prompts the error in installation in the last install screen.

How to solve this "Fatal...not found" problem.

Thank you all for help.

New Edit: (Is this Answer?)

Thanks for your help and suggestion first.

I take 2 hours to test and find a possible solution. It works on my machine and it can be installed in Delphi 7.0.

Steps:

1. uninstall virtual treeview by clicking unins000.exe from Delphi 7.0 ( you can separately install virtual treeview in Delphi 2010)

2. clicking newly downloaded VirtualTreeview setup 4.8.7.exe, install it in Delphi 7 folder, do not install it in default...Rad..path.  Important: INGNORE ALL ERROR PROMPTS DURING INSTALLATION (INCLUDING ERROR PROMPT IN THAT LARGE INSTALLATION LOG FILE).

3. Go to $\Virtual Treeview, right click VirtualTreesD7D.dpk, select Open with Delphi 32 development environment. A window prompts for you to compile. JUST CLICK COMPILE, DO NOT CLICK INSTALL.

4. Go to Component -> Install Packages. Go to $\Bpl folder and manually add VirtualTreesD7D.bpl into Design Package. The three controls will appear in Palette.

5. Go to folder $\Bpl and YOU MUST COPY VirtualTreesD7.bpl (NOT VirtualTreesD7D.bpl) INTO $\Bin folder.

6. Close Delphi 7 and restart it, you will find that this component is on Palette and in Package list, it is in Design package list and CHECKED.

I personally feel that the installer of Virtual treeview needs improvements to free users from such trouble and test in installation. The installer needs rewrite.

This is my case of installation. I do not know if it can be generalized to all users.

Thank you all.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怀里藏娇 2024-10-23 22:55:10

IDE 使用 LoadLibrary(实际上是 LoadPackage)来加载已安装组件的包。这意味着它在查找文件时遵循与 LoadLibrary 相同的逻辑。

问题是 IDE 无法使用 LoadLibrary 的搜索逻辑找到该包 - 请参阅 此处的备注部分。所以解决办法就是将该文件夹添加到Delphi的库路径中(工具->选项->环境选项->Delphi选项->库-Win32),或者将其移动到系统路径上的某个位置。

The IDE uses LoadLibrary (actually, LoadPackage) to load packages for components that are installed. This means that it follows the same logic for where it looks for files that LoadLibrary does.

The problem is that the IDE can't find the package using LoadLibrary's search logic - see the Remarks section here. So the solution is to add the folder to Delphi's Library Path (Tools->Options->Environment Options->Delphi Options->Library - Win32), or move it somewhere on the system PATH.

美羊羊 2024-10-23 22:55:10

确保 virtualtrees.pas (\source) 所在的文件夹位于环境搜索路径中。

您可能需要手动安装 Delphi 7 的 *.dpk 文件。打开 D7.dpk,编译然后打开并安装 D7D.dpk(首先是运行时包,然后是设计时包)
还没有在带有 Delphi7 的 Delphi2010 上完成,但仅使用 Delphi7 安装就可以了。

*编辑

Ensure you have the folder where the virtualtrees.pas (\source) is located in the environment search path.

You may manually need to install the *.dpk file for Delphi 7. Open the D7.dpk, compile then open and install the D7D.dpk (Runtime first then Designtime package)
Haven't done it on Delphi2010 w/ Delphi7, but installing with just Delphi7 is fine.

*edited

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文