/build/static/layout/Breadcrumb_cap_w.png

Google Chrome – Class not Registered – really FIXED

I have spent a serious amount of time researching how to fix Google Chrome’s “Class not registered” error.

Many responses move toward deleting the registry keys

-HKLM\Software\Classes\Chrome

-HKLM\Software\Classes\ChromeHTML\open\command\DelegateExecute

Or the same path under HKCR.  With my testing in our Corp environment, I found the HKLM did not exist. On some Win8 machines deleting the HKCR did not fix our problem.  Not sure of the reason, some machines deleting the HKCR fixed it.  Maybe that machine only had one user on it.  I don’t get the opportunity to talk to most users about their computer problems.

Other “FIXED” meant creating a shortcut right from the chrome.exe file, but pinning that to the user task bar meant it broke again.  This solution doesn’t work in the Corp environment either.

Other “FIXED” have said just run it as Admin.  Two points, one it won’t fly in a Corp environment where the users are just users, and two, the people who worked out to run it as admin might have ran regedit as admin and hit the HKCR keys, so they fixed it for only admin.

From the information I have read, the HKCR is a concatenation of the HKLM and HKCU and so this can be different to each user logging in to that computer.  Fixing the Classes Root for one person won’t for another.

I did a bit of deeper investigation into shortcuts and worked out each user under HKEY_USERS\S-1-5-21-[SID] has their own shortcut and classes table.

The fix for the "Class not registered" error is to fix it for each existing user.

EDIT: I managed to get the time to write the script up for fixing Chrome

Option Explicit
Const HKU = &H80000003
Dim strValue,oReg, Value, subValue, wmi, wshshell, strFullPath
Dim Key1, key2, key3
Dim strValueName1
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
Set wmi = GetObject("winmgmts:\\.\root\cimv2")
Set WshShell = WScript.CreateObject("WScript.Shell")
Set subValue = wmi.ExecQuery("Select SID from Win32_UserProfile where SID like 'S-1-5-21%'")
strValueName1 = "DelegateExecute"
Key1 = "\Software\Classes\Chrome\.exe\shell\open\command"
Key2 = "\Software\Classes\Chrome\.exe\shell\opennewwindow\command\"
Key3 = "\Software\Classes\ChromeHTML\shell\open\command\"
ParseReg key1,strValueName1
ParseReg key2,strValueName1
ParseReg key3,strValueName1
Sub ParseReg(key,strValueName)
For Each Value In subValue
oReg.GetStringValue HKU,Value.SID & key,strValueName,strValue
If strValue <> "" Then
Wscript.Echo HKU & Value.SID & key & strValueName 
  oreg.deletevalue HKU, Value.SID & key,strValueName
End If
Next
End Sub



Comments

  • Almost had a conniption this morning when I didn't have this work for a third user. Fixed by putting this script in to an active setup - Tempril 8 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ