<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>apocryph.org &#187; 896054</title>
	<atom:link href="http://apocryph.org/tag/896054/feed/" rel="self" type="application/rss+xml" />
	<link>http://apocryph.org</link>
	<description>Notes to my future self</description>
	<lastBuildDate>Mon, 09 Aug 2010 16:59:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>&apos;Action Canceled&apos; When Viewing Compiled Html Help (CHM) Files on Network Share</title>
		<link>http://apocryph.org/2006/01/02/action_canceled_when_viewing_compiled_html_help_chm_files_on_network_share/</link>
		<comments>http://apocryph.org/2006/01/02/action_canceled_when_viewing_compiled_html_help_chm_files_on_network_share/#comments</comments>
		<pubDate>Tue, 03 Jan 2006 02:01:31 +0000</pubDate>
		<dc:creator>anelson</dc:creator>
				<category><![CDATA[Migrated from Drupal]]></category>
		<category><![CDATA[896054]]></category>
		<category><![CDATA[896358]]></category>
		<category><![CDATA[aenea]]></category>
		<category><![CDATA[html-help]]></category>
		<category><![CDATA[internet-explorer]]></category>
		<category><![CDATA[ms05-026]]></category>
		<category><![CDATA[sucks]]></category>
		<category><![CDATA[tech diary]]></category>

		<guid isPermaLink="false">http://apocryph.org/?p=120</guid>
		<description><![CDATA[I have a large collection of technical e-books, about half of which are in Compiled HTML (CHM) format, typically opened by MS HTML Help. I keep them on aenea, my 1TB file server, for easy access anywhere on my network. Recently I began having trouble opening the CHM files. When I would attempt to open [...]]]></description>
			<content:encoded><![CDATA[<p>I have a large collection of technical e-books, about half of which are in Compiled HTML (CHM) format, typically opened by MS HTML Help.  I keep them on <code>aenea</code>, my 1TB file server, for easy access anywhere on my network.</p>
<p>Recently I began having trouble opening the CHM files.  When I would attempt to open any of the CHM files on the network share, HTML Help would load, but it would display the well-known Internet Explorer &#8220;you&#8217;re screwed, pal&#8221; message:</p>
<blockquote><p>
    Action canceled</p>
<p>    Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable.
</p></blockquote>
<p>I immediately suspected a recent IE security patch, though I had nothing concrete to go on.  I messed around a bit with security settings, including adding <code>aenea</code> to the Trusted Sites list and ensuring that Trusted Sites has basically every imaginable permission.  Still, no joy.</p>
<p>Finally, I&#8217;ve come across KB <a href="http://support.microsoft.com/kb/896358">896358</a>, which pertains to the MS security patch MS05-026.</p>
<p>KB 896358 lists a few things that this patch breaks, and things you can try to fix them.  The one that jumps out at me is:</p>
<blockquote><p>
    Certain Web sites and HTML Help features may not work after you install security update 896358 or security update 890175
</p></blockquote>
<p>This particular problem is covered in detail in a separate KB, <a href="http://support.microsoft.com/kb/892675/">892675</a>.</p>
<p>From that article, here&#8217;s the cause:</p>
<blockquote><p>
    This problem occurs because security update 896358 and 890175 prevent HTML content that is outside the Local Machine zone from creating an instance of the HTML Help ActiveX control (HHCTRL). This change was introduced to reduce security vulnerabilities in HTML Help.
</p></blockquote>
<p>Pure genius.  Well, clearly, I trust the content on <code>aenea</code> to be safe, so how can I override this padded-cell protect-me-from-myself bullshit?  Read on&#8230;</p>
<blockquote><p>
    <strong>Warning</strong> The symptoms are an expected and intended effect of installing the security updates. This section provides examples for administrators who must re-enable the HTML Help ActiveX control for business-critical programs. The workarounds may make the computer more vulnerable to the threats the security updates address. The safest course is not to use the registry workarounds. If you must use workarounds, set the registry values to be as restrictive as possible.
</p></blockquote>
<p>Outstanding; the fix broke HTML Help on purpose, and the fix of the fix re-introduces a security vulnerability.  Just the kind of trade-off to make me want to pay rapacious Microsoft licensing fees.</p>
<blockquote><p>
    <strong>Warning</strong> Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
</p></blockquote>
<p>Yeah, and?  Caution: Suicide can be dangerous.</p>
<p>Anyway, the first attempt:</p>
<h2>Example 1: Use the UrlAllowList entry to enable specific URLs</h2>
<p>Warning Include only URLs for sites that you trust.</p>
<p>The .reg file in this example re-enables hosting of the HTML Help ActiveX control in the following remote content:</p>
<ul>
<li>Any .chm files that are in the \productmanuals\helpfiles folder</li>
<li>A Web application that located at http://www.wingtiptoys.com/help.</li>
</ul>
<p>Paste the following text in a text editor such as Notepad. Then, save the file by using the .reg file name extension.</p>
<pre><code>REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\HHRestrictions]
"UrlAllowList"="\\productmanuals\helpfiles;http://www.wingtiptoys.com/help/"
</code></pre>
<p>You cannot use wildcard characters in the URL string of any site that is added to the UrlAllowList registry key. For example, you cannot use the following URL string:</p>
<pre><code>"UrlAllowList"="http://*.wingtiptoys.com"
</code></pre>
<p>However, you can use the following URL string:</p>
<p>&#8220;UrlAllowList&#8221;=&#8221;http://help.wingtiptoys.com&#8221;</p>
<p>This string lets the following sites host the HTML Help ActiveX control:</p>
<ul>
<li>http://help.wingtiptoys.com/research</li>
<li>http://help.wingtiptoys.com/sales</li>
</ul>
<h2>Results of Example 1</h2>
<p>So I&#8217;ll allow <code>aenea</code>&#8216;s UNC path.  Awesome.</p>
<p>That didn&#8217;t help.  I&#8217;ll try the even less secure option:</p>
<h2>Example 2: Use the MaxAllowedZone entry to enable a security zone</h2>
<p>Warning The MaxAllowedZone entry enables all sites in a particular zone. Using the UrlAllowList entry may be safer. If you must use the MaxAllowedZone entry, set the value no higher than is required. If you set the MaxAllowedZone value to 3 or higher, you expose systems to attack from the Internet.</p>
<p>Note By default, the value for the MaxAllowedZone entry is set to zero. The following table summarizes how different entries are interpreted by the value for the MaxAllowedZone entry.</p>
<p>(snipped)</p>
<p>Paste the following text in a text editor such as Notepad. Then, save the file by using the .reg file name extension. This .reg file lets all content in the Intranet zone host the HTML Help ActiveX control.</p>
<pre><code>REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\HHRestrictions]
"MaxAllowedZone"=dword:00000001
</code></pre>
<h2>Results of Example 2</h2>
<p>Hmm, that didn&#8217;t help either.  I wonder if this isn&#8217;t the problem that&#8217;s preventing me from opening HTML Help files&#8230;</p>
<p>That&#8217;s right, it&#8217;s not.  The cause of the problem is described in <a href="http://support.microsoft.com/kb/896054/">KB 896054 &#8211; You cannot open remote content by using the InfoTech protocol after you install security update 896358, security update 840315, or Windows Server 2003 Service Pack 1</a>.</p>
<p>The fix is the similar to the one I tried above, but the registry key is <code>ItssRestrictions</code> instead of <code>HHRestrictions</code>.  Thus:</p>
<pre><code>REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"UrlAllowList"="\aenea\filestor\;file://\aenea\filestor"
</code></pre>
<p>Does the trick for me.  Note that you must specify each UNC path using both the UNC and URI notation.  Specifying just <code>\aenea\filestor</code> does not work.</p>
<p>This sucks pretty profoundly, but at least there&#8217;s a workaround.</p>
]]></content:encoded>
			<wfw:commentRss>http://apocryph.org/2006/01/02/action_canceled_when_viewing_compiled_html_help_chm_files_on_network_share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
