<p>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.</p>

<p>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.</p>

[{'answer_id': 65672, 'author': 'Bob King', 'author_id': 6897, 'author_profile': 'https://Stackoverflow.com/users/6897', 'pm_score': 0, 'selected': False, 'text': "<p>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. </p>\n"}, {'answer_id': 71393, 'author': 'Silver Dragon', 'author_id': 9440, 'author_profile': 'https://Stackoverflow.com/users/9440', 'pm_score': 0, 'selected': False, 'text': '<p>Other than trying to convince management of the problems of this approach, you can look into the windows registry.</p>\n\n<p>Basically, if WinHelp is registered, the following registry entries are present:</p>\n\n<ul>\n<li><p>HKEY_CLASSES_ROOT \\ .hlp -> (Default) = hlpfile</p></li>\n<li><p>HKEY_CLASSES_ROOT \\ hlpfile \\ shell \\ open \\ command \\ (Default) contains the string "winhlp32.exe"</p></li>\n</ul>\n\n<p>if both of these values are correct, then winhelp is available, and registered. You can also retrieve the location of winhlp32.exe from here.</p>\n'}, {'answer_id': 129698, 'author': 'TrevH', 'author_id': 10124, 'author_profile': 'https://Stackoverflow.com/users/10124', 'pm_score': 2, 'selected': False, 'text': '<p>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.  </p>\n\n<p>Since it\'s a hotfix, this means that you should be able to query the installed hotfixes for your OS.</p>\n\n<p>The following command generates a .htm document listing all of the installed hotfixes.</p>\n\n<pre><code>wmic qfe list full /format:htable &gt;C:\\hotfixes.htm\n</code></pre>\n\n<p>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.</p>\n\n<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=6EBCFAD9-D3F5-4365-8070-334CD175D4BB&amp;displaylang=en" rel="nofollow noreferrer">Link to Microsoft KB Article on WinHelp</a></p>\n'}]
['https://Stackoverflow.com/questions/65431', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']