Home > Knowledge Base (Content)
Sometimes you only have the CHM output file and nobody can locate the source files. It’s not always possible to recover all files and data you need.
alias.h
and map.h
files and their information for F1-Help (context sensitive help).KLink and ALink keywords are keywords that the help author have embedded in the HTML source of topics, rather than in the hhk file. These keywords are lost because stripped off when the existing old CHM file was compiled.
However, the methods below are well suited for simple structured CHM files and some changes. If you really want to decompile without installing any software, method 5 is the best choice.
First of all, you need to download and save the HtmlHelp.exe file to your disk.
UPDATE Feb-2021:
The download link https://www.microsoft.com/en-us/download/details.aspx?id=21138 was dropped by Microsoft. You can get files from web archives:
Then install the software with the default values. At the end of the installing you may receive the message, that a newer version is already installed.
You can click OK without worrying if this window is shown.
If you have FAR HTML installed, then you have the tools you need. FAR HTML is Freeware now. An installation of the Microsoft HTML Help Workshop is required for FAR HTML anyway.
Please note to answer the question after step (9) with No at the next window. The decompiled original files Table of Contents (.hhc) and an optionally existing Index (.hhk) will be overwritten otherwise!
KeyTools is a free tool that decompiles the CHM file and creates the HHP file in one process. KeyTools was available from Ralph Walden’s site and now ported by us as retired Help MVP’s to http://keyworks.helpmvp.com/. If you want to download it from my site you can click here. Some notes on the installation of KeyTools. I am not aware of any incompatibilities up to Microsft’s operating system Windows 10.
When the process is complete, close Keytools and open Windows Explorer. Browse to the HHP file and compile it e.g. using FAR HTML or Microsoft HTML Help Workshop. You will need to check the generated HHp file, the compiled CHM file and generally make sure the project is as you want it.
7zip can also unzip CHM files. To do this, simply right-click on the file or open e.g. by using a portable version of 7zip from your USD-Stick. Enter or browse to the folder and file requested.
Additional files and directories are present here, but they do not represent thematic content. These are internal binary files from the CHM file.
The hh.exe is the viewer for CHM files in Windows and can not only display CHM files but also extract CHM files. No interface - just enter this into a command prompt or PowerShell window and amend as necessary.
hh.exe -decompile <target_directory> <path>\<filename>.chm
Microsoft, HTMLHelp, CHM, decompile, HTMLHelp Workshop, FAR HTML, KeyTools, 7zip