简体   繁体   English

如何手动将HTML帮助文件注册到Delphi(RAD Studio)XE6在线文档中?

[英]How can I manually register an html-help file into the Delphi (RAD Studio) XE6 online documentation?

When a delphi component installer like the Developer Express components runs, it registers html-help files into the Delphi IDE, using h2reg and an INI file, and some macro-magic. 当运行诸如Developer Express组件之类的delphi组件安装程序时,它将使用h2reg和INI文件以及一些宏魔术函数将html帮助文件注册到Delphi IDE中。 If I was an open source or commercial author of a Delphi component, and I wanted to ship an installer that registers html-help, how would I do it? 如果我是Delphi组件的开放源代码或商业作者,并且想提供一个注册html-help的安装程序,我该怎么做?

In very very old versions of Delphi (pre-2007) there was a tool for registering extra winhelp stuff. 在非常旧的Delphi版本(2007之前)中,有一个用于注册额外的winhelp内容的工具。 But in recent years, while many large vendors (like developer express) still ship help for their components which can be accessed using the IDE context help (hit F1 key), it does not seem like in Delphi 2007 and up, including XE6, that the process by which this is done is well documented and this leaves component authors usually ignoring the Delphi IDE built in help. 但是近年来,尽管许多大型供应商(如开发人员Express)仍在为他们的组件提供帮助,可以使用IDE上下文帮助(按F1键)进行访问,但在Delphi 2007及更高版本(包括XE6)中似乎并没有完成此过程的过程已得到充分记录,因此组件作者通常会忽略内置在帮助中的Delphi IDE。

I have discovered that a third-party utility called h2reg may have something to do with this, but I am unable to discover the secret of making something show up here: 我发现一个名为h2reg的第三方实用程序可能与此有关,但是我无法发现在此处显示某些内容的秘密:

在此处输入图片说明

I believe I know a FEW pieces of the puzzle, and I have a sample working .ini file from a Developer Express component, but I am unable to figure out how to put the pieces together. 我相信我知道其中的一些难题,并且我有一个来自Developer Express组件的工作中的.ini文件示例,但是我无法弄清楚如何将它们拼在一起。 I think that this would be a useful fact for all Delphi component developers to know, so I'm asking this question here. 我认为这对于所有Delphi组件开发人员来说都是一个有用的事实,因此我在这里提出这个问题。

A related question asks how to repair the built in stuff. 一个相关的问题询问如何修复内置的东西。 I'm asking further, how to register your own html-help ( .hxs, .hxc,*.hxt) documentation. 我想进一步询问如何注册自己的html帮助( .hxs, .hxc,*。hxt)文档。

Update: 更新:

Part of the solution seems to be knowing H2REG's syntax which looks like this: 解决方案的一部分似乎是了解H2REG的语法,如下所示:

   c:\path\to\H2Reg.exe -r cmdfile=c:\path\to\MyH2Reg_Cmd.ini

A remaining unknown is what goes in that INI file, so that it shows up in Delphi XE6. 该INI文件中保留的内容仍然未知,因此它会显示在Delphi XE6中。

There is some minimal documentation on Embarcadero's site (and yes, it does involve h2reg): 在Embarcadero的网站上有一些最少的文档(是的,它确实涉及h2reg):

Installing dexplore.exe Help Content Files 安装dexplore.exe帮助内容文件

Which has a link to this product site: 包含指向该产品站点的链接:

H2Reg H2Reg

Which has this KB page: 哪个具有此KB页面:

H2 & Borland Help H2和Borland帮助

Not exactly what you are looking for, but should get you close. 并非您要找的东西,但应该使您与您保持联系。 It sounds like you are trying to itegrate your help files into DExplorer manually instead of using a pre-existing solution to install your help files properly. 听起来您正在尝试手动将帮助文件整合到DExplorer中,而不是使用现有解决方案正确安装帮助文件。

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

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