JSI Tip 6059. Features in HTML Help allow executables to be run?

HTML Help provides features to run executable programs from a .chm file:

- The Shortcut command is used to run a program that is external to the help file.

- The WinHelp command runs Winhlp32.exe to display .hlp files.

You can restrict which Help files are allowed to use the Shortcut and WinHelp commands.

To disable the commands for all Help files:

1. Copy / Paste the following to a DisableAll.reg file:

REGEDIT4

\[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\]
"HelpQualifiedRootDir"=""

2. Merge the DisableAll.reg file with your registry or run regedit /s DisableAll.reg.

NOTE: When trying to use the commands in a Help file that is not specified, nothing happens.

To enable the commands for the default help file locations:

1. Copy / Paste the following to a EnableAll.reg file:

REGEDIT4

\[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\]
"HelpQualifiedRootDir"= "%windir%\help;%windir%\pchealth\helpctr;%program files%"

NOTE: Multiple locations are separated by semicolons (;). Only folders on the local computer are allowed. You cannot use a mapped network drive or UNC path.

2. Merge the EnableAll.reg file with your registry or run regedit /s EnableAll.reg.

To enable the commands in C:\YourHelpFolder:

1. Copy / Paste the following to a EnableMyHelp.reg file:

REGEDIT4

\[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\]
"HelpQualifiedRootDir"= "C:\YourHelpFolder"

2. Merge the EnableMyHelp.reg file with your registry or run regedit /s EnableMyHelp.reg.

To enable the commands for the default help file locations and C:\YourHelpFolder:

1. Copy / Paste the following to a EnableDefaultPlus.reg file:

REGEDIT4

\[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System\]
"HelpQualifiedRootDir"= "C:\YourHelpFolder;%windir%\help;%windir%\pchealth\helpctr;%program files%"

2. Merge the EnableDefaultPlus.reg file with your registry or run regedit /s EnableDefaultPlus.reg.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish