How to decompile .chm files into html files ?

A

antoine

Hi all,

I am looking for a tool to decompile .chm files into simple html files.

Thanks in advance,
Antoine
 
P

PD.Lees

Antoine,
I am looking for a tool to decompile .chm files into simple
html files.

You don't actually need any tool to do this. Just open a Command Prompt
window and type the following:

hh.exe -decompile <target_directory> <path>\<filename>.chm

For example:

hh.exe -decompile c:\source_files C:\help\MyHelpFile.chm

But if you want a GUI, try Microsoft's HTML Help Workshop (File >
Decompile).

http://msdn.microsoft.com/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
 
P

PD.Lees

Onedayflyer said:
But is there also a command for 'compiling' the html files
again into the chm-file?

You first need to install the compiler components (i.e., HTML Help
Workshop) but, having done that, you can compile from the MS-DOS prompt
by typing this:

hhc <filename>.hhp

It's worth noting that the project (.hhp) file is usually not
re-created when you decompile an HTML Help file, so if you later want
to recompile the help file then you must create a new .hhp file. You
can do this with HTML Help Workshop, but the quicker option is to
decompile the help file with KeyTools
(http://www.keyworks.net/keytools.htm). This is the only decompiler
that provides the option automatically to create a .hhp file.

The decompile/recompile process isn't a "round-trip" process; certain
features that the help author added to the original help file can't be
recovered when you decompile it, so these may no longer work properly
after you've recompiled. This is especially the case in the area of
context-sensitive help, which may be broken in the new version of the
file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CHM Encoder 1
[Update] CHM Encoder 1.4 7
Read CHM Files without IE? 11
Why No Outrage at CHM files? 7
compiled help files (.chm) 1
CHM Converter 11
Alternates to HTML Help? 1
CHM of Pricelessware, here 52

Top