Since the app was portable (no actual installation was performed, neither it was available), Windows still somehow memorized the wrong file association. This step is optional, however, in my case it was required. STEP 4: Temporarily Uninstall or Remove Associated App Once you perform the keys deletion procedure, your file should no longer be associated with the old app, and, in fact, you should be back to the previous stage, as if you never associated it with in the first place. Microsoft Windows 10 – HKEY_USERS Identities However, they are technically called keys. Now, we need to delete all keys of our extension represented as directory (folder) icons in Registry Editor’s tree, so I may refer to them as ‘folder’, ‘directory’ or ‘directories’ on occasion. And then F3 function key (or alternatively Edit > Find Next command) to jump to the next one, then next, in cyclic order. There are other places, as well, for example, at least several S-1-5-some-long-numbers-here sections each containing file extension associations, so manually navigating through a tree with million rows and branches can be a tedious job.Ĭomputer\HKEY_USERS\S-1-5-IDENTITY-STRING-1\Software\Microsoft\Windows\CurrentVersion\FileAssociations\Ĭomputer\HKEY_USERS\S-1-5-IDENTITY-STRING-2\Software\Microsoft\Windows\CurrentVersion\FileAssociations\Ĭomputer\HKEY_USERS\S-1-5-IDENTITY-STRING-3\Software\Microsoft\Windows\CurrentVersion\FileAssociations\Ĭomputer\HKEY_USERS\ S-1-5-IDENTITY-STRING_Classes\ However, this is just one place that holds information about extensions and file associations. You can also copy/paste above path directly to the path indicator / input box (outlined in rectangle-shaped red border in above screenshot). Microsoft Windows 10 – File Extension Associations In Registry – HKEY_CURRENT_USER Right-click on regedit and select Run as administrator option (just in case, it may not be required). This is very straightforward – just click on START button at the corner (or alternatively magnifier/loupe icon) and start typing “registry” somewhere. Ok, now that that legal crap is settled, let’s move on to business, shall we? STEP 1: Run Windows Registry I will not be responsible for any damage to your computer you do by following this tutorial and messing up with it! If you don’t know how to make a backup copy of Windows Registry, maybe you should learn that step first, and then return here. Before you proceed, make a backup copy of it! Did you make a backup copy? Ok, continue reading. Before you proceed, make a backup copy of it. Of course, we need to edit Windows Registry. Well, it turns out this is fairly simple to do, however, there are few gotchas that I experienced by doing this. How can we easily fix this without any 3rd party software? How To RESET File Association with App / Program In Windows 10? Var sb = new Windows 10 Open With File Prompt throw new InvalidOperationException("Could not determine associated string") Uint ret = AssocQueryString(assocF, association, assocString, null, null, ref length) Internal static string AssocQueryString(AssocF assocF, AssocStr association, string assocString) Return AssocQueryString(AssocF.None, AssocStr.Executable, extension) Public static string AssocQueryString(string extension) Static extern uint AssocQueryString(AssocF flags, AssocStr str, string pszAssoc, string pszExtra, pszOut, ref uint pcchOut) Here's a powershell implementation as he mentioned mostly derived from this: $Signature = System Therefore the results of the ftype command therefore are not usuable to determine which application is associated with a specific file extension.Īs mentioned by Eryk Sun, you can get it with AssocQueryString. It reads the HKCR\htmlfile\shell\open\command\(Default) registry key and prints out the result. The ftype command however is not aware of the above registry key. If the hash is invalid, windows will reset the user choice to the default application. The correct Hash value proves that the UserChoice ProgId value was set by the user, and not by any other application. The key contains a Prog-Id and a Hash Value. Therefore a new registry key was introduced and Windows now writes the user choice to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\\UserChoice This probably was due to security reasons and trouble with applications hijacking file type associations. This is due to the fact that Microsoft decided in Windows 8 that users should be able to set default programs only via the built in GUI. It seems that ftype and assoc are pretty useless on systems running Windows 8 or later.
0 Comments
Leave a Reply. |