允许通过共享文件夹上的应用程序查看 CHM 文件

问题描述:

我们的用户希望通过单击帮助图标(应用程序菜单中的问号)通过应用程序查看 CHM 帮助文档.应用程序是 MiniTab.MiniTab 应用程序通常是每个工作站安装,但我们希望通过网络共享运行该应用程序.当我们尝试通过应用程序查看帮助时,我得到一个标准的 Windows 帮助对话框,但内容是空白的.

Our users want the see CHM help docs through the application by clicking on the help icon (question mark in the application menu). Application is MiniTab. MiniTab application is usually a per workstation install but we want to run the app through network share. When we try to view help through the application, I get a standard Windows Help dialogue but the content is blank.

使用 KB 892675 实现 Microsoft 提供的大量注册表信息 https://support.microsoft.com/en-us/kb/892675,如果我将注册表项 ItssRestrictions 和 MaxAllowedZone 值设置为 2,我成功地双击以查看 UNC 文件共享上的 CHM 文件.

Implementing all of the plethora of registry information from Microsoft with KB 892675 https://support.microsoft.com/en-us/kb/892675, I successfully double-click to view the CHM file on a UNC file share if I set Registry Key ItssRestrictions and value MaxAllowedZone to 2.

用于查看共享文件夹中 CHM 文件的良好 PowerShell 代码:

Good PowerShell code to view CHM files on shared folder:

$registryPath = "HKLM:\SOFTWARE\Microsoft\HTMLHelp\1.x"
$name = "ItssRestrictions"
# New Reg Key
New-Item -Path $registryPath -Name $name
$registryPath = "HKLM:\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions"
$name = "MaxAllowedZone"
$value = 2
Set-ItemProperty -LiteralPath $registryPath -Name $name -Value $value -Force
# Verify your changes
Get-ChildItem "HKLM:\SOFTWARE\Microsoft\HTMLHelp\1.x"

此外,按照 MS KB,我尝试允许嵌套协议并将 CHM UNC、file://"前缀和映射驱动器格式列入白名单.没有任何效果.

Furthermore, following the MS KB, I tried allowing nested protocol and white listing the CHM UNC, 'file://' prefix and also mapped drive format. Nothing works.

尝试通过应用程序查看帮助文件后,事件查看器有一条消息:无法找到来自源 ITSS 的事件 ID 1 的描述.引发此事件的组件未安装在您的本地计算机上,或者安装已损坏.您可以在本地计算机上安装或修复该组件.

After trying to view the Help file through the application, event viewer has a message: "The description for Event ID 1 from source ITSS cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repaired the component on the local computer.

如果事件起源于另一台计算机,则显示信息必须与事件一起保存.

If the event originated on another computer, the display information had to be saved with the event.

活动中包含以下信息:

\UNCPathToTheCHMFolder\Mtb.chm"

\UNCPathToTheCHMFolder\Mtb.chm "

抱歉,我没有使用正确的注册表术语.我仍在学习 Windows 注册表的魔力.

Sorry if I didn't use the right terminology for Registry. I'm still learning the magic of Windows Registry.

我的直觉是 MS 对打开 CHM 文件的应用程序的未公开限制.任何建议将不胜感激.

My gut feeling is an undocumented MS restriction on applications from opening CHM files. Any recommendation would be appreciated.

请避免推荐将应用本地安装或复制到工作站的标准做法.我们已经监控了本地安装并为应用程序设置了适当的注册表设置.谢谢,但我知道如果我将应用程序本地复制到工作站,CHM 文件将起作用,并且此时我们无法进行本地安装.

Please avoid recommending the standard practice of installing or copying the app locally to the workstation. We have monitored the local install and set the appropriate registry settings for the application. Thanks but I know the CHM files will work if I copy the app locally to the workstation and we're beyond local installs at this point.

您可能已经通过 Google 搜索了一段时间.由于许多环境,请深入查看我在下面列出的链接.请评论您已经知道哪一个.

You may have searched for a while by Google. Because of many environments please go deeper into following links I listed below. Please comment which one you know already.

HelpwareGroup 知识库:安全更新中断 HH

HelpwareGroup knowledge base: Security Updates Break HH

Peter Grainge 的信息:CHM 文件不工作

Peter Grainge's Info: CHM Files Not Working

MGTEK 帮助制作人:网络共享上的 CHM 帮助文件无法正确显示

MGTEK Help Producer: CHM help files on network shares do not display correctly

汤姆的笔记:共享文件夹中的 HTML 帮助 CHM 文件

请注意:确保在 32 位和 64 位 UrlAllowList 注册表位置中放置相同的 URL.您必须将每个 UNC 路径包含两次,一次以\"开头,第二次以file://\"开头,以涵盖可以访问帮助内容的不同场景.

Please note: Make sure to put the same URL’s in both the 32 and 64-bit UrlAllowList registry locations. You MUST include each UNC path twice, once beginning with "\" and a second time beginning with "file://\" to cover different scenarios under which the help content may be accessed.

HHReg 帮助 &手动的:网络驱动器上的 CHM 文件

HHReg Help & Manual: CHM files on network drives