如何将HLP文件转换成CHM文件
How to convert HLP files into CHM files
我需要一些帮助,我有一些 .hlp
文件,我想将其转换为 .chm
文件,因为 .hlp
文件不 运行 Windows 10.
我该怎么做?
根据您的要求,我看到了两个或更多解决方案:
- 将 WinHelp (HLP) 转换为 HTML帮助 (CHM) 或 PDF
- 运行正在 Windows10
上安装 WinHelp 文件
将 WinHelp (HLP) 转换为 HTMLHelp (CHM):
我网站上的教程提供了 step-by-step description 如何在 freeware/shareware 和 "low budget" 级别上将 WinHelp (HLP) 转换为 HTMLHelp (CHM)。下载部分的转换项目示例包括工作结构和示例文件。
您当然可以使用像 Help+Manual, HelpScribble 这样的帮助创作工具 (HAT) 或任何其他 HAT 将现有的 WinHelp 项目转换为 HTMLHelp。
运行 Windows 10 上的 WinHelp:
WinHelp (.hlp) 格式早在 1990 年代就已存在,并被 HTML 帮助 1.x (.chm) 取代。大约十年前,Microsoft 强烈建议您离开 WinHelp。但是对于测试应用程序,它在我的 Windows10 机器上 运行ning 就像一个魅力。
但需要一些繁重的步骤来修复过去的 WinHelp 查看器。请注意,我在这里没有提到 *.chm 帮助文件的 HTMLHelp Viewer。
执行解决方案步骤取决于您的 Windows 10 版本(32 位或 64 位)。要找出您的系统类型(32 位或 64 位),请按住 Windows+R。在出现的 运行 对话框中键入 msinfo32
,然后按 Enter。
您知道,尝试打开 Microsoft 支持页面上的帮助文件 (*.hlp) 结果。Error opening Help in Windows-based programs: "Feature not included" or "Help not supported"。
您会找到 link Windows 8.1 的下载,但您必须以特殊方式安装 Windows 10 (Windows8.1-KB917607-x64.msu).
- 以管理员身份启动命令提示符(请注意 - 此处为德语示例)!
将下载的 .msu 文件解压缩到临时目录
md msu-extracted
expand Windows8.1-KB917607-x64.msu /f:* .\msu-extracted
提取包含 279 个文件的 CAB 文件。
cd msu-extracted
md cab-extracted
expand Windows8.1-KB917607-x64.cab /f:* .\cab-extracted
根据您的语言设置找到匹配的 MUI 文件,例如使用 "cs-"、“de-”或 "en-"。使用 x86 变体的人需要 运行 “dir x86*de-*”。
cd cab-extracted
导航到您的语言的给定路径“... de-de ...”例如:
cd amd64_microsoft-windows-winhstb.resources_31bf3856ad364e35_6.3.9600.20470_de-de_1ab8cd412c1028d0
在这里我们会找到“winhlp32.exe.mui”。现在我们需要更换例如
%SystemRoot%\de-de\winhlp32.exe.mui 和我们的新文件:
takeown /f "%SystemRoot%\de-de\winhlp32.exe.mui"
icacls "%SystemRoot%\de-de\winhlp32.exe.mui" /grant "%UserName%":f
ren %SystemRoot%\de-de\winhlp32.exe.mui winhlp32.exe.mui.w10
copy winhlp32.exe.mui %SystemRoot%\de-de\winhlp32.exe.mui
takeown /f "%SystemRoot%\winhlp32.exe"
icacls "%SystemRoot%\winhlp32.exe" /grant "%UserName%":f
ren %SystemRoot%\winhlp32.exe winhlp32.exe.w10
cd ..
dir *.exe /s
找到以 amd64 或 x86 开头的正确路径并导航
对它:
cd "amd64_microsoft-windows-winhstb_31bf3856ad364e35_6.3.9600.20470_none_1a54d9f2f676f6c2"
copy winhlp32.exe %SystemRoot%\winhlp32.exe
编辑:
您不需要在最后一个 cd
命令步骤中替换 _none_
(所有单个步骤都在 2017-09-01 和 2018-08-24 测试并正在处理 Windows 10).
Microsoft Windows 主更新后,上述解决方法已重置。
编辑:(复制表格评论,感谢@dxiv)
最后几个步骤的替代方法是将 winHlp32 文件完全复制到其他地方,例如 C:\etc[\de-de],然后重新关联 ftype hlpfile=C:\etc\winHlp32 %1在提升的命令提示符下。这避免了与 sfc 和未来 windows 更新的冲突,并且 HLP 在通过关联打开时仍然有效(在资源管理器中双击,或在 cmd 提示符下启动 old.hlp)。
好吧各位,经过长时间的搜索,我的结论是:.HLP 文件不能被 Windows 8 和 10 执行,只能在 Windows 7 和更低版本中执行。 .CHM 文件可以由 Windows 8 和 windows 10 执行。因此,我必须在 Windows 10 上的 Help Development Studio 中创建新的 .chm 文件才能由它执行。我的旧文件 .HLP 已过时。这样做花了很多时间,但我对这种类型的文件了解了很多。
最后,感谢您对我的问题的贡献。
您可以使用 Chrome 扩展将 HLP 转换为 HTML:
<< CHM、HLP 查看器和提取器 >>
提议者:https://ehubsoft.herokuapp.com/chmviewer
先生您是英雄!我最终使用了 HelpScribble and using its Decompiler linked here.
引用他们的网站:
If you have an existing WinHelp file without the HPJ and RTF source files, you can download the WinHelp decompiler to recreate the HPJ and RTF sources from the HLP file. Extract the files inside helpdc21.zip into a new folder. Then you can easily decompile any .hlp file from the command prompt, by typing: helpdeco helpfile.hlp
where helpfile.hlp is the help file you want to decompile. The decompiler will generate the HPJ and RTF files, along with a series of bitmap files if the help file contains images. Use Project|Import Help Project in HelpScribble to import the help file.
这将提取 hlp
文件的源文件。
最后,只需将生成的 hpj
文件导入 HelpScribble。从那里您可以使用选项 Make Flat Manual.
简单地导出到 html 文件
繁荣。完成。
我需要一些帮助,我有一些 .hlp
文件,我想将其转换为 .chm
文件,因为 .hlp
文件不 运行 Windows 10.
我该怎么做?
根据您的要求,我看到了两个或更多解决方案:
- 将 WinHelp (HLP) 转换为 HTML帮助 (CHM) 或 PDF
- 运行正在 Windows10 上安装 WinHelp 文件
将 WinHelp (HLP) 转换为 HTMLHelp (CHM):
我网站上的教程提供了 step-by-step description 如何在 freeware/shareware 和 "low budget" 级别上将 WinHelp (HLP) 转换为 HTMLHelp (CHM)。下载部分的转换项目示例包括工作结构和示例文件。
您当然可以使用像 Help+Manual, HelpScribble 这样的帮助创作工具 (HAT) 或任何其他 HAT 将现有的 WinHelp 项目转换为 HTMLHelp。
运行 Windows 10 上的 WinHelp:
WinHelp (.hlp) 格式早在 1990 年代就已存在,并被 HTML 帮助 1.x (.chm) 取代。大约十年前,Microsoft 强烈建议您离开 WinHelp。但是对于测试应用程序,它在我的 Windows10 机器上 运行ning 就像一个魅力。
但需要一些繁重的步骤来修复过去的 WinHelp 查看器。请注意,我在这里没有提到 *.chm 帮助文件的 HTMLHelp Viewer。
执行解决方案步骤取决于您的 Windows 10 版本(32 位或 64 位)。要找出您的系统类型(32 位或 64 位),请按住 Windows+R。在出现的 运行 对话框中键入 msinfo32
,然后按 Enter。
您知道,尝试打开 Microsoft 支持页面上的帮助文件 (*.hlp) 结果。Error opening Help in Windows-based programs: "Feature not included" or "Help not supported"。
您会找到 link Windows 8.1 的下载,但您必须以特殊方式安装 Windows 10 (Windows8.1-KB917607-x64.msu).
- 以管理员身份启动命令提示符(请注意 - 此处为德语示例)!
将下载的 .msu 文件解压缩到临时目录
md msu-extracted
expand Windows8.1-KB917607-x64.msu /f:* .\msu-extracted
提取包含 279 个文件的 CAB 文件。
cd msu-extracted
md cab-extracted
expand Windows8.1-KB917607-x64.cab /f:* .\cab-extracted
根据您的语言设置找到匹配的 MUI 文件,例如使用 "cs-"、“de-”或 "en-"。使用 x86 变体的人需要 运行 “dir x86*de-*”。
cd cab-extracted
导航到您的语言的给定路径“... de-de ...”例如:
cd amd64_microsoft-windows-winhstb.resources_31bf3856ad364e35_6.3.9600.20470_de-de_1ab8cd412c1028d0
在这里我们会找到“winhlp32.exe.mui”。现在我们需要更换例如 %SystemRoot%\de-de\winhlp32.exe.mui 和我们的新文件:
takeown /f "%SystemRoot%\de-de\winhlp32.exe.mui" icacls "%SystemRoot%\de-de\winhlp32.exe.mui" /grant "%UserName%":f ren %SystemRoot%\de-de\winhlp32.exe.mui winhlp32.exe.mui.w10 copy winhlp32.exe.mui %SystemRoot%\de-de\winhlp32.exe.mui takeown /f "%SystemRoot%\winhlp32.exe" icacls "%SystemRoot%\winhlp32.exe" /grant "%UserName%":f ren %SystemRoot%\winhlp32.exe winhlp32.exe.w10 cd .. dir *.exe /s
找到以 amd64 或 x86 开头的正确路径并导航 对它:
cd "amd64_microsoft-windows-winhstb_31bf3856ad364e35_6.3.9600.20470_none_1a54d9f2f676f6c2" copy winhlp32.exe %SystemRoot%\winhlp32.exe
编辑:
您不需要在最后一个 cd
命令步骤中替换 _none_
(所有单个步骤都在 2017-09-01 和 2018-08-24 测试并正在处理 Windows 10).
Microsoft Windows 主更新后,上述解决方法已重置。
编辑:(复制表格评论,感谢@dxiv)
最后几个步骤的替代方法是将 winHlp32 文件完全复制到其他地方,例如 C:\etc[\de-de],然后重新关联 ftype hlpfile=C:\etc\winHlp32 %1在提升的命令提示符下。这避免了与 sfc 和未来 windows 更新的冲突,并且 HLP 在通过关联打开时仍然有效(在资源管理器中双击,或在 cmd 提示符下启动 old.hlp)。
好吧各位,经过长时间的搜索,我的结论是:.HLP 文件不能被 Windows 8 和 10 执行,只能在 Windows 7 和更低版本中执行。 .CHM 文件可以由 Windows 8 和 windows 10 执行。因此,我必须在 Windows 10 上的 Help Development Studio 中创建新的 .chm 文件才能由它执行。我的旧文件 .HLP 已过时。这样做花了很多时间,但我对这种类型的文件了解了很多。 最后,感谢您对我的问题的贡献。
您可以使用 Chrome 扩展将 HLP 转换为 HTML: << CHM、HLP 查看器和提取器 >> 提议者:https://ehubsoft.herokuapp.com/chmviewer
先生您是英雄!我最终使用了 HelpScribble and using its Decompiler linked here.
引用他们的网站:
If you have an existing WinHelp file without the HPJ and RTF source files, you can download the WinHelp decompiler to recreate the HPJ and RTF sources from the HLP file. Extract the files inside helpdc21.zip into a new folder. Then you can easily decompile any .hlp file from the command prompt, by typing:
helpdeco helpfile.hlp
where helpfile.hlp is the help file you want to decompile. The decompiler will generate the HPJ and RTF files, along with a series of bitmap files if the help file contains images. Use Project|Import Help Project in HelpScribble to import the help file.
这将提取 hlp
文件的源文件。
最后,只需将生成的 hpj
文件导入 HelpScribble。从那里您可以使用选项 Make Flat Manual.
繁荣。完成。