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

若如初见. 提交于 2020-06-24 13:44:05

问题


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. 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?

In very very old versions of Delphi (pre-2007) there was a tool for registering extra winhelp stuff. 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.

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:

enter image description here

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. I think that this would be a useful fact for all Delphi component developers to know, so I'm asking this question here.

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.

Update:

Part of the solution seems to be knowing H2REG's syntax which looks like this:

   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.


回答1:


There is some minimal documentation on Embarcadero's site (and yes, it does involve h2reg):

Installing dexplore.exe Help Content Files

Which has a link to this product site:

H2Reg

Which has this KB page:

H2 & Borland Help

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.



来源:https://stackoverflow.com/questions/24577532/how-can-i-manually-register-an-html-help-file-into-the-delphi-rad-studio-xe6-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!