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

Jean updated on Jul 12, 2019 to Data Recovery | How-to Articles


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 a 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:

Restore Photos/Images with "Invalid Value for Registry" error
Fix "Invalid Value for Registry" Error in Windows 10/8/7
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.

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.


- Launch EaseUS Data Recovery Wizard.
- Choose the Drive X: where you wish to perform the photo recovery.
- Click the Scan button.

select the hard drive and click scan


- Scan data all over the hard drive.
- Check "Deleted files" result especially if the photos were deleted.

scan all photos on the hard drive


- Click "Filter" and choose "Graphics" to display only image files.
- Choose the targeted photos and click the Recover button.

select pictures and recover

Tip: Search more under "Extra Files" if you didn't find the photos by following the above steps.

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 to Replace owner on the sub-containers 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 to 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.


100% of people found this article helpful.


Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.