This post explains how to prevent the modern Photos app from taking over the defaults for all image files types. We saw how to prevent Edge from taking over the PDF and HTM association settings. The same method can be used for the Photos app, or for any other app for that matter.
When no file association (user choice) is set or if an application corrupts the UserChoice registry key while setting association, file association is automatically reset to Windows 10 defaults. For instance, Photos may takeover your image file associations after an update, or due to the above mentioned reasons and the Action Center notifies you that an app default was reset.
“An app caused a problem with the default app setting for .png, so it was reset to Photos”
2019 Update: The following registry edits no longer work in Windows v1809 (and higher). See article Fix “An App Default Was Reset” for a proper fix.
To stop Photos from hijacking the image file associations use these steps.
Start the Registry Editor (Regedit.exe) and go to:
Note: The above key only applies if you have version Photos v16.201.11370.0_x64 installed, which is the current version as of this post. If you have any other version or build number, choose the appropriate key. It will be usually in this format:
Microsoft.Windows.Photos_nn.nnn.nnnnn.n_x64__8wekyb3d8bbwe, Where the nnn… is a placeholder for the actual version/build no. Also watch out for the “bit”ness.
In the right-pane, note down the Prog IDs assigned for an image file type, say .jpg. In this case, the Prog ID for .jpg is AppX43hnxtbyyps62jhe9sqpdzxn1790zetc
(The Prog Id in this case, is the same for other image file types as well, like .PNG, .JPE, .JPEG, .JPG, .ICO, .GIF, .JFIF etc.)
Go to the following location:
In the right-pane, create a string value (REG_SZ) named NoOpenWith
This prevents Photos app from taking over the image files type associations.
Exit the Registry Editor.
Now use Default Programs or the Open With dialog to re-associate the file type with your preferred program. Note that this also hides Photos in the Open With dialog boxes for the corresponding file types. If an update removes the NoOpenWith value, or if the ProgID name changes, you’ll need to set the value again under the appropriate ProgID key.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.