Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Windows store its "Open With" settings?

I'm trying to programmatically check file associations by the file extension (for example .jnlp files). I keep reading that

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JNLPFile\Shell\Open\Command 

is the Registry key to check. However, if you change the association through Windows Explorer:

Open With > Choose Program > (Always use the selected program)

the change isn't at all reflected in this Registry key. Where else is this information stored?

like image 685
mitch Avatar asked Oct 13 '10 14:10

mitch


People also ask

Where are Windows apps settings stored?

Applications in windows often store their settings and temporary data in the AppData Folder. Each windows user account has its own AppData folder.

Where are Windows store files stored?

Viewing the location of programs and apps downloaded from the Microsoft Store. Programs and apps downloaded from the Microsoft Store are installed in the following path by default: C:/Program Files/WindowsApps (Hidden items). To check hidden items, open This PC, click View and select Hidden items.

Where are Hkey files located?

HKEY_LOCAL_MACHINE (HKLM) On Windows NT, this key contains four subkeys, "SAM", "SECURITY", "SYSTEM", and "SOFTWARE", that are loaded at boot time within their respective files located in the %SystemRoot%\System32\config folder.


1 Answers

Take a look in:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ 

and the sub-key of that is the extension you reassigned. Under that there will be the UserChoice and OpenWithList sub-keys which will contain your redefinition.

You may also want to read http://support.microsoft.com/kb/950505 which talks about your issue.

Update

As of Windows 8, life has gotten far more complicated. To create an extension association a custom hash needs to get calculated.

Fortunately, someone has reverse engineered the process and created a PowerShell script to do this without having to go through any GUI.

You can find it at the following GitHub link:

https://github.com/DanysysTeam/PS-SFTA

like image 68
Michael Goldshteyn Avatar answered Oct 05 '22 18:10

Michael Goldshteyn