delphinetwork-programmingchmhelpfile

Helpfile (.chm) on network drive not opening from delphi(.exe) application


Application exe along with chm help file is placed within a folder on network drive in Windows7.

Initially help(.chm) did not work(open fine but content wont appear) and security settings(trust applied) were changed and now we can double click to open the Help(chm) file correctly.

Problem: The issue is that the same help(.chm) fails to open when tried from within Delphi 6 application.

In delphi, help file code is as: Application.HelpFile='helpfilename.CHM'

Another interesting thing is the help file work from within application when application folder is placed in a local drive.

Thanks for the Help !!


Solution

  • Windows blocks web and network content by default for HTML Help. There is a registry setting that can be applied that allows named content to be allowed through (we use this regularly for our customers).

    Key: HKLM\Software\Microsoft\HTMLHelp\1.x\ItssRestrictions
    Value: URLAllowList="\\networkpath\helpfolder";
    

    Obviously change the path and directory name to suit. This is a semi-colon separated list.