Fix: Invalid value for registry error while viewing jpgs

This error is usually seen after upgrading from Windows 7 / 8 or 8.1 to Windows 10. Instructions provided here can also be used on Windows 8 and 8.1. Registry errors are caused by corrupt registry hives. Registry keeps instructions of all programs, it tells the computer where to go and what to do when a particular action is taken. Let me explain first why you’re getting this error; when you try and open a picture; your PC has a reference for the registry responsible for telling which program to use to open the picture; when it performs the action based on those instructions, the value it finds is unknown to the program, which returns the error. It is not recommended to manually edit/open or change registry settings unless you’re 100% sure about what you’re doing.

In this guide i will walk you through the troubleshooting steps that has worked for me and other users having this issue.

Repair Corrupt System Files

Download and run Restoro to scan and repair corrupt/missing files from here, if files are found to be corrupt and missing repair them and then see if the issue is resolved, if not then try the other steps suggested below.

Resettings Photos Application

The problem while opening “JPGs” correlates with the “Photos” application. Therefore, in this step, we will be resettings the app to reinitialize its configurations. In order to do that:

  1. PressWindows” + “I” simultaneously to open Settings.
  2. Click on the “Apps” option and selectApps & Features” from the left pane.
    Opening Settings and clicking on the “Apps” option
  3. Search the list and click on the “Microsoft Photos” or the “Photos” option.
  4. Click on the “Advanced Options” button below the name of the app.
    Clicking on “Advanced Options” under the name of the application
  5. Scroll down and click on the “Reset” button to reinitialize the app.
    Clicking on “Reset” button
  6. Check to see if the issue persists.

Troubleshooting Invalid Value For Registry Error

The second approach to take here is to uninstall the Photos app or any app that is causing the issue and then re-install it. Re-installing re-writes to the registry with correct settings so this works in most cases. Most default apps cannot be uninstalled via the conventional way; so we will have to make use of PowerShell here to uninstall the Photo’s app or any other app. For your ease; we’ve compiled a list of commands to be executed in PowerShell.

First click the Start button located on the lower left corner, type PowerShell and then right click on PowerShell and choose Run As Administrator.

powershell as administrator1

Then in the PowerShell window type the following command to Uninstall Photos App

invalid value for registry-2

Get-AppxPackage *photos* | Remove-AppxPackage

After it has been uninstalled; type the following in  PowerShell to reinstall it.

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

This should re-install the Photos app, and the Photo’s app should be fixed. If it still won’t work, then you can switch to Windows Photo Viewer by performing the steps here.

Kamil Anwar
Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.

Expert Tip

Fix: Invalid value for registry error while viewing jpgs

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested