<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[File Association gave me more than I bargained for]]></title><description><![CDATA[<p dir="auto">So in my job there are two new types of text files that I deal with often; with two corresponding extensions.</p>
<p dir="auto">I’m not typically one to do this (certainly have NOT done it for .txt files or any other) but I ran Notepad++ in Administrator mode, went to the <code>File Associations</code> area in the Preferences and "customize"d my two extensions so that they appeared in the <code>Registered extensions</code> box.</p>
<p dir="auto">I restarted Notepad++ in non-admin mode and went back to look at my registered extensions and I was surprised to see 10 extensions there, of which my 2 were indeed present.  But what gives with the extra (and unwanted) 8 ?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/18936/file-association-gave-me-more-than-i-bargained-for</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 03:05:18 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/18936.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Feb 2020 13:12:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Wed, 19 Feb 2020 12:41:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a><br />
found some <a href="https://community.notepad-plus-plus.org/topic/14931/does-not-save-the-files-i-need-to-use/11">discussion</a> from the community.<br />
I still haven’t found the problem, maybe it was the linked post<br />
I mistakenly thought was reported as a problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50797</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 19 Feb 2020 12:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Wed, 19 Feb 2020 12:18:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> ,<br />
does not help to explain but I am pretty sure I saw once an issue<br />
reporting such behavior and as far as I remember it was due to ignoring<br />
errors within registry source code but I can’t find it anymore.<br />
As far as I remember it had something to do with <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/14074e14872642490c7e9e6483e06f87b3d3e07d/PowerEditor/src/MISC/RegExt/regExtDlg.cpp#L304" rel="nofollow ugc">this method</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50793</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50793</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 19 Feb 2020 12:18:33 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Tue, 18 Feb 2020 14:43:14 GMT]]></title><description><![CDATA[<p dir="auto">I had a flash, and found my document where I’ve taken notes on such things.  I’ll post the relevant section in case it’s helpful:</p>
<p dir="auto">File Associations</p>
<ul>
<li>
<p dir="auto">User: <code>HKCU\Software\Classes</code></p>
</li>
<li>
<p dir="auto">System: <code>HKLM\Software\Classes</code></p>
</li>
<li>
<p dir="auto">Old Way: <code>HKCR\</code></p>
<ul>
<li>I recently learned <code>HKCR</code> had actually been obsoleted a decade ago (I forget if it was Win95 or WinXP)<br />
<a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/630ed1d9-73f1-4cc0-bc84-04f29cffc13b/what-registry-keys-are-responsible-for-file-extension-association?forum=netfxbcl" rel="nofollow ugc">https://social.msdn.microsoft.com/Forums/vstudio/en-US/630ed1d9-73f1-4cc0-bc84-04f29cffc13b/what-registry-keys-are-responsible-for-file-extension-association?forum=netfxbcl</a></li>
</ul>
</li>
<li>
<p dir="auto">File Extension: <code>HKCU\Software\Classes\.ext\</code></p>
<ul>
<li><code>(Default)</code> = <code>NameOfAssociation</code> (ie, <code>PerlScript</code> or <code>txtfile</code>, etc)</li>
<li><code>PerceivedType</code> = <code>text</code> (or similar)</li>
<li><code>ShellNew\</code>
<ul>
<li>see Customized Context Menu (not included)</li>
</ul>
</li>
</ul>
</li>
<li>
<p dir="auto">Association: <code>HKCU\Software\Classes\NameOfAssociation</code></p>
<ul>
<li><code>(Default)</code> = Text Version of Name of Association (shown in Explorer)</li>
<li><code>DefaultIcon\(DEFAULT)</code> = PathToIcon</li>
<li><code>Shell\</code>
<ul>
<li><code>(Default)</code> = <code>nameOfVerb</code> (sets the default verb to run for double-click)</li>
<li><code>nameOfVerb\</code>
<ul>
<li><code>(Default)</code> = Human Readable Verb</li>
<li><code>command\(Default)</code> = <code>path\to\exe "%1" %*</code>
<ul>
<li>make it <code>REG_EXPAND_SZ</code> if you want path to include <code>%EnvironmentVariables%</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<p dir="auto"><strong>RClick &gt; “Open With” &gt; Use as Default</strong> end up here: <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\</code></p>
<ul>
<li>reference: <a href="https://stackoverflow.com/a/3924822/5508606" rel="nofollow ugc">https://stackoverflow.com/a/3924822/5508606</a></li>
<li>If you want to go back to the system default, delete <code>...\FileExts\.ext\UserChoice</code></li>
</ul>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/50774</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50774</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 18 Feb 2020 14:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Tue, 18 Feb 2020 14:35:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> said in <a href="/post/50771">File Association gave me more than I bargained for</a>:</p>
<blockquote>
<p dir="auto">I’m wondering the best way to undo the weird changes done to my registry</p>
</blockquote>
<p dir="auto">If you had used a registry-watcher utility to see exactly what changes Notepad++ made, it would be easy.</p>
<p dir="auto">In the “good old days” of Windows, where they always used <code>HKCR</code> (or, technically, it’s been using that as an alias to the appropriate sections of <code>HKCU\Software\Classes</code> for user-specific associations and <code>HKLM\Software\Classes</code> for system-level associations), I would have just gone through the <code>.ext</code> entries, and looked up their <code>FileType</code> entries, and modified or deleted those shell commands.  However, the “always use this app to open” settings in modern Windows will sometimes use different or convoluted registry entries, and I don’t always know where to look for those.  That’s why when I am playing with associations, I prefer to just use the registry directly, and avoid both in-app and windows-gui association manipulations.  Unfortunately, MS is fighting harder against that, and I’ve started to see sometimes where MS resets the app that gets used, even though my <code>HK**\Software\Classes</code> settings have remained unchanged; I’m still trying to figure out exactly how MS does the modern “default app” settings.</p>
<p dir="auto">Or, the TL;DR version: good luck with that. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50773</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50773</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Tue, 18 Feb 2020 14:35:05 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Tue, 18 Feb 2020 13:40:06 GMT]]></title><description><![CDATA[<p dir="auto">Of course now I realize (you can tell I don’t do – and don’t want to do – this kind of thing often…) that simply staying “outside” of Notepad++ and doing the following was probably the better idea, answering properly to this after double-clicking a new extension type:</p>
<p dir="auto"><img src="/assets/uploads/files/1582033096354-d28fa1cb-7cc1-46ba-8648-959fc461e7d0-image.png" alt="d28fa1cb-7cc1-46ba-8648-959fc461e7d0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">But of course now I realize I really don’t want these file associations at all, and I’m wondering the best way to undo the weird changes done to my registry from what I attempted inside of Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50771</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50771</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 18 Feb 2020 13:40:06 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Tue, 18 Feb 2020 13:21:22 GMT]]></title><description><![CDATA[<p dir="auto">Back in non-Admin mode, I attempted to remove the undesired 8 extensions from the “Registered extensions”.  They appeared to be removed just fine but on my next restart of Notepad++ I checked and they were back again.</p>
<p dir="auto">So I’m flummoxed as to what to do next.</p>
<p dir="auto">AND…I’d really like to know the proper way of doing what I tried and failed to do (simply add two extensions as “registered”).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50770</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50770</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 18 Feb 2020 13:21:22 GMT</pubDate></item><item><title><![CDATA[Reply to File Association gave me more than I bargained for on Tue, 18 Feb 2020 13:16:57 GMT]]></title><description><![CDATA[<p dir="auto">Well, if I run as Administrator again, go back in and look, only the 2 new extensions that I wanted are listed in “registered extensions”.</p>
<p dir="auto">Maybe I have some misunderstanding of this feature, but I thought you had to run in Admin mode to configure this.  Perhaps not.</p>
<p dir="auto">It still doesn’t seem to explain why, for my non-Admin mode running of Notepad++, that I went from 0 registered extensions, to 10…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/50769</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/50769</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 18 Feb 2020 13:16:57 GMT</pubDate></item></channel></rss>