I have a couple of questions as shown below. CHM (compiled HTML file)
There is a link in my CHM file to launch a 32-bit application. CHM file encoded in Javascript. This works great in a 32-bit OS environment.
But this does not work in a 64-bit environment. The reason is that when you open the chm file, the 64-bit version of hh.exe (the executable file of the operating system) runs and starts chm. And chm loads into a 64-bit environment.
And now I can not start a 32-bit application from a CHM file, because a 64-bit process cannot load a 32-bit process.
Is there a way to make it work for a 64-bit OS?
I was thinking of several solutions as shown below, but I do not know how to implement them.
1) In Javascript code, if I could check if the OS is 32-bit or 64-bit. Then I could pop up a well-defined error for the user if it is a 64-bit OS.
2) Or if I can get the OS to run the 32-bit version of hh.exe, so that chm loads into a 32-bit environment and therefore does not cause any problems.
source
share