检测 Vista 或更高版本的 Windows 上是否安装了 WinHelp

发布于 2024-07-06 07:02:54 字数 201 浏览 12 评论 0原文

是否有可靠的方法来检测 Windows Vista 或更高版本的 Windows 上是否安装了 WinHelp? 如果可能的话,我想要一个不特定于任何特定 Windows 版本的解决方案。

我已将这个问题发布到其他留言板,并得到了有关安装 WinHelp 之前和之后的 Winhlp32.exe 大小的答案以及 Microsoft 记录的注册表项,但它们都不正确。

Is there a reliable way to detect whether or not WinHelp is installed on Windows Vista or newer versions of Windows? If possible, I'd like a solution that's not specific to any particular version of Windows.

I've posted this question to other message boards and got back answers regarding the size of Winhlp32.exe before and after installing WinHelp and Registry entries that Microsoft has documented, but none of them were correct.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柒夜笙歌凉 2024-07-13 07:02:54

从 Microsoft 下载的 WinHelp 似乎是启用 WinHelp 程序的修补程序 (.msu)。 这可以解释为什么大小/注册表项不会更改,因为修补程序只是原始文件的“增量”更改。

由于它是一个修补程序,这意味着您应该能够查询操作系统已安装的修补程序。

以下命令生成一个 .htm 文档,其中列出所有已安装的修补程序。

wmic qfe list full /format:htable >C:\hotfixes.htm

生成的表列出了与已安装的修补程序对应的知识库文章。 您可以搜索“917607”,因为如果您安装了 WinHelp 修补程序,则该内容应该存在。 您可以将不同的选项传递给实用程序以执行更好的搜索。 注意 - wmic 命令需要管理员权限才能运行。

有关以下内容的 Microsoft 知识库文章的链接Win帮助

The download for WinHelp from Microsoft appears to be a hotfix (.msu) that enables the WinHelp program. This would explain why the size/registry keys don't change as the hotfix is just a "delta" change from the orginal file.

Since it's a hotfix, this means that you should be able to query the installed hotfixes for your OS.

The following command generates a .htm document listing all of the installed hotfixes.

wmic qfe list full /format:htable >C:\hotfixes.htm

The table generated lists the Knowledge Base articles corresponding to the hotfix that is installed. You can search for "917607" because that should be present if you've installed the WinHelp hotfix. You may be able to pass in different options to the utility to perform a better search. NOTE - The wmic command requires admin privileges to run.

Link to Microsoft KB Article on WinHelp

勿挽旧人 2024-07-13 07:02:54

我不想这么说,但还是从 WinHelp 继续吧。 它已被弃用是有原因的。 我们只需几个小时就可以迁移到 .chm。 使用较新的帮助创作工具非常简单,并且 .chm 等较新的格式为您提供了级联样式表等好处。

I hate to say it, but move on from WinHelp. It's been deprecated for a reason. We were able to migrate to a .chm in only a few hours. It's pretty straight-forward to use the newer help authoring tools, and newer formats like .chm give you benefits like cascading style sheets.

谎言 2024-07-13 07:02:54

除了试图说服管理层解决此方法的问题之外,您还可以查看 Windows 注册表。

基本上,如果 WinHelp 已注册,则会出现以下注册表项:

  • HKEY_CLASSES_ROOT \ .hlp -> (默认)= hlpfile

  • HKEY_CLASSES_ROOT\hlpfile\shell\open\command\(默认)包含字符串“winhlp32.exe”

如果这两个值都正确,则 winhelp 可用并已注册。 您还可以从此处检索 winhlp32.exe 的位置。

Other than trying to convince management of the problems of this approach, you can look into the windows registry.

Basically, if WinHelp is registered, the following registry entries are present:

  • HKEY_CLASSES_ROOT \ .hlp -> (Default) = hlpfile

  • HKEY_CLASSES_ROOT \ hlpfile \ shell \ open \ command \ (Default) contains the string "winhlp32.exe"

if both of these values are correct, then winhelp is available, and registered. You can also retrieve the location of winhlp32.exe from here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文