> How to > Data Recovery > Restore JPG/JPEG/PDF with Invalid Value for Registry Error

Restore JPG/JPEG/PDF with Invalid Value for Registry Error

Updated on May 21, 2018 by Jean to Data Recovery


When you are unable to open and view JPG/JPEG/PDF images in photo app and get error invalid value for registry, here are the solutions that fix invalid value for registry in Windows 10/8/7 and restore the image files.

Error "Invalid Value for Registry" When Open .jpg/.jpeg/.png/.gif/.pdf on Windows 10

"I've recently upgraded my computer from Windows 7 to Windows 10. When I try to open any of the JPEG photos in a photo app, I got an error message 'Invalid Value for Registry'. Now I'm prevented from opening and viewing any of the image files because of the invalid value for registry. Please advise me how to fix this and restore photos with such an error."

fix invalid value for registry

As the error suggests, the problem is with the registry. To be able to open and view photos under this circumstance, you need to fix "Invalid value for Registry" error badly. 

Follow the below two steps to see how to fix Invalid Value of Registry error and restore lost image files on your own now:

To ensure that you don't lose all your photos or PNG/JPG etc. images, please refer to the first step and use professional data recovery program to restore infected photos and image files before performing the fix.

STEP 1. Restore Photos/Images with "Invalid Value for Registry" error

When "Invalid Value for Registry" error occurs, you can not open, view and edit the photos anymore until you fix the problem alright. However, registry problem is serious and it can easily lead to photos corruption, damage, and loss. At this moment, get hurry and download EaseUS Data Recovery Wizard, a piece of highly praised file recovery software to restore all photos from your computer to an external storage device, to keep them safe.

Step 1. Launch EaseUS data recovery software, select the disk where you want to recover your data and click "Scan" to search for all the lost and existing files.

Restore JPG/JPEG/PDF with invalid value for registry error - select to scan the specific disk

Step 2. A quick scan will start first. After it completed, a deep scan will automatically launch in order to find more files.

Restore JPG/JPEG/PDF with invalid value for registry error - run quick scan and deep scan

Step 3. Preview the selected JPG/JPEG/PDF file, and click "Recover" button to retrieve them back from invalid value for registry error. Here, you'd better save all the recovered files on a different drive or device in case of data recovery failure.

Restore JPG/JPEG/PDF with invalid value for registry error

STEP 2. Fix "Invalid Value for Registry" Error in Windows 10/8/7

Now you can feel free to fix the registry problem in Windows 10 with the solution here, which is also applicable in Windows 7 and 8. 

1. Press Windows + R and put regedit in the Run dialog box to open Registry Editor

Fix invalid value for registry.

2. Click Yes to run Registry Editor. 

Run Registry Editor to fix invalid value error.

3. In the left pane of Registry Editor, navigate to following registry key:

HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Families\Microsoft.Windows.Photos_8wekyb3d8bbwe

Locate and find relative registry key that cause invalid value for registry error.

4. At this registry location, you first need to take ownership of Microsoft.Windows:

  • Select Administrator (Desktop Name \ Administrator) and click Advanced.

Take ownership of registry key to fix invalid value error.

  • Click Change next to SYSTEM.

Fix invalid registry error.

  • Enter your User Name and click Check Names to get the right form and click OK to confirm.

Fix Invalid Value for Registry error.

  • Check Replace owner on subcontainers and objects and select Apply. Then click OK to keep all changes.

Keep all changes to remove invalid value error.

  • Finally, choose the User Name (Your Desktop Name \ Administrator) option and check Allow boxes for Full Control and Read, click Apply. And select OK to keep all changes.

Fix and remove invalid value registry error from computer.

5. Once you spotted all outdated version keys, right click on them one by one and select Delete

(Note: The last step - 5 will remove some of your keys in Registry and cause some file loss or program failure issue. Please to be very careful and select the right keys to delete.)

After deleting lower version number entries, you can close Registry Editor and restart your machine, the "Invalid Value for Registry" problem should be fixed by that.